Skip to content

Agent Mesh

charts: allow overriding the image tag per image

Tomas Tormo713727f2ae5f
diff --git a/charts/sam-mesh/templates/console-deployment.yaml b/charts/sam-mesh/templates/console-deployment.yaml
index c65abf42..a7126fb0 100644
--- a/charts/sam-mesh/templates/console-deployment.yaml
+++ b/charts/sam-mesh/templates/console-deployment.yaml
@@ -40,7 +40,7 @@ spec:
done
containers:
- name: sam-console
- image: "{{ .Values.console.image.repository }}:{{ .Values.global.imageTag }}"
+ image: "{{ .Values.console.image.repository }}:{{ .Values.console.image.tag | default .Values.global.imageTag }}"
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- with .Values.console.securityContext }}
securityContext:
diff --git a/charts/sam-mesh/templates/control-plane-deployment.yaml b/charts/sam-mesh/templates/control-plane-deployment.yaml
index 8c22c40a..f8504ec9 100644
--- a/charts/sam-mesh/templates/control-plane-deployment.yaml
+++ b/charts/sam-mesh/templates/control-plane-deployment.yaml
@@ -20,7 +20,7 @@ spec:
{{- end }}
containers:
- name: sam-control-plane
- image: "{{ .Values.controlPlane.image.repository }}:{{ .Values.global.imageTag }}"
+ image: "{{ .Values.controlPlane.image.repository }}:{{ .Values.controlPlane.image.tag | default .Values.global.imageTag }}"
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- with .Values.controlPlane.securityContext }}
securityContext:
diff --git a/charts/sam-mesh/templates/router-statefulset.yaml b/charts/sam-mesh/templates/router-statefulset.yaml
index c32c9ee1..895f2a12 100644
--- a/charts/sam-mesh/templates/router-statefulset.yaml
+++ b/charts/sam-mesh/templates/router-statefulset.yaml
@@ -53,7 +53,7 @@ spec:
done
containers:
- name: sam-router
- image: "{{ .Values.router.image.repository }}:{{ .Values.global.imageTag }}"
+ image: "{{ .Values.router.image.repository }}:{{ .Values.router.image.tag | default .Values.global.imageTag }}"
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
{{- with .Values.router.securityContext }}
securityContext:
diff --git a/charts/sam-mesh/values.yaml b/charts/sam-mesh/values.yaml
index 4b3a2db1..d855ce1f 100644
--- a/charts/sam-mesh/values.yaml
+++ b/charts/sam-mesh/values.yaml
@@ -33,6 +33,8 @@ controlPlane:
replicaCount: 2
image:
repository: sam-control-plane
+ # Overrides global.imageTag for this image only.
+ tag: ""
logLevel: info
# Leave empty to auto-generate a random admin token on first install (kept
# stable across upgrades). Set explicitly (e.g. via --set) to pin a known value.
@@ -109,6 +111,8 @@ router:
drop: ["ALL"]
image:
repository: sam-router
+ # Overrides global.imageTag for this image only.
+ tag: ""
useOidcToken: false
logLevel: info
# Binds 4501 TCP+UDP on the router's own node and announces /ip4/<node IP>/... for both
@@ -134,6 +138,8 @@ console:
replicaCount: 1
image:
repository: sam-console
+ # Overrides global.imageTag for this image only.
+ tag: ""
podSecurityContext:
runAsNonRoot: true
# Dockerfiles say "USER nonroot" by name; runAsNonRoot needs the numeric uid.