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

feat: Add support for ExecProvider cluster auth (#4600) #4710

Merged
merged 16 commits into from
Oct 30, 2020

Conversation

jMarkP
Copy link
Contributor

@jMarkP jMarkP commented Oct 29, 2020

Fixes #4600 - design is as per proposal in that issue. Summary of changes:

  • Add ExecProviderConfig struct and add it to the ClusterConfig struct
  • Update RawRestConfig to map this to the Kubernetes format
  • Add test for the above
  • Redact env vars and args from being returned by the API
  • Update UI to report this new type of auth
  • Update docs

Go is not my first language so happy to change anything that isn't idiomatic or against ArgoCD style conventions.

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 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've signed the CLA and my build is green (troubleshooting builds).

@jessesuen jessesuen added this to the v1.8 milestone Oct 29, 2020
@jessesuen jessesuen requested a review from alexmt October 29, 2020 21:03
@codecov-io
Copy link

Codecov Report

Merging #4710 into master will decrease coverage by 0.18%.
The diff coverage is 6.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4710      +/-   ##
==========================================
- Coverage   41.28%   41.10%   -0.19%     
==========================================
  Files         127      127              
  Lines       17484    17522      +38     
==========================================
- Hits         7218     7202      -16     
- Misses       9233     9290      +57     
+ Partials     1033     1030       -3     
Impacted Files Coverage Δ
pkg/apis/application/v1alpha1/types.go 56.84% <0.00%> (-1.14%) ⬇️
server/cluster/cluster.go 17.85% <0.00%> (-0.33%) ⬇️
cmd/argocd/commands/cluster.go 11.53% <9.67%> (-0.50%) ⬇️
controller/appcontroller.go 50.56% <0.00%> (-1.92%) ⬇️

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 21304ee...e94f3ce. Read the comment docs.

Copy link
Collaborator

@alexmt alexmt left a comment

Choose a reason for hiding this comment

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

Thank you @jMarkP ! LGTM

@alexmt alexmt merged commit 42ebb22 into argoproj:master Oct 30, 2020
@jMarkP
Copy link
Contributor Author

jMarkP commented Oct 30, 2020

Thanks @alexmt !

@jMarkP jMarkP deleted the AddExecProvider branch October 30, 2020 17:35
terrycorley pushed a commit to terrycorley/argo-cd that referenced this pull request Nov 3, 2020
…zation-generators

* 'master' of github.com:argoproj/argo-cd:
  fix: RevisionFormField component crashes in 'refs' API returns no tags (argoproj#4735)
  docs: add Opensurvey to USERS.md (argoproj#4727)
  docs: correct parameters usage in CLI (argoproj#4725)
  fix: Repo-server has silent unmarshalling errors leading to empty applications (argoproj#4423) (argoproj#4708)
  fix: inject artificial delay between sync waves to better support health assessments (argoproj#4715)
  fix: exclude files listed under exclusions (argoproj#4686)
  feat: support resource actions on CRDs that use status subresources (argoproj#4690)
  feat: Add autocomplete for repo Revisions (argoproj#4645) (argoproj#4713)
  fix: webhook don't refresh apps pointing to HEAD (argoproj#4717)
  feat: Add support for ExecProvider cluster auth (argoproj#4600) (argoproj#4710)
  fix: adding helm values file in New App (argoproj#4635)
  docs: Instructions on `make verify-kube-connect` step when using k3d (argoproj#4687)
  feat:  Annotation based app paths detection in webhooks (argoproj#4699)
  fix: adding commonAnnotations for Kustomize (argoproj#4613)
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.

Allow generic ExecProvider settings in Cluster config
4 participants