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

[velero] fix: consistent node-agent podLabels #623

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

foyerunix
Copy link

Hello,

The node-agent was using ".Values.podLabels" in the DaemonSet while using ".Values.nodeAgent.labels" in the podMonitor.

This led to an inconsistency and made it impossible to have different labels for the node-agent compared to the Velero deployment.

Best Regards.

The node-agent was using ".Values.podLabels" in the DaemonSet
while using ".Values.nodeAgent.labels" in the podMonitor.

This led to an inconsistency and made it impossible to have
different labels for the node-agent compared to the Velero deployment.

Signed-off-by: foyerunix <foyerunix@foyer.lu>
@@ -557,6 +557,10 @@ nodeAgent:
# labels to set for the node-agent daemonset. Optional.
labels: {}

# Additional pod labels for the node-agent daemonset. Optional
# ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Isn't there is the label for the node-agent?

# labels to set for the node-agent daemonset. Optional.
labels: {}

Copy link
Author

Choose a reason for hiding this comment

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

Hello,

Yes this is where the labels for the node-agent DaemonSet are defined. Meanwhile the PodMonitor will not match the labels of the DaemonSet but the labels of the pods created by the DaemonSet.

The labels of the pods of the node-agent DaemonSet are defined as ".Values.podLabels", hence they will be the same as the labels of the Velero Deployment. But the PodMonitor will try to match the labels defined in ".Values.nodeAgent.labels".

So with the current chart it is impossible to have different labels between the Velero Deployment and the Velero node-agent.

Best Regards.

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.

2 participants