Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit 5da4e39

Browse files
committed
rename environment variables for images
Signed-off-by: Thomas Stringer <[email protected]>
1 parent 9546904 commit 5da4e39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

charts/osm/templates/osm-injector-deployment.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@ spec:
9494
valueFrom:
9595
fieldRef:
9696
fieldPath: metadata.name
97-
- name: OSM_ENVOY_IMAGE
97+
- name: OSM_DEFAULT_ENVOY_IMAGE
9898
value: "{{ .Values.osm.sidecarImage }}"
99-
- name: OSM_ENVOY_WINDOWS_IMAGE
99+
- name: OSM_DEFAULT_ENVOY_WINDOWS_IMAGE
100100
value: "{{ .Values.osm.sidecarWindowsImage }}"
101-
- name: OSM_INIT_CONTAINER_IMAGE
101+
- name: OSM_DEFAULT_INIT_CONTAINER_IMAGE
102102
value: '{{ include "osmSidecarInit.image" . }}'
103103
{{- if .Values.osm.imagePullSecrets }}
104104
imagePullSecrets:

pkg/configurator/methods.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (c *client) GetEnvoyLogLevel() string {
127127
func (c *client) GetEnvoyImage() string {
128128
image := c.getMeshConfig().Spec.Sidecar.EnvoyImage
129129
if image == "" {
130-
image = os.Getenv("OSM_ENVOY_IMAGE")
130+
image = os.Getenv("OSM_DEFAULT_ENVOY_IMAGE")
131131
}
132132
return image
133133
}
@@ -136,7 +136,7 @@ func (c *client) GetEnvoyImage() string {
136136
func (c *client) GetEnvoyWindowsImage() string {
137137
image := c.getMeshConfig().Spec.Sidecar.EnvoyWindowsImage
138138
if image == "" {
139-
image = os.Getenv("OSM_ENVOY_WINDOWS_IMAGE")
139+
image = os.Getenv("OSM_DEFAULT_ENVOY_WINDOWS_IMAGE")
140140
}
141141
return image
142142
}
@@ -145,7 +145,7 @@ func (c *client) GetEnvoyWindowsImage() string {
145145
func (c *client) GetInitContainerImage() string {
146146
image := c.getMeshConfig().Spec.Sidecar.InitContainerImage
147147
if image == "" {
148-
image = os.Getenv("OSM_INIT_CONTAINER_IMAGE")
148+
image = os.Getenv("OSM_DEFAULT_INIT_CONTAINER_IMAGE")
149149
}
150150
return image
151151
}

0 commit comments

Comments
 (0)