Skip to content

Commit

Permalink
Merge pull request openstack-k8s-operators#1150 from lmiccini/reuseimage
Browse files Browse the repository at this point in the history
Reuse OpenstackClientImage instead of dedicated InstanceHaImage
  • Loading branch information
openshift-merge-bot[bot] authored Oct 22, 2024
2 parents 81e16fe + ad059d4 commit ec7210b
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 27 deletions.
2 changes: 0 additions & 2 deletions apis/bases/core.openstack.org_openstackcontrolplanes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18373,8 +18373,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down
6 changes: 0 additions & 6 deletions apis/bases/core.openstack.org_openstackversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down Expand Up @@ -334,8 +332,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down Expand Up @@ -512,8 +508,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down
1 change: 0 additions & 1 deletion apis/core/v1beta1/openstackversion_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ type ContainerTemplate struct {
InfraDnsmasqImage *string `json:"infraDnsmasqImage,omitempty"`
InfraMemcachedImage *string `json:"infraMemcachedImage,omitempty"`
InfraRedisImage *string `json:"infraRedisImage,omitempty"`
InfraInstanceHaImage *string `json:"infraInstanceHaImage,omitempty"`
IronicAPIImage *string `json:"ironicAPIImage,omitempty"`
IronicConductorImage *string `json:"ironicConductorImage,omitempty"`
IronicInspectorImage *string `json:"ironicInspectorImage,omitempty"`
Expand Down
5 changes: 0 additions & 5 deletions apis/core/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18373,8 +18373,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down
6 changes: 0 additions & 6 deletions config/crd/bases/core.openstack.org_openstackversions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down Expand Up @@ -334,8 +332,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down Expand Up @@ -512,8 +508,6 @@ spec:
type: string
infraDnsmasqImage:
type: string
infraInstanceHaImage:
type: string
infraMemcachedImage:
type: string
infraRedisImage:
Expand Down
2 changes: 0 additions & 2 deletions config/default/manager_default_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,6 @@ spec:
value: quay.io/podified-antelope-centos9/openstack-memcached:current-podified
- name: RELATED_IMAGE_INFRA_REDIS_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-redis:current-podified
- name: RELATED_IMAGE_INFRA_INSTANCE_HA_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified
- name: RELATED_IMAGE_IRONIC_API_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ironic-api:current-podified
- name: RELATED_IMAGE_IRONIC_CONDUCTOR_IMAGE_URL_DEFAULT
Expand Down
1 change: 0 additions & 1 deletion hack/export_related_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export RELATED_IMAGE_KEYSTONE_API_IMAGE_URL_DEFAULT=quay.io/podified-antelope-ce
export RELATED_IMAGE_MARIADB_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-mariadb:current-podified
export RELATED_IMAGE_INFRA_MEMCACHED_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-memcached:current-podified
export RELATED_IMAGE_INFRA_REDIS_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-redis:current-podified
export RELATED_IMAGE_INFRA_INSTANCE_HA_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified
export RELATED_IMAGE_ANSIBLEEE_IMAGE_URL_DEFAULT=quay.io/openstack-k8s-operators/openstack-ansibleee-runner:current-podified
export RELATED_IMAGE_NOVA_API_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-nova-api:current-podified
export RELATED_IMAGE_NOVA_CONDUCTOR_IMAGE_URL_DEFAULT=quay.io/podified-antelope-centos9/openstack-nova-conductor:current-podified
Expand Down
2 changes: 1 addition & 1 deletion pkg/openstack/instanceha.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const (
func ReconcileInstanceHa(ctx context.Context, instance *corev1beta1.OpenStackControlPlane, version *corev1beta1.OpenStackVersion, helper *helper.Helper) (ctrl.Result, error) {
missingImageDefault := ""
customData := map[string]string{
InstanceHaImageKey: *getImg(version.Status.ContainerImages.InfraInstanceHaImage, &missingImageDefault),
InstanceHaImageKey: *getImg(version.Status.ContainerImages.OpenstackClientImage, &missingImageDefault),
}

cms := []util.Template{
Expand Down
1 change: 0 additions & 1 deletion pkg/openstack/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ func GetContainerImages(defaults *corev1beta1.ContainerDefaults, instance corev1
InfraDnsmasqImage: getImg(instance.Spec.CustomContainerImages.InfraDnsmasqImage, defaults.InfraDnsmasqImage),
InfraMemcachedImage: getImg(instance.Spec.CustomContainerImages.InfraMemcachedImage, defaults.InfraMemcachedImage),
InfraRedisImage: getImg(instance.Spec.CustomContainerImages.InfraRedisImage, defaults.InfraRedisImage),
InfraInstanceHaImage: getImg(instance.Spec.CustomContainerImages.InfraInstanceHaImage, defaults.InfraInstanceHaImage),
IronicAPIImage: getImg(instance.Spec.CustomContainerImages.IronicAPIImage, defaults.IronicAPIImage),
IronicConductorImage: getImg(instance.Spec.CustomContainerImages.IronicConductorImage, defaults.IronicConductorImage),
IronicInspectorImage: getImg(instance.Spec.CustomContainerImages.IronicInspectorImage, defaults.IronicInspectorImage),
Expand Down

0 comments on commit ec7210b

Please sign in to comment.