fix: correctly set the default value of StatusCheck to nil#7089
Merged
MarlonGamez merged 1 commit intoGoogleContainerTools:mainfrom Feb 15, 2022
Merged
Conversation
a987f6a to
91f3f9a
Compare
Codecov Report
@@ Coverage Diff @@
## main #7089 +/- ##
==========================================
- Coverage 70.48% 68.71% -1.78%
==========================================
Files 515 558 +43
Lines 23150 26116 +2966
==========================================
+ Hits 16317 17945 +1628
- Misses 5776 6947 +1171
- Partials 1057 1224 +167
Continue to review full report at Codecov.
|
91f3f9a to
db285ca
Compare
Contributor
|
hey @sbe-genomics , thanks for catching this and creating a fix! Would you mind rebasing this PR? the integration test failure is unrelated and we've merged a fix into main |
0b453fe to
db285ca
Compare
Contributor
Author
|
@MarlonGamez done, thanks! |
Contributor
|
Merging this change as the integration test failure is unrelated/needs to be fixed on our end |
gsquared94
reviewed
Apr 7, 2022
| FlagAddMethod: "Var", | ||
| DefinedOn: []string{"dev", "debug", "deploy", "run", "apply"}, | ||
| IsEnum: true, | ||
| NoOptDefVal: "true", |
Contributor
There was a problem hiding this comment.
This line needs to be reverted. It breaks specifying --status-check without any arguments.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The
statusCheckoption in thedeployconfig section was not working as expected. The value from the skaffold config was never picked up, however it was doing the right thing when--status-checkwas used on the command line.This method was checking if the
StatusCheckvalue was defined via the command line, and if so returning the value it was set to. However since the flag was set to incorrectly default to true, that method would always return true if--status-check=was not set on the command line.This PR sets the default value of
StatusChecktonil, as this lines up with its usage and typeBoolOrUndefined