-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add range options to --scale #1070
Closed
Closed
Changes from 10 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
3db3cdb
Add range options to --scale
7f91820
Updated scale flag so that the docs update with the correct information
2edf4c4
genereted docs instead of updating manually
84eb376
Update common github actions (#1072)
knative-automation abb75e4
fix(tekton e2e): Fix CONTAINER_REGISTRY name generation (#1074)
navidshaikh 2b7631a
Updated --scale docs
33d9193
Broke up if/else into two if statements in tests
efa9e27
Added missing ")" in scale docs
537973f
Generated docs after updating configuration_edit_flags
ed67482
Add ResolvePodSpec to podspec.go and move the related utilities to po…
a75cb2c
Resolved setting either value to 0, re-ordered which gets set first f…
c31eac4
Fixing lint issues
6d00de6
Update common github actions (#1081)
knative-automation 6ed76ae
uniform multiple writeSink into DescribeSink (#1075)
6fa4098
Split up helper function, updated wording in help section
ad4a7b1
Pin deps back to master (#1082)
navidshaikh d1552ee
updating to use the hack repo (#1084)
8ca97c7
Feature: "kn service apply" (#964)
rhuss c60b851
Export test refactor (#1069)
itsmurugappan 8a0067d
upgrade to latest dependencies (#1085)
knative-automation 3614bd6
upgrade to latest dependencies (#1088)
knative-automation 5787e95
upgrade to latest dependencies (#1091)
knative-automation a0ddad9
Update common github actions (#1090)
knative-automation 4b84de3
got rid of helper functions, cleaned up code so it is easier to read,…
26867f1
feat: Add channel sink prefix (#1092)
navidshaikh 45ffade
Drop deprecated --async flag support (#1094)
navidshaikh b72e4be
feat: Add service import command (#1065)
dsimansk 1f0e5f9
Add range options to --scale
0075a6e
Updated scale flag so that the docs update with the correct information
629b995
genereted docs instead of updating manually
a6279dc
Updated --scale docs
5da8f3c
Broke up if/else into two if statements in tests
9567f05
Added missing ")" in scale docs
0ede82b
Generated docs after updating configuration_edit_flags
b3e962a
Resolved setting either value to 0, re-ordered which gets set first f…
871ba72
Fixing lint issues
55c9980
Split up helper function, updated wording in help section
be8e590
got rid of helper functions, cleaned up code so it is easier to read,…
3a0c74e
Merge branch 'issue-822-pt3' of github.com:mpetason/client into issue…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference would be to divide this into smaller private functions for each of the cases... might simply things. Also for each case returning early could also simply code since once case identified the result is there. No need for big if/else if/else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I break up the helper function into multiple private functions it will complicate the cmd.Flags().Changed("scale") section, is that ok? I was trying to minimize how large that code block was going to be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working on breaking this up next - I should be able to avoid complication in the cmd.Flags().Changed("scale") section.