You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
existingSecrets in values.yaml is incorrectly structured and causes deployment failures
Issue Description
The current implementation of existingSecrets in the unleash-edge chart has two significant issues:
The default value in values.yaml is incorrectly set as an empty string (""):
existingSecrets:
""
This is invalid YAML for a field that should accept an array of secret configurations. It should be an empty array ([]) instead.
The current template structure attempts to merge secret configurations directly into the env: section, which causes Kubernetes validation errors when environment variables contain both value and valueFrom fields. This results in deployment failures with the error:
Failed sync attempt to : one or more objects failed to apply, reason: Deployment.apps "unleash-edge" is invalid: [spec.template.spec.containers[0].env[4].valueFrom: Invalid value: "": may not be specified when `value` is not empty, spec.template.spec.containers[0].env[5].valueFrom: Invalid value: "": may not be specified when `value` is not empty] (retried 5 times)
Current Implementation
The values.yaml provides a misleading example:
# adds environmentvars for existing secrets to the container via tpl functionexistingSecrets:
""# - name: TOKENS# valueFrom:# secretKeyRef:# name: secretname# key: secretkey
This structure suggests that secrets should be configured as environment variables with valueFrom, but the implementation causes validation errors in Kubernetes when combined with other environment variables.
Expected Behavior
The chart should either:
Use envFrom: to properly reference secrets (preferred approach)
Fix the template to properly handle secret references in the env: section without causing validation errors
existingSecrets in values.yaml is incorrectly structured and causes deployment failures
Issue Description
The current implementation of
existingSecrets
in the unleash-edge chart has two significant issues:""
):This is invalid YAML for a field that should accept an array of secret configurations. It should be an empty array (
[]
) instead.env:
section, which causes Kubernetes validation errors when environment variables contain bothvalue
andvalueFrom
fields. This results in deployment failures with the error:Current Implementation
The values.yaml provides a misleading example:
This structure suggests that secrets should be configured as environment variables with
valueFrom
, but the implementation causes validation errors in Kubernetes when combined with other environment variables.Expected Behavior
The chart should either:
envFrom:
to properly reference secrets (preferred approach)env:
section without causing validation errorsSteps to Reproduce
Proposed Solution
Two potential solutions:
Option 1 (Preferred): Use envFrom
Update values.yaml:
Update deployment template to use
envFrom
:Option 2: Fix Current Approach
If maintaining the current structure is preferred:
Additional Context
This issue affects users who need to configure secrets for the Unleash Edge service, particularly when using tokens for authentication.
The text was updated successfully, but these errors were encountered: