Skip to content

Commit

Permalink
Merge pull request #18376 from deads2k/cli-17-autoscale
Browse files Browse the repository at this point in the history
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
  • Loading branch information
openshift-merge-robot authored Feb 2, 2018
2 parents 413056b + e0ff016 commit 7a6d8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/cmd/deployments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ os::test::junit::declare_suite_start "cmd/deployments/autoscale"
os::cmd::expect_success 'oc create -f test/integration/testdata/test-deployment-config.yaml'
os::cmd::expect_success 'oc autoscale dc/test-deployment-config --max 5'
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config --template='{{.spec.maxReplicas}}'" "5"
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config -o jsonpath='{.spec.scaleTargetRef.apiVersion}'" "apps.openshift.io/v1"
os::cmd::expect_success 'oc delete dc/test-deployment-config'
os::cmd::expect_success 'oc delete hpa/test-deployment-config'
echo "autoscale: ok"
Expand Down
5 changes: 5 additions & 0 deletions vendor/k8s.io/kubernetes/pkg/kubectl/cmd/autoscale.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7a6d8cd

Please sign in to comment.