Unverified Commit 7ce2d33c authored by Caleb Bron's avatar Caleb Bron Committed by GitHub
Browse files

Merge pull request #947 from cbron/templating-weight-bug

New template service gets standard weight
parents ff194c19 9cae6c95
Showing with 2 additions and 1 deletion
+2 -1
......@@ -5,6 +5,7 @@ import (
"fmt"
webhookv1controller "github.com/rancher/gitwatcher/pkg/generated/controllers/gitwatcher.cattle.io/v1"
"github.com/rancher/rio/cli/cmd/weight"
riov1 "github.com/rancher/rio/pkg/apis/rio.cattle.io/v1"
"github.com/rancher/rio/pkg/constants"
riov1controller "github.com/rancher/rio/pkg/generated/controllers/rio.cattle.io/v1"
......@@ -74,7 +75,7 @@ func (h *handler) generate(service *riov1.Service, status riov1.ServiceStatus) (
if err := h.scaleDownRevisions(service.Namespace, app, name); err != nil {
return nil, status, nil
}
spec.Weight = &[]int{100}[0]
spec.Weight = &[]int{weight.PromoteWeight}[0]
}
if status.ShouldClean[name] || status.GeneratedServices[name] {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment