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

Introduce 'kubectl argo rollouts create' command #295

Merged
merged 2 commits into from
Nov 14, 2019

Conversation

jessesuen
Copy link
Member

@jessesuen jessesuen commented Nov 14, 2019

  1. Introduce kubectl argo rollouts create -f file.yaml with a -w watch option
  2. Introduce kubectl argo rollouts create analysisrun with --from=templatename or --from-file=template.yaml
  3. Made generating an AnalysisRun from a AnalysisTemplate into a helper
  4. Always show the last job when displaying analysis jobs (not just the failed ones)

@codecov
Copy link

codecov bot commented Nov 14, 2019

Codecov Report

Merging #295 into master will decrease coverage by 0.23%.
The diff coverage is 74.09%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
pkg/kubectl-argo-rollouts/cmd/cmd.go 100% <100%> (ø) ⬆️
experiments/experiment.go 93.11% <100%> (-0.2%) ⬇️
...kg/kubectl-argo-rollouts/cmd/get/get_experiment.go 67.85% <100%> (ø) ⬆️
pkg/kubectl-argo-rollouts/info/analysisrun_info.go 85% <100%> (+27.5%) ⬆️
pkg/kubectl-argo-rollouts/cmd/get/get_rollout.go 83.76% <100%> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/promote/promote.go 100% <100%> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/get/get.go 69.38% <66.66%> (ø) ⬆️
pkg/kubectl-argo-rollouts/cmd/create/create.go 71.11% <71.11%> (ø)
rollout/analysis.go 87.33% <77.77%> (-0.72%) ⬇️
utils/analysis/helpers.go 92.52% <86.66%> (-0.96%) ⬇️
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36aa3f5...ee55df3. Read the comment docs.

Comment on lines +101 to +108
func isJSON(fileBytes []byte) bool {
for _, b := range fileBytes {
if !unicode.IsSpace(rune(b)) {
return b == '{'
}
}
return false
}
Copy link
Member

@dthomson25 dthomson25 Nov 14, 2019

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.

Copy link
Member

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

Copy link
Member

@dthomson25 dthomson25 left a 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

pkg/kubectl-argo-rollouts/cmd/create/create.go Outdated Show resolved Hide resolved
pkg/kubectl-argo-rollouts/cmd/create/create.go Outdated Show resolved Hide resolved
@jessesuen jessesuen merged commit 8668e87 into argoproj:master Nov 14, 2019
@jessesuen jessesuen deleted the kubectl-argo-rollouts-create branch November 14, 2019 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants