Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
New template service gets standard weight
Browse files Browse the repository at this point in the history
  • Loading branch information
cbron committed Dec 18, 2019
1 parent 91e1c3c commit 9cae6c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/service/controllers/template/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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] {
Expand Down

0 comments on commit 9cae6c9

Please sign in to comment.