-
Notifications
You must be signed in to change notification settings - Fork 887
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
Introduce 'kubectl argo rollouts create' command #295
Introduce 'kubectl argo rollouts create' command #295
Conversation
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
==========================================
- Coverage 83.81% 83.57% -0.24%
==========================================
Files 63 64 +1
Lines 5677 5845 +168
==========================================
+ Hits 4758 4885 +127
- Misses 671 692 +21
- Partials 248 268 +20
Continue to review full report at Codecov.
|
func isJSON(fileBytes []byte) bool { | ||
for _, b := range fileBytes { | ||
if !unicode.IsSpace(rune(b)) { | ||
return b == '{' | ||
} | ||
} | ||
return false | ||
} |
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.
I'm surprised there isn't an easier way of doing this with the libraries we imported so far.
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.
That being said, I only do a quick search to see if I find one, but otherwise, I think it's fine
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.
LGTM with minor style comments
kubectl argo rollouts create -f file.yaml
with a-w
watch optionkubectl argo rollouts create analysisrun
with--from=templatename
or--from-file=template.yaml