Skip to content

Commit

Permalink
fix(api-server): no correct conversion runner autoscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Feb 1, 2023
1 parent 6cfd2e0 commit f7179f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions api-server/services/kube_bento_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ func (s *kubeBentoDeploymentService) transformToBentoDeploymentV1alpha3(ctx cont
}
for name, runner := range deploymentTarget.Config.Runners {
if runner.BentoDeploymentOverrides != nil {
for _, runner_ := range kubeBentoDeployment.Spec.Runners {
for idx, runner_ := range kubeBentoDeployment.Spec.Runners {
if runner_.Name == name {
runner_.ExtraPodMetadata = servingv1alpha3.TransformToOldExtraPodMetadata(runner.BentoDeploymentOverrides.ExtraPodMetadata)
runner_.ExtraPodSpec = servingv1alpha3.TransformToOldExtraPodSpec(runner.BentoDeploymentOverrides.ExtraPodSpec)
kubeBentoDeployment.Spec.Runners[idx].ExtraPodMetadata = servingv1alpha3.TransformToOldExtraPodMetadata(runner.BentoDeploymentOverrides.ExtraPodMetadata)
kubeBentoDeployment.Spec.Runners[idx].ExtraPodSpec = servingv1alpha3.TransformToOldExtraPodSpec(runner.BentoDeploymentOverrides.ExtraPodSpec)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/aquasecurity/go-pep440-version v0.0.0-20210121094942-22b2f8951d46
github.com/bentoml/grafana-operator v1.4.1-0.20210927064226-14795530b647
github.com/bentoml/yatai-common v0.0.0-20230110044251-1eb442339c38
github.com/bentoml/yatai-deployment v1.1.3-0.20230112071122-da07c94d3191
github.com/bentoml/yatai-deployment v1.1.5-0.20230201154516-7b262187ae90
github.com/bentoml/yatai-image-builder v1.1.1-0.20230108162700-337f26f7f704
github.com/bentoml/yatai-schemas v0.0.0-20230111172411-f8278b8bdb8d
github.com/bits-and-blooms/bloom/v3 v3.3.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ github.com/bentoml/grafana-operator v1.4.1-0.20210927064226-14795530b647 h1:fKWm
github.com/bentoml/grafana-operator v1.4.1-0.20210927064226-14795530b647/go.mod h1:w8sk7HbPMnOlZislz8Ch3pRw15FNMY6o1Q+53fepnhc=
github.com/bentoml/yatai-common v0.0.0-20230110044251-1eb442339c38 h1:PqfM42gfwBeytS92pV9t8u8POf8czn/4WlmQ/RFGuuY=
github.com/bentoml/yatai-common v0.0.0-20230110044251-1eb442339c38/go.mod h1:pox0XYk/bVUwKkadn0XwWHEbJmxSEeN3+HwGA4a8uOQ=
github.com/bentoml/yatai-deployment v1.1.3-0.20230112071122-da07c94d3191 h1:T2om6q0vi3j+4Z3yngft3mNO/mUQ+6z1woYtZ50Kmy0=
github.com/bentoml/yatai-deployment v1.1.3-0.20230112071122-da07c94d3191/go.mod h1:j73glvFeo11oP5I5J7lOxyY5gApS199qFxA1NzplX+Y=
github.com/bentoml/yatai-deployment v1.1.5-0.20230201154516-7b262187ae90 h1:WDtUYXHd1oZ1KdzAy1aBGkwFCxEeuBtKD7lAHyah7vw=
github.com/bentoml/yatai-deployment v1.1.5-0.20230201154516-7b262187ae90/go.mod h1:j73glvFeo11oP5I5J7lOxyY5gApS199qFxA1NzplX+Y=
github.com/bentoml/yatai-image-builder v1.1.1-0.20230108162700-337f26f7f704 h1:/NHKiFOZQej5tntp0xlqRThe4f6uS0XHn1HGii2A8fQ=
github.com/bentoml/yatai-image-builder v1.1.1-0.20230108162700-337f26f7f704/go.mod h1:yICYIIyCkBVo6xCFSkU1gUOFYzomRAekiCYvEyd6R00=
github.com/bentoml/yatai-schemas v0.0.0-20230111172411-f8278b8bdb8d h1:6X4fEjno3ZScH5wFNk0+cIKMHBWU7T0aeLrlecXPOpg=
Expand Down

0 comments on commit f7179f4

Please sign in to comment.