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

Do not overwrite user added labels from deployment spec.template.labels in order to propagate the labels to the pod #176

Open
laurafitzgerald opened this issue Jan 31, 2025 · 3 comments · May be fixed by #183
Assignees

Comments

@laurafitzgerald
Copy link
Contributor

laurafitzgerald commented Jan 31, 2025

Is your feature request related to a problem? Please describe.
Add the ability to propagates labels to Deployment's spec.template, in this case the label we are interested in is "sidecar.istio.io/inject":"true" but this can apply to any label and a similar implementation is in progress in Kuadrant/authorino-operator#236

Describe the solution you'd like
See Kuadrant/authorino-operator#236

This work sits under the Zero-trust configuration parent as that work depends on this change but this implementation should be agnostic to that configuration

@laurafitzgerald laurafitzgerald changed the title Expose config via limitador cr to enable the deployment of envoy sidecar to authorino Expose config via limitador cr to enable the deployment of envoy sidecar to limitador Jan 31, 2025
@eguzki
Copy link
Contributor

eguzki commented Jan 31, 2025

Work being done in authorino-operator Kuadrant/authorino-operator#236

@laurafitzgerald laurafitzgerald moved this to In Progress in Kuadrant Jan 31, 2025
@laurafitzgerald laurafitzgerald self-assigned this Jan 31, 2025
@laurafitzgerald laurafitzgerald changed the title Expose config via limitador cr to enable the deployment of envoy sidecar to limitador Expose config via authorino cr to enable the deployment of envoy sidecar to authorino Jan 31, 2025
@laurafitzgerald laurafitzgerald changed the title Expose config via authorino cr to enable the deployment of envoy sidecar to authorino Expose config via limitador cr to enable the deployment of envoy sidecar to limitador Jan 31, 2025
@laurafitzgerald laurafitzgerald moved this from In Progress to Todo in Kuadrant Jan 31, 2025
@Boomatang
Copy link
Contributor

The label should be removed if the value isn't present or set to false.

While I agree it should be removed if set to false. If the value is not present, should we be removing labels from the deployments that the user may have put there? It sound like a change that would affect existing user on upgrade. I am aware that the CRD is still v1alpha1, but from the context of kuadrant which depends on limitador this has to be seen a breaking change.

@laurafitzgerald
Copy link
Contributor Author

The label should be removed if the value isn't present or set to false.

While I agree it should be removed if set to false. If the value is not present, should we be removing labels from the deployments that the user may have put there? It sound like a change that would affect existing user on upgrade. I am aware that the CRD is still v1alpha1, but from the context of kuadrant which depends on limitador this has to be seen a breaking change.

Hi @Boomatang I just update the description there as there was some discussion and a previously agreed approach in authorino-operator which it makes sense to take that approach here as well. I hope that addresses your concern.

@laurafitzgerald laurafitzgerald moved this from Todo to In Progress in Kuadrant Feb 7, 2025
@laurafitzgerald laurafitzgerald moved this from In Progress to Ready For Review in Kuadrant Feb 7, 2025
@laurafitzgerald laurafitzgerald changed the title Expose config via limitador cr to enable the deployment of envoy sidecar to limitador Propagate labels from llimitador cr to the deployement spec.template.labels in order to propagate the labels to the pod Feb 13, 2025
@laurafitzgerald laurafitzgerald changed the title Propagate labels from llimitador cr to the deployement spec.template.labels in order to propagate the labels to the pod Propagate labels from limitador cr to the deployment spec.template.labels in order to propagate the labels to the pod Feb 13, 2025
@laurafitzgerald laurafitzgerald changed the title Propagate labels from limitador cr to the deployment spec.template.labels in order to propagate the labels to the pod Do not overwrite user added labels from deployment spec.template.labels in order to propagate the labels to the pod Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready For Review
Development

Successfully merging a pull request may close this issue.

3 participants