Skip to content

Commit eb575a5

Browse files
committed
Add Watcher service containers to OpenStackVersion
Add the three related containers to the OpenStackVersion container images list and add default values. Note that Watcher Operator does not work with containers from Antelope release so I am setting master ones as defaults.
1 parent 0da5c73 commit eb575a5

11 files changed

Lines changed: 105 additions & 1 deletion

apis/bases/core.openstack.org_openstackcontrolplanes.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18803,6 +18803,12 @@ spec:
1880318803
type: string
1880418804
testTobikoImage:
1880518805
type: string
18806+
watcherAPIImage:
18807+
type: string
18808+
watcherApplierImage:
18809+
type: string
18810+
watcherDecisionEngineImage:
18811+
type: string
1880618812
type: object
1880718813
deployedOVNVersion:
1880818814
type: string

apis/bases/core.openstack.org_openstackversions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ spec:
225225
type: string
226226
testTobikoImage:
227227
type: string
228+
watcherAPIImage:
229+
type: string
230+
watcherApplierImage:
231+
type: string
232+
watcherDecisionEngineImage:
233+
type: string
228234
type: object
229235
targetVersion:
230236
type: string
@@ -447,6 +453,12 @@ spec:
447453
type: string
448454
testTobikoImage:
449455
type: string
456+
watcherAPIImage:
457+
type: string
458+
watcherApplierImage:
459+
type: string
460+
watcherDecisionEngineImage:
461+
type: string
450462
type: object
451463
type: object
452464
containerImages:
@@ -639,6 +651,12 @@ spec:
639651
type: string
640652
testTobikoImage:
641653
type: string
654+
watcherAPIImage:
655+
type: string
656+
watcherApplierImage:
657+
type: string
658+
watcherDecisionEngineImage:
659+
type: string
642660
type: object
643661
deployedVersion:
644662
type: string

apis/core/v1beta1/openstackversion_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ type ContainerTemplate struct {
164164
TestTobikoImage *string `json:"testTobikoImage,omitempty"`
165165
TestHorizontestImage *string `json:"testHorizontestImage,omitempty"`
166166
TestAnsibletestImage *string `json:"testAnsibletestImage,omitempty"`
167+
WatcherAPIImage *string `json:"watcherAPIImage,omitempty"`
168+
WatcherApplierImage *string `json:"watcherApplierImage,omitempty"`
169+
WatcherDecisionEngineImage *string `json:"watcherDecisionEngineImage,omitempty"`
167170
}
168171

169172
// ServiceDefaults - struct that contains defaults for OSP services that can change over time

apis/core/v1beta1/zz_generated.deepcopy.go

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindata/crds/crds.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18967,6 +18967,12 @@ spec:
1896718967
type: string
1896818968
testTobikoImage:
1896918969
type: string
18970+
watcherAPIImage:
18971+
type: string
18972+
watcherApplierImage:
18973+
type: string
18974+
watcherDecisionEngineImage:
18975+
type: string
1897018976
type: object
1897118977
deployedOVNVersion:
1897218978
type: string
@@ -20552,6 +20558,12 @@ spec:
2055220558
type: string
2055320559
testTobikoImage:
2055420560
type: string
20561+
watcherAPIImage:
20562+
type: string
20563+
watcherApplierImage:
20564+
type: string
20565+
watcherDecisionEngineImage:
20566+
type: string
2055520567
type: object
2055620568
targetVersion:
2055720569
type: string
@@ -20774,6 +20786,12 @@ spec:
2077420786
type: string
2077520787
testTobikoImage:
2077620788
type: string
20789+
watcherAPIImage:
20790+
type: string
20791+
watcherApplierImage:
20792+
type: string
20793+
watcherDecisionEngineImage:
20794+
type: string
2077720795
type: object
2077820796
type: object
2077920797
containerImages:
@@ -20966,6 +20984,12 @@ spec:
2096620984
type: string
2096720985
testTobikoImage:
2096820986
type: string
20987+
watcherAPIImage:
20988+
type: string
20989+
watcherApplierImage:
20990+
type: string
20991+
watcherDecisionEngineImage:
20992+
type: string
2096920993
type: object
2097020994
deployedVersion:
2097120995
type: string

config/crd/bases/core.openstack.org_openstackcontrolplanes.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18803,6 +18803,12 @@ spec:
1880318803
type: string
1880418804
testTobikoImage:
1880518805
type: string
18806+
watcherAPIImage:
18807+
type: string
18808+
watcherApplierImage:
18809+
type: string
18810+
watcherDecisionEngineImage:
18811+
type: string
1880618812
type: object
1880718813
deployedOVNVersion:
1880818814
type: string

