-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Propagate Application labels to application manifest as way to define… #11686
base: master
Are you sure you want to change the base?
Propagate Application labels to application manifest as way to define… #11686
Conversation
… environment-specific values for monitoring, logging, incident-management
Please help to adapt this MR for requirements. This is very useful feature. |
@brat002 Can you provide the docs for this feature? |
Done. @ashutosh16 is it enough? Should I add the documentation somewhere else? |
Codecov ReportBase: 46.96% // Head: 46.96% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #11686 +/- ##
==========================================
- Coverage 46.96% 46.96% -0.01%
==========================================
Files 243 243
Lines 40424 40430 +6
==========================================
+ Hits 18985 18986 +1
- Misses 19529 19534 +5
Partials 1910 1910
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Do we really want to automatically propagate all Application labels to application manifests? Why can't source Kustomizations or Helm values be used for those purposes? Could not ApplicationSet templating not be used for source/cluster specific customisations? |
Very often labels depends on environment a application has been set up.
There is no way to hardcode them. CI and CD labels must be managed
separately. Current PR allows doing this no matters what is underlaying
tool we use: helm, kustomize, etc.
…On Tue, 27 Dec 2022 at 11:00, Blake Pettersson ***@***.***> wrote:
Do we really want to automatically propagate all Application labels to
application manifests? Why can't source Kustomizations or Helm values be
used for those purposes? Could not ApplicationSet templating
<https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/GoTemplate/>
not be used for source/cluster specific customisations?
—
Reply to this email directly, view it on GitHub
<#11686 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6J44CNTEV2QWPXBUQ3R7DWPK43TANCNFSM6AAAAAAS5JHLKM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Something which I think could be interesting would be to selectively apply labels by managedResourceMetadata:
labels:
foo-label:
value: bar
any:
- resources:
names:
- "prod-*"
- "staging"
kinds:
- Service (got some inspiration from how Kyverno does this). This would need some fleshing out if this is something that would even be desirable - perhaps @jannfis or @crenshaw-dev have some thoughts on this? |
I feel like maybe we could accomplish the same thing by adding a |
@crenshaw-dev it seems like #14648 could work for this. Could this be combined with Helm charts being rendered with |
@blakepettersson yeah, #14648 would work if you |
For Helm sources, #16749 seems like it could be a viable alternative |
Propagate Application labels to application manifest as way to define environment-specific values for monitoring, logging, incident-management
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: