Skip to content

Commit 23a837c

Browse files
Merge pull request #1509 from dprince/related_images_baremetal_operator
Propagate RELATED_IMAGE to openstack-baremetal-operator
2 parents f9140ca + b2ad603 commit 23a837c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

bindata/operator/managers.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{{ $leaseDuration := .LeaseDuration }}
44
{{ $renewDeadline := .RenewDeadline }}
55
{{ $retryPeriod := .RetryPeriod }}
6+
{{ $openstackServiceRelatedImages := .OpenStackServiceRelatedImages }}
67
{{ range $operatorName, $operatorImage := .OperatorImages }}
78
apiVersion: apps/v1
89
kind: Deployment
@@ -45,6 +46,12 @@ spec:
4546
value: '{{ $renewDeadline }}'
4647
- name: RETRY_PERIOD
4748
value: '{{ $retryPeriod }}'
49+
{{ if (eq $operatorName "openstack-baremetal") }}
50+
{{ range $envName, $envValue := $openstackServiceRelatedImages }}
51+
- name: {{ $envName }}
52+
value: {{ $envValue }}
53+
{{ end }}
54+
{{ end }}
4855
image: {{ $operatorImage }}
4956
livenessProbe:
5057
httpGet:

config/operator/managers.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{{ $leaseDuration := .LeaseDuration }}
44
{{ $renewDeadline := .RenewDeadline }}
55
{{ $retryPeriod := .RetryPeriod }}
6+
{{ $openstackServiceRelatedImages := .OpenStackServiceRelatedImages }}
67
{{ range $operatorName, $operatorImage := .OperatorImages }}
78
apiVersion: apps/v1
89
kind: Deployment
@@ -45,6 +46,12 @@ spec:
4546
value: '{{ $renewDeadline }}'
4647
- name: RETRY_PERIOD
4748
value: '{{ $retryPeriod }}'
49+
{{ if (eq $operatorName "openstack-baremetal") }}
50+
{{ range $envName, $envValue := $openstackServiceRelatedImages }}
51+
- name: {{ $envName }}
52+
value: {{ $envValue }}
53+
{{ end }}
54+
{{ end }}
4855
image: {{ $operatorImage }}
4956
livenessProbe:
5057
httpGet:

0 commit comments

Comments
 (0)