Add optional tag support for Docker images in Helm charts#190
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
- Add 'tag' field to image configuration in all values.yaml files - Update all deployment templates with conditional image reference logic - Support three scenarios: tag only, digest only, both (digest takes precedence) - Tested with helm template command for all chart types Agent-Logs-Url: https://github.com/wso2/helm-apim/sessions/d7479b77-5083-4aff-8ffd-7530efbef398 Co-authored-by: tharindu1st <6345931+tharindu1st@users.noreply.github.com>
|
|
- Regenerate all chart README files using helm-docs - Add documentation for new image.tag field in all charts Agent-Logs-Url: https://github.com/wso2/helm-apim/sessions/d7479b77-5083-4aff-8ffd-7530efbef398 Co-authored-by: tharindu1st <6345931+tharindu1st@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement tag and digest support for API Manager helm charts
Add optional tag support for Docker images in Helm charts
Apr 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
Helm charts only supported image digest references, forcing users to hardcode SHA256 hashes even for simple deployments. This adds optional tag support while maintaining digest priority for production use.
Goals
Enable flexible image specification:
Approach
Added
tagfield to all chartvalues.yamlfiles and implemented conditional image reference in deployment templates:{{- if .Values.wso2.deployment.image.digest }} image: {{ .Values.wso2.deployment.image.registry }}/{{ .Values.wso2.deployment.image.repository }}@{{ .Values.wso2.deployment.image.digest }} {{- else if .Values.wso2.deployment.image.tag }} image: {{ .Values.wso2.deployment.image.registry }}/{{ .Values.wso2.deployment.image.repository }}:{{ .Values.wso2.deployment.image.tag }} {{- else }} image: {{ .Values.wso2.deployment.image.registry }}/{{ .Values.wso2.deployment.image.repository }} {{- end }}Charts updated:
Priority:
digest > tag > latestUser stories
Release note
Helm charts now support optional
image.tagfield alongside existingimage.digest. Digest takes precedence when both are specified. Fully backward compatible.Documentation
N/A - Auto-generated chart READMEs updated via helm-docs. No separate documentation required for values.yaml additions.
Training
N/A - Existing Helm deployment training covers image configuration.
Certification
N/A - Values file configuration change, not a product feature.
Marketing
N/A
Automation tests
helm templateandhelm lintacross all chartsSecurity checks
Samples
Related PRs
N/A
Migrations
Backward compatible - no migration required. Existing digest-based deployments continue unchanged.
Test environment
Learning
Kubernetes best practices: digest for immutability, tags for development velocity. Implementation follows standard Helm conditional templating patterns.