config/crd/bases/core.openstack.org_openstackversions.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ spec:
225225
type: string
226226
testTobikoImage:
227227
type: string
228+
watcherAPIImage:
229+
type: string
230+
watcherApplierImage:
231+
type: string
232+
watcherDecisionEngineImage:
233+
type: string
228234
type: object
229235
targetVersion:
230236
type: string
@@ -447,6 +453,12 @@ spec:
447453
type: string
448454
testTobikoImage:
449455
type: string
456+
watcherAPIImage:
457+
type: string
458+
watcherApplierImage:
459+
type: string
460+
watcherDecisionEngineImage:
461+
type: string
450462
type: object
451463
type: object
452464
containerImages:
@@ -639,6 +651,12 @@ spec:
639651
type: string
640652
testTobikoImage:
641653
type: string
654+
watcherAPIImage:
655+
type: string
656+
watcherApplierImage:
657+
type: string
658+
watcherDecisionEngineImage:
659+
type: string
642660
type: object
643661
deployedVersion:
644662
type: string

config/operator/default_images.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,12 @@ spec:
181181
value: quay.io/podified-antelope-centos9/openstack-swift-proxy-server:current-podified
182182
- name: RELATED_IMAGE_TEST_TEMPEST_IMAGE_URL_DEFAULT
183183
value: quay.io/podified-antelope-centos9/openstack-tempest-all:current-podified
184+
- name: RELATED_IMAGE_WATCHER_API_IMAGE_URL_DEFAULT
185+
value: quay.io/podified-master-centos9/openstack-watcher-api:current-podified
186+
- name: RELATED_IMAGE_WATCHER_APPLIER_IMAGE_URL_DEFAULT
187+
value: quay.io/podified-master-centos9/openstack-watcher-applier:current-podified
188+
- name: RELATED_IMAGE_WATCHER_DECISION_ENGINE_IMAGE_URL_DEFAULT
189+
value: quay.io/podified-master-centos9/openstack-watcher-decision-engine:current-podified
184190
# NOTE: TEST_ images below do not get released downstream. They should not be prefixed with RELATED
185191
- name: TEST_TOBIKO_IMAGE_URL_DEFAULT
186192
value: quay.io/podified-antelope-centos9/openstack-tobiko:current-podified

hack/export_related_images.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export RELATED_IMAGE_EDPM_OPENSTACK_NETWORK_EXPORTER_IMAGE_URL_DEFAULT=quay.io/o
8787
export RELATED_IMAGE_EDPM_KEPLER_IMAGE_URL_DEFAULT=quay.io/sustainable_computing_io/kepler:release-0.7.12
8888
export RELATED_IMAGE_EDPM_PODMAN_EXPORTER_IMAGE_URL_DEFAULT=quay.io/navidys/prometheus-podman-exporter:v1.10.1
8989
export RELATED_IMAGE_TEST_TEMPEST_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-tempest-all:current-podified
90+
export RELATED_IMAGE_WATCHER_API_IMAGE_URL_DEFAULT=quay.io/podified-master-centos9/openstack-watcher-api:current-podified
91+
export RELATED_IMAGE_WATCHER_APPLIER_IMAGE_URL_DEFAULT=quay.io/podified-master-centos9/openstack-watcher-applier:current-podified
92+
export RELATED_IMAGE_WATCHER_DECISION_ENGINE_IMAGE_URL_DEFAULT=quay.io/podified-master-centos9/openstack-watcher-decision-engine:current-podified
9093
#NOTE: TEST_ images below do not get released downstream. They should not be prefixed with RELATED
9194
export TEST_TOBIKO_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-tobiko:current-podified
9295
export TEST_ANSIBLETEST_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-ansible-tests:current-podified

pkg/openstack/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ func GetContainerImages(defaults *corev1beta1.ContainerDefaults, instance corev1
186186
TestTobikoImage: getImg(instance.Spec.CustomContainerImages.TestTobikoImage, defaults.TestTobikoImage),
187187
TestHorizontestImage: getImg(instance.Spec.CustomContainerImages.TestHorizontestImage, defaults.TestHorizontestImage),
188188
TestAnsibletestImage: getImg(instance.Spec.CustomContainerImages.TestAnsibletestImage, defaults.TestAnsibletestImage),
189+
WatcherAPIImage: getImg(instance.Spec.CustomContainerImages.WatcherAPIImage, defaults.WatcherAPIImage),
190+
WatcherApplierImage: getImg(instance.Spec.CustomContainerImages.WatcherApplierImage, defaults.WatcherApplierImage),
191+
WatcherDecisionEngineImage: getImg(instance.Spec.CustomContainerImages.WatcherDecisionEngineImage, defaults.WatcherDecisionEngineImage),
189192
}}
190193
if containerImages.CinderVolumeImages == nil {
191194
containerImages.CinderVolumeImages = make(map[string]*string)

0 commit comments

Comments
 (0)