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
Enable environment variable injection in deployment
Changes diagram
flowchart LR
A["Chart.yaml"] --> B["Version Bump"]
C["values.yaml"] --> D["Image Tag Update"]
C --> E["Environment Variables"]
F["deployment.yaml"] --> G["Env Injection"]
E --> G
The PAYMENTS_GATEWAY_URL is hardcoded to a production URL which may not be appropriate for all environments. Consider making this configurable per environment or using a template variable.
Enable environment variable injection in deployment
Changes diagram
flowchart LR
A["Chart.yaml"] --> B["Version Bump"]
C["values.yaml"] --> D["Image Tag Update"]
C --> E["Environment Variables"]
F["deployment.yaml"] --> G["Env Injection"]
E --> G
Add a conditional check to prevent template rendering errors when client.env is not defined or empty. This prevents potential deployment failures if the environment variables are not configured.
+{{- if .Values.client.env }}
env: {{- toYaml .Values.client.env | nindent 12 }}
+{{- end }}
Apply / Chat
Suggestion importance[1-10]: 6
__
Why: This is a good practice for Helm charts; adding a conditional check for .Values.client.env makes the chart more robust against configurations where this value is not defined.
Add a conditional check to prevent template rendering errors when client.env is not defined. This ensures the deployment doesn't fail if the environment variables section is missing from values.yaml.
+{{- if .Values.client.env }}
env: {{- toYaml .Values.client.env | nindent 12 }}
+{{- end }}
Suggestion importance[1-10]: 7
__
Why: This is a valid Helm best practice that improves the chart's robustness by preventing a template rendering error if .Values.client.env is not defined by a user.
Add a conditional check to prevent template rendering errors when client.env is not defined. This prevents potential deployment failures if the environment variables section is missing from values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
What is the Purpose?
What was the approach?
How can the changes made get tested?
Are there any concerns to addressed further before or after merging this PR?
Mentions?
Issue(s) affected?
PR Type
Enhancement
Description
Update Helm chart and app versions to 0.3.34/1.17.34
Add PAYMENTS_GATEWAY_URL environment variable configuration
Update client image tag to c38058
Enable environment variable injection in deployment
Changes diagram
Changes walkthrough 📝
Chart.yaml
Version bump for chart and applicationcharts/jisort/Chart.yaml
deployment.yaml
Enable environment variable configuration in deploymentcharts/jisort/templates/deployment.yaml
envvalues from values.yaml configurationvalues.yaml
Update image tag and add payments configurationcharts/jisort/values.yaml