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

Potential fix for issue https://github.com/Unleash/unleash/issues/9111 #180

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

Conversation

vikrambindal
Copy link

@vikrambindal vikrambindal commented Jan 17, 2025

Fix existingSecrets implementation in unleash-edge chart

Description

This PR fixes the implementation of existingSecrets in the unleash-edge Helm chart which currently causes Kubernetes validation errors when deploying with secret configurations. The issue is documented in unleash#9111.

Changes

  1. Modified deploment.yaml default to use envFrom to load secrets
{{- if not (quote .Values.existingSecrets | empty) }}
envFrom:
  - secretRef:
      name: {{ .Values.existingSecrets }}
{{- end }}
  1. Updated the deployment template to use envFrom instead of trying to merge secrets into env section, which prevents validation errors with environment variables.

Testing

  • Deployed chart with empty secrets configuration (works)
  • Deployed chart with secrets configured:
existingSecrets: custom-user-secret  # references existing secret
  • Verified deployment completes without validation errors
  • Verified environment variables are properly set in the container

Additional Notes

  • This is a breaking change as it modifies how secrets are configured
  • Users will need to update their values.yaml to use the new secret reference format
  • The new implementation is more aligned with Kubernetes best practices for secret management

Related Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New
Development

Successfully merging this pull request may close these issues.

fix: existingSecrets implementation causes env var validation errors in Deployment
1 participant