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

feature: adding kube-context flag #8849

Merged
merged 3 commits into from
Apr 7, 2022
Merged

feature: adding kube-context flag #8849

merged 3 commits into from
Apr 7, 2022

Conversation

elad-codefresh
Copy link
Contributor

@elad-codefresh elad-codefresh commented Mar 22, 2022

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #8849 (5883f38) into master (e53a3f8) will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #8849      +/-   ##
==========================================
+ Coverage   45.00%   45.02%   +0.02%     
==========================================
  Files         212      212              
  Lines       25272    25284      +12     
==========================================
+ Hits        11373    11385      +12     
- Misses      12292    12295       +3     
+ Partials     1607     1604       -3     
Impacted Files Coverage Δ
cmd/argocd/commands/login.go 2.29% <0.00%> (-0.02%) ⬇️
cmd/argocd/commands/root.go 2.00% <0.00%> (-0.09%) ⬇️
applicationset/services/scm_provider/github.go 63.52% <0.00%> (-17.65%) ⬇️
util/settings/settings.go 48.10% <0.00%> (ø)
applicationset/services/scm_provider/gitlab.go 76.34% <0.00%> (+1.34%) ⬆️
applicationset/services/scm_provider/utils.go 88.50% <0.00%> (+4.59%) ⬆️
util/io/bytereadseeker.go 100.00% <0.00%> (+100.00%) ⬆️

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 e53a3f8...5883f38. Read the comment docs.

@todaywasawesome
Copy link
Contributor

Good job on your first PR @elad-codefresh !

@elad-codefresh elad-codefresh changed the title CR-8129 adding kube-context flag Apr 3, 2022
@elad-codefresh
Copy link
Contributor Author

enhancement proposal:
#8829

@elad-codefresh elad-codefresh changed the title adding kube-context flag feature: adding kube-context flag Apr 3, 2022
…if wanted. #8829

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>
Signed-off-by: elad-codefresh <elad.laor@codefresh.io>
Signed-off-by: elad-codefresh <elad.laor@codefresh.io>
@pasha-codefresh
Copy link
Member

Thank you, just one comment, Why are you doing clientOpts.KubeOverrides.CurrentContext and not clientOpts.Context?

Copy link
Member

@pasha-codefresh pasha-codefresh left a comment

Choose a reason for hiding this comment

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

Great job, thank you!

@pasha-codefresh pasha-codefresh merged commit 5c2391f into argoproj:master Apr 7, 2022
ashutosh16 pushed a commit to ashutosh16/argo-cd that referenced this pull request Apr 9, 2022
* feature: adding support for kube-context flag to override kubeconfig if wanted. argoproj#8829

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>

* feat: fixed lint

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>

* feat: codegen

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>
Signed-off-by: asingh51 <Ashutosh_Singh@intuit.com>
wojtekidd pushed a commit to wojtekidd/argo-cd that referenced this pull request Apr 25, 2022
* feature: adding support for kube-context flag to override kubeconfig if wanted. argoproj#8829

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>

* feat: fixed lint

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>

* feat: codegen

Signed-off-by: elad-codefresh <elad.laor@codefresh.io>
Signed-off-by: wojtekidd <wojtek.cichon@protonmail.com>
@cedric-tw
Copy link

Should this work in 2.3.4? The documented --kube-context string doesn't seem to work for me. Thanks

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.

4 participants