Skip to content

Commit 4e581e8

Browse files
committed
Revert "Set defaulth image for fernet key rotation"
This reverts commit 28dc96e.
1 parent 14c4502 commit 4e581e8

5 files changed

Lines changed: 0 additions & 28 deletions

File tree

api/bases/keystone.openstack.org_keystoneapis.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ spec:
9595
keys after rotation
9696
format: int32
9797
type: integer
98-
fernetRotationContainerImage:
99-
description: Keystone Fernet Rotation Container Image URL (will be
100-
set to environmental default if empty)
101-
type: string
10298
fernetRotationDays:
10399
default: 1
104100
description: FernetRotationDays - Rotate fernet token keys every X
@@ -428,7 +424,6 @@ spec:
428424
required:
429425
- containerImage
430426
- databaseInstance
431-
- fernetRotationContainerImage
432427
- memcachedInstance
433428
- rabbitMqClusterName
434429
- secret

api/v1beta1/keystoneapi_types.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ const (
4545

4646
// KeystoneAPIContainerImage is the fall-back container image for KeystoneAPI
4747
KeystoneAPIContainerImage = "quay.io/podified-antelope-centos9/openstack-keystone:current-podified"
48-
49-
// KeystoneFernetRotationContainerImage is the fall-back container image for Keystone Fernet Rotation
50-
KeystoneFernetRotationContainerImage = "registry.redhat.io/openshift4/ose-cli"
5148
)
5249

5350
type KeystoneAPISpec struct {
@@ -56,9 +53,6 @@ type KeystoneAPISpec struct {
5653
// +kubebuilder:validation:Required
5754
// Keystone Container Image URL (will be set to environmental default if empty)
5855
ContainerImage string `json:"containerImage"`
59-
// +kubebuilder:validation:Required
60-
// Keystone Fernet Rotation Container Image URL (will be set to environmental default if empty)
61-
FernetRotationContainerImage string `json:"fernetRotationContainerImage"`
6256
}
6357

6458
// KeystoneAPISpec defines the desired state of KeystoneAPI
@@ -289,7 +283,6 @@ func SetupDefaults() {
289283
// Acquire environmental defaults and initialize Keystone defaults with them
290284
keystoneDefaults := KeystoneAPIDefaults{
291285
ContainerImageURL: util.GetEnvVar("RELATED_IMAGE_KEYSTONE_API_IMAGE_URL_DEFAULT", KeystoneAPIContainerImage),
292-
FernetRotationContainerImageURL: util.GetEnvVar("RELATED_IMAGE_KEYSTONE_FERNET_ROTATION_IMAGE_URL_DEFAULT", KeystoneFernetRotationContainerImage),
293286
}
294287

295288
SetupKeystoneAPIDefaults(keystoneDefaults)

api/v1beta1/keystoneapi_webhook.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import (
3838
// KeystoneAPIDefaults -
3939
type KeystoneAPIDefaults struct {
4040
ContainerImageURL string
41-
FernetRotationContainerImageURL string
4241
}
4342

4443
var keystoneAPIDefaults KeystoneAPIDefaults
@@ -70,9 +69,6 @@ func (r *KeystoneAPI) Default() {
7069
if r.Spec.ContainerImage == "" {
7170
r.Spec.ContainerImage = keystoneAPIDefaults.ContainerImageURL
7271
}
73-
if r.Spec.FernetRotationContainerImage == "" {
74-
r.Spec.FernetRotationContainerImage = keystoneAPIDefaults.FernetRotationContainerImageURL
75-
}
7672
r.Spec.Default()
7773
}
7874

config/crd/bases/keystone.openstack.org_keystoneapis.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ spec:
9595
keys after rotation
9696
format: int32
9797
type: integer
98-
fernetRotationContainerImage:
99-
description: Keystone Fernet Rotation Container Image URL (will be
100-
set to environmental default if empty)
101-
type: string
10298
fernetRotationDays:
10399
default: 1
104100
description: FernetRotationDays - Rotate fernet token keys every X
@@ -428,7 +424,6 @@ spec:
428424
required:
429425
- containerImage
430426
- databaseInstance
431-
- fernetRotationContainerImage
432427
- memcachedInstance
433428
- rabbitMqClusterName
434429
- secret

tests/functional/keystoneapi_webhook_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,13 @@ var _ = Describe("KeystoneAPI Webhook", func() {
9494
Expect(KeystoneAPI.Spec.ContainerImage).Should(Equal(
9595
keystonev1.KeystoneAPIContainerImage,
9696
))
97-
Expect(KeystoneAPI.Spec.FernetRotationContainerImage).Should(Equal(
98-
keystonev1.KeystoneFernetRotationContainerImage,
99-
))
10097
})
10198
})
10299

103100
When("A KeystoneAPI instance is created with container images", func() {
104101
BeforeEach(func() {
105102
spec := GetDefaultKeystoneAPISpec()
106103
spec["containerImage"] = "api-container-image"
107-
spec["fernetRotationContainerImage"] = "fernet-rotation-container-image"
108104
DeferCleanup(th.DeleteInstance, CreateKeystoneAPI(keystoneAPIName, spec))
109105
})
110106

@@ -113,9 +109,6 @@ var _ = Describe("KeystoneAPI Webhook", func() {
113109
Expect(KeystoneAPI.Spec.ContainerImage).Should(Equal(
114110
"api-container-image",
115111
))
116-
Expect(KeystoneAPI.Spec.FernetRotationContainerImage).Should(Equal(
117-
"fernet-rotation-container-image",
118-
))
119112
})
120113
})
121114

0 commit comments

Comments
 (0)