Skip to content

Commit

Permalink
Merge pull request #174 from dprince/fix_bundle_build
Browse files Browse the repository at this point in the history
Remove duplicate image env vars and constants
  • Loading branch information
openshift-merge-robot authored Sep 6, 2023
2 parents 216c203 + f4dbe4b commit d2c1073
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
1 change: 1 addition & 0 deletions .prow_ci.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export USE_IMAGE_DIGESTS=true
4 changes: 1 addition & 3 deletions api/v1beta1/ceilometercentral_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
const (
// CeilometerCentralContainerImage - default fall-back image for Ceilometer Central
CeilometerCentralContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified"
// CeilometerCentralInitContainerImage - default fall-back image for Ceilometer Central Init
CeilometerCentralInitContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified"
// CeilometerNotificationContainerImage - default fall-back image for Ceilometer Notifcation
CeilometerNotificationContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-notification:current-podified"
// CeilometerSgCoreContainerImage - default fall-back image for Ceilometer SgCore
Expand Down Expand Up @@ -149,7 +147,7 @@ func SetupDefaultsCeilometerCentral() {
// Acquire environmental defaults and initialize Telemetry defaults with them
ceilometercentralDefaults := CeilometerCentralDefaults{
CentralContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_IMAGE_URL_DEFAULT", CeilometerCentralContainerImage),
CentralInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_INIT_IMAGE_URL_DEFAULT", CeilometerCentralInitContainerImage),
CentralInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_IMAGE_URL_DEFAULT", CeilometerCentralContainerImage),
SgCoreContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_SGCORE_IMAGE_URL_DEFAULT", CeilometerSgCoreContainerImage),
NotificationContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_NOTIFICATION_IMAGE_URL_DEFAULT", CeilometerNotificationContainerImage),
}
Expand Down
4 changes: 1 addition & 3 deletions api/v1beta1/ceilometercompute_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import (
const (
// CeilometerComputeContainerImage - default fall-back image for Ceilometer Compute
CeilometerComputeContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified"
// CeilometerComputeInitContainerImage - default fall-back image for Ceilometer Compute Init
CeilometerComputeInitContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified"
// CeilometerIpmiContainerImage - default fall-back image for Ceilometer Ipmi
CeilometerIpmiContainerImage = "quay.io/podified-antelope-centos9/openstack-ceilometer-ipmi:current-podified"
)
Expand Down Expand Up @@ -153,7 +151,7 @@ func SetupDefaultsCeilometerCompute() {
// Acquire environmental defaults and initialize Telemetry defaults with them
ceilometercomputeDefaults := CeilometerComputeDefaults{
ComputeContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_IMAGE_URL_DEFAULT", CeilometerComputeContainerImage),
ComputeInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_INIT_IMAGE_URL_DEFAULT", CeilometerComputeInitContainerImage),
ComputeInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_IMAGE_URL_DEFAULT", CeilometerComputeContainerImage),
IpmiContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_IPMI_IMAGE_URL_DEFAULT", CeilometerIpmiContainerImage),
}

Expand Down
4 changes: 2 additions & 2 deletions api/v1beta1/telemetry_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func SetupDefaultsTelemetry() {
// Acquire environmental defaults and initialize Telemetry defaults with them
telemetryDefaults := TelemetryDefaults{
CentralContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_IMAGE_URL_DEFAULT", CeilometerCentralContainerImage),
CentralInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_INIT_IMAGE_URL_DEFAULT", CeilometerCentralInitContainerImage),
CentralInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_CENTRAL_INIT_IMAGE_URL_DEFAULT", CeilometerCentralContainerImage),
ComputeContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_IMAGE_URL_DEFAULT", CeilometerComputeContainerImage),
ComputeInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_INIT_IMAGE_URL_DEFAULT", CeilometerComputeInitContainerImage),
ComputeInitContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_COMPUTE_INIT_IMAGE_URL_DEFAULT", CeilometerComputeContainerImage),
IpmiContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_IPMI_IMAGE_URL_DEFAULT", CeilometerIpmiContainerImage),
NotificationContainerImageURL: util.GetEnvVar("RELATED_IMAGE_CEILOMETER_NOTIFICATION_IMAGE_URL_DEFAULT", CeilometerNotificationContainerImage),
NodeExporterContainerImageURL: util.GetEnvVar("RELATED_IMAGE_TELEMETRY_NODE_EXPORTER_IMAGE_URL_DEFAULT", NodeExporterContainerImage),
Expand Down
4 changes: 0 additions & 4 deletions config/default/manager_default_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ spec:
env:
- name: RELATED_IMAGE_CEILOMETER_CENTRAL_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified
- name: RELATED_IMAGE_CEILOMETER_CENTRAL_INIT_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ceilometer-central:current-podified
- name: RELATED_IMAGE_CEILOMETER_COMPUTE_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified
- name: RELATED_IMAGE_CEILOMETER_COMPUTE_INIT_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ceilometer-compute:current-podified
- name: RELATED_IMAGE_CEILOMETER_NOTIFICATION_IMAGE_URL_DEFAULT
value: quay.io/podified-antelope-centos9/openstack-ceilometer-notification:current-podified
- name: RELATED_IMAGE_CEILOMETER_IPMI_IMAGE_URL_DEFAULT
Expand Down

0 comments on commit d2c1073

Please sign in to comment.