Skip to content

bug: Fix conditional check for metrics existing secret#333

Open
appkins wants to merge 1 commit intoakeylesslabs:mainfrom
appkins:patch-1
Open

bug: Fix conditional check for metrics existing secret#333
appkins wants to merge 1 commit intoakeylesslabs:mainfrom
appkins:patch-1

Conversation

@appkins
Copy link
Copy Markdown

@appkins appkins commented Oct 6, 2025

This pull request updates the logic for mounting the metrics configuration in the charts/akeyless-gateway/templates/deployment.yaml file. The change ensures that the metrics configuration is only mounted when both metrics are enabled and an existing metrics secret is provided.

Metrics configuration logic update:

  • Changed the conditional for mounting the otelcol-metrics-config volume to require both .Values.globalConfig.metrics.enabled and .Values.globalConfig.metrics.metricsExistingSecret to be true, instead of checking .Values.globalConfig.metrics.enabled twice.

@appkins appkins force-pushed the patch-1 branch 2 times, most recently from 23f31b3 to 0905a74 Compare November 19, 2025 15:40
@appkins
Copy link
Copy Markdown
Author

appkins commented Nov 19, 2025

Any chance a team member can review this PR? This code fixes a breaking bug when enabling metrics without a secret.

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.

1 participant