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/jaeger] Add support for cassandra existingSecret #26563

Merged
merged 6 commits into from
Jun 21, 2024

Conversation

migruiz4
Copy link
Member

Description of the change

Fixes an issue where Jaeger would not use the provided Cassandra existingSecret value.

Applicable issues

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)

@bitnami-bot bitnami-bot added the verify Execute verification workflow for these changes label May 30, 2024
@github-actions github-actions bot requested a review from juan131 May 30, 2024 10:08
Signed-off-by: Bitnami Containers <[email protected]>
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Please check my comments.

@@ -142,10 +142,10 @@ ref. https://github.com/jaegertracing/jaeger-operator/issues/1158
Create the cassandra secret name
*/}}
{{- define "jaeger.cassandra.secretName" -}}
{{- if not .Values.cassandra.enabled -}}
{{- .Values.externalDatabase.existingSecret -}}
{{- if (not .Values.cassandra.enabled) -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no reason for adding these parenthesis

{{- else -}}
{{- printf "%s-cassandra" (include "common.names.fullname" .) -}}
{{- default (printf "%s-cassandra" .Release.Name) .Values.cassandra.dbUser.existingSecret -}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Create another helper that returns the Cassandra fullname:

{{/*
Return the proper Jaeger Cassandra database fullname
*/}}
{{- define "jaeger.cassandra.fullname" -}}
{{- include "common.names.dependency.fullname" (dict "chartName" "cassandra" "chartValues" .Values.cassandra "context" $) -}}
{{- end -}}

Then, use it here:

Suggested change
{{- default (printf "%s-cassandra" .Release.Name) .Values.cassandra.dbUser.existingSecret -}}
{{- default (include "jaeger.cassandra.fullname" .) .Values.cassandra.dbUser.existingSecret -}}

Copy link

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the stale 15 days without activity label Jun 16, 2024
carrodher and others added 3 commits June 19, 2024 08:04
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Miguel Ruiz <[email protected]>
Copy link
Contributor

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

LGTM

@juan131 juan131 merged commit 175b933 into main Jun 21, 2024
10 checks passed
@juan131 juan131 deleted the jaeger-cassandra-existingsecret branch June 21, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitnami jaeger solved stale 15 days without activity verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bitnami/jaeger] Can't provide own secret for cassandra db via existingSecret
4 participants