Skip to content

Commit

Permalink
Drop the default containerImage parameter and use VAR
Browse files Browse the repository at this point in the history
Let's not use the hardcoded default but rely on the RELATED_* vars.

Jira: OSPRH-13093
  • Loading branch information
lmiccini authored and openshift-cherrypick-robot committed Jan 17, 2025
1 parent d64688c commit a71a68e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion apis/bases/instanceha.openstack.org_instancehas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ spec:
bundle file
type: string
containerImage:
default: quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified
description: ContainerImage for the the InstanceHa container (will
be set to environmental default if empty)
type: string
Expand Down
1 change: 0 additions & 1 deletion apis/instanceha/v1beta1/instanceha_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const (
// InstanceHaSpec defines the desired state of InstanceHa
type InstanceHaSpec struct {
// +kubebuilder:validation:Required
// +kubebuilder:default="quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified"
// ContainerImage for the the InstanceHa container (will be set to environmental default if empty)
ContainerImage string `json:"containerImage"`

Expand Down
1 change: 0 additions & 1 deletion config/crd/bases/instanceha.openstack.org_instancehas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ spec:
bundle file
type: string
containerImage:
default: quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified
description: ContainerImage for the the InstanceHa container (will
be set to environmental default if empty)
type: string
Expand Down
2 changes: 2 additions & 0 deletions config/default/manager_default_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ spec:
# TODO create its own container image, instead of using neutron one
- name: RELATED_IMAGE_INFRA_DNSMASQ_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-neutron-server:current-podified
- name: RELATED_IMAGE_INSTANCE_HA_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-openstackclient:current-podified
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: BGPConfiguration is the Schema for the bgpconfigurations API
displayName: BGPConfiguration
kind: BGPConfiguration
name: bgpconfigurations.network.openstack.org
version: v1beta1
- description: DNSData is the Schema for the dnsdata API
displayName: DNSData
kind: DNSData
Expand Down

0 comments on commit a71a68e

Please sign in to comment.