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

fix: plugin did not set deployment image when using workloadRef #1787

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

jessesuen
Copy link
Member

When running: kubectl argo rollouts set image against a Rollout which is using the workloadRef feature, the CLI does not properly set the image on the workload (the Deployment). This change detects if the rollout is referencing a Deployment, then sets the image on the referenced Deployment.

Resolves #1537

Signed-off-by: Jesse Suen [email protected]

@jessesuen jessesuen requested a review from rbreeze January 19, 2022 05:38
@jessesuen jessesuen force-pushed the fix-workloadRef-set-image branch from 50fbac1 to f203c24 Compare January 19, 2022 05:43
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
5.1% 5.1% Duplication

@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #1787 (f203c24) into master (19cbe34) will decrease coverage by 0.05%.
The diff coverage is 65.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1787      +/-   ##
==========================================
- Coverage   82.23%   82.18%   -0.06%     
==========================================
  Files         116      116              
  Lines       16266    16284      +18     
==========================================
+ Hits        13377    13383       +6     
- Misses       2216     2224       +8     
- Partials      673      677       +4     
Impacted Files Coverage Δ
pkg/kubectl-argo-rollouts/cmd/set/set_image.go 82.35% <65.51%> (-13.17%) ⬇️

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 19cbe34...f203c24. Read the comment docs.

Copy link
Member

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

plugin set image does not work with workloadRef
2 participants