Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecates --max-scale/--min-scale for more consistent naming #958

Merged
merged 2 commits into from
Aug 3, 2020
Merged

Deprecates --max-scale/--min-scale for more consistent naming #958

merged 2 commits into from
Aug 3, 2020

Conversation

mpetason
Copy link
Contributor

Description

This PR updates --max-scale and --min-scale to --scale-max and --scale-min

Changes

  • Updated --max-scale to --scale-max
  • Updated --min-scale to --scale-min

Reference

#822

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jul 28, 2020
@knative-prow-robot knative-prow-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 28, 2020
@mpetason
Copy link
Contributor Author

This may require additional work. I wasn't sure if I should be changing some of the function names and others to match the renaming.

@mpetason mpetason changed the title Depreciates --max-scale/--min-scale for more consistent naming Deprecates --max-scale/--min-scale for more consistent naming Jul 28, 2020
Copy link
Member

@daisy-ycguo daisy-ycguo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the changes. Thank you. I don't think we need to change functions or variable names to match the option name change, because the annotation keys defined in the serving side are still using minScale and maxScale.

@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-client-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/kn/commands/service/configuration_edit_flags.go 85.1% 85.4% 0.3

@mpetason
Copy link
Contributor Author

I think this is ready for another review. Do I need to resolve previous conversations before that happens?

@mpetason mpetason requested a review from sixolet August 3, 2020 17:35
Copy link
Contributor

@maximilien maximilien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 3, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: daisy-ycguo, maximilien, mpetason

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 3, 2020
@knative-prow-robot knative-prow-robot merged commit 4a3cf24 into knative:master Aug 3, 2020
rhuss pushed a commit to rhuss/knative-client that referenced this pull request Sep 9, 2020
…e#958)

* Depreciates --max-scale/--min-scale for more consistent naming

* Added back old flags and marked hidden
@cardil
Copy link
Contributor

cardil commented May 11, 2022

This PR contradicts the whole movement of knative/serving#12103 to align the option names, by using names in inverted form to what is currently supported.

matejvasek added a commit to matejvasek/client that referenced this pull request Nov 5, 2024
* Fix symlink path separators knative#934
* Make a map when filters is nil knative#958

Signed-off-by: Matej Vašek <[email protected]>
openshift-merge-bot bot pushed a commit to openshift-knative/client that referenced this pull request Nov 5, 2024
* Fix symlink path separators knative#934
* Make a map when filters is nil knative#958

Signed-off-by: Matej Vašek <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants