-
Notifications
You must be signed in to change notification settings - Fork 198
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: Support AVP installed as CMP sidecar #352
Conversation
Codecov Report
@@ Coverage Diff @@
## main #352 +/- ##
=======================================
Coverage 77.53% 77.53%
=======================================
Files 22 22
Lines 1006 1006
=======================================
Hits 780 780
Misses 142 142
Partials 84 84 📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
Reading over https://blog.argoproj.io/breaking-changes-in-argo-cd-2-4-29e3c2ac30c9 it looks like starting with 2.4.0, environment variables set at the application manifest get the ARGOCD_ENV
prefix for argod-cm
ConfigMap installed plugins, not just sidecars. So I guess existing docs need to be updated, and maybe the code should accept vars with or w/o that prefix (so AVP_TYPE
or ARGOCD_ENV_AVP_TYPE
)
Edit: This is all true but can probably be done in the scope of a second PR, this one can just focus on the sidecar support starting at 2.4.0
Yeah, i guess we should put something in about not working with 2.4 yet. Or at least just create an issue. |
@jkayani for cmp-sidecar/cmp-plugin.yaml it might be a good idea to append Also, for the helm plugin, it might not be necessary to require the |
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
PR argoproj-labs#352 introduced the sidecar pattern, but also renamed the prior default manifest, which was available through a reference to https://github.com/argoproj-labs/argocd-vault-plugin//manifests To get the same app, consumers would need to change any exsting references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap This commit introduces a simple proxy manifest that makes that change backwards compatible, meaning that now older references to https://github.com/argoproj-labs/argocd-vault-plugin//manifests will still resolve to the same app state as https://github.com/argoproj-labs/argocd-vault-plugin//manifests/cmp-configmap rather than just breaking.
Description
Argo CD has supported sidecar based CMP (config management plugin) installation for a while now as part of the V2 proposal argoproj/argo-cd#5927. This PR adds a Kustomize app and docs for using AVP this way, and mentions some caveats associated with doing so. I think it's worth having this information especially b/c it seems
argocd-cm
based CMP installation might be deprecated in the future: argoproj/argo-cd#8117.I tested this out on the Kubecon demo repo: https://github.com/jkayani/avp-demo-kubecon-2021/tree/sidecar - this should all be reproducible locally using it.
Checklist
Please make sure that your PR fulfills the following requirements:
go mod tidy -compat=1.17
to ensure only the minimum is pulled in.Type of Change
Other information