Skip to content

Commit 7a6d8cd

Browse files
Merge pull request #18376 from deads2k/cli-17-autoscale
Automatic merge from submit-queue (batch tested with PRs 18376, 18355). UPSTREAM: <carry>: hack in working autoscale reference for oc autoscale I lost your bugzilla. This adds a nasty hack to recognize that we need to specify a different group for autoscaling DCs. /assign @DirectXMan12 /assign @juanvallejo
2 parents 413056b + e0ff016 commit 7a6d8cd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/cmd/deployments.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ os::test::junit::declare_suite_start "cmd/deployments/autoscale"
140140
os::cmd::expect_success 'oc create -f test/integration/testdata/test-deployment-config.yaml'
141141
os::cmd::expect_success 'oc autoscale dc/test-deployment-config --max 5'
142142
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config --template='{{.spec.maxReplicas}}'" "5"
143+
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config -o jsonpath='{.spec.scaleTargetRef.apiVersion}'" "apps.openshift.io/v1"
143144
os::cmd::expect_success 'oc delete dc/test-deployment-config'
144145
os::cmd::expect_success 'oc delete hpa/test-deployment-config'
145146
echo "autoscale: ok"

vendor/k8s.io/kubernetes/pkg/kubectl/cmd/autoscale.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)