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

bitnami/mongodb: Allow labels for volumeClaimTemplates #25571

Merged
merged 7 commits into from May 13, 2024

Conversation

jbertozzi
Copy link
Contributor

Description of the change

This commit add consistency with others bitnami charts (i.e.: postgresql) by adding a new parameter (.persistence.labels).

Benefits

More flexibility for end user.

Possible drawbacks

No drawbacks.

Additional information

Some context: we have some kyverno policy that force end user to put a label on their pvc to specify explicitly whether they want a backup or not. This patch to fix this.

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Variables are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

@github-actions github-actions bot added mongodb triage Triage is needed labels May 7, 2024
@github-actions github-actions bot requested a review from javsalgar May 7, 2024 08:07
@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels May 7, 2024
@github-actions github-actions bot removed the triage Triage is needed label May 7, 2024
@github-actions github-actions bot removed the request for review from javsalgar May 7, 2024 09:48
@github-actions github-actions bot requested a review from dgomezleon May 7, 2024 09:48
Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

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

Hi @jbertozzi

Thanks for contributing. Could you take a look at my comments?

@@ -39,4 +39,4 @@ maintainers:
name: mongodb
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mongodb
version: 15.1.7
version: 15.1.8
Copy link
Member

Choose a reason for hiding this comment

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

Bump a minor version when adding new values --> 15.2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @dgomezleon,
I have updated the version accordingly.

Comment on lines 19 to 22
{{- if or .Values.commonLabels .Values.sentinel.labels }}
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.sentinel.labels .Values.commonLabels ) "context" . ) }}
labels: {{- include "common.tplvalues.render" ( dict "value" $labels "context" $) | nindent 4 }}
{{- end }}
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add this in a separate diff bumping Redis version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have removed this chunk, I will open a dedicated PR for redis.

@dgomezleon
Copy link
Member

Hi @jbertozzi ,
Thanks for applying the change. Could you please make sure that all commits are signed off and in agreement of Developer Certificate of Origin (DCO)

…5678)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
Signed-off-by: Jérémy Bertozzi <jeremy.bertozzi@gmail.com>
jbertozzi and others added 2 commits May 13, 2024 13:41
Signed-off-by: jbertozzi <jeremy.bertozzi@gmail.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
@jbertozzi
Copy link
Contributor Author

Hi @jbertozzi , Thanks for applying the change. Could you please make sure that all commits are signed off and in agreement of Developer Certificate of Origin (DCO)

Hi @dgomezleon,

Sorry about that, it should be ok now.

Thanks for your time.

Copy link
Member

@dgomezleon dgomezleon left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@dgomezleon dgomezleon merged commit 7605c31 into bitnami:main May 13, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants