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

Fix node spec podLabels bug #184

Merged
merged 1 commit into from
Sep 21, 2024

Conversation

owais
Copy link
Contributor

@owais owais commented Sep 12, 2024

Fixes #183

Description

The operator does not add node spec's podLabels to the statefulsets unless a user also defines podLabels for the cluster spec.

This change will always add both cluster and node spec podLabels as long as they are defined. If same labels are defined for both cluster spec and pod spec then it'll prefer node spec values over cluster spec.


This PR has:

  • been tested on a real K8S cluster to ensure creation of a brand new Druid cluster works.
  • been tested for backward compatibility on a real K*S cluster by applying the changes introduced here on an existing Druid cluster. If there are any backward incompatible changes then they have been noted in the PR description.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

The operator does not add node spec's podLabels to the statefulsets
unless a user also defines podLabels for the cluster spec.

This change will always add both cluster and node spec podLabels as long
as they are defined. If same labels are defined for both cluster spec and
pod spec then it'll prefer node spec values over cluster spec.
@AdheipSingh AdheipSingh merged commit 71009ee into datainfrahq:master Sep 21, 2024
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.

Node Spec podLabels don't work if cluster spec podLabels are not defined
2 participants