Skip to content

Commit ef69da7

Browse files
Merge pull request #308 from kstrenkova/fix-storage-class-bug
Fix setting StorageClass parameter in main section
2 parents 80d3de4 + 886d28d commit ef69da7

File tree

7 files changed

+1
-8
lines changed

7 files changed

+1
-8
lines changed

api/bases/test.openstack.org_ansibletests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,6 @@ spec:
22312231
maxLength: 100
22322232
type: string
22332233
storageClass:
2234-
default: local-storage
22352234
description: StorageClass used to create any test-operator related
22362235
PVCs.
22372236
type: string

api/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,6 @@ spec:
25522552
pattern: ^[a-z0-9]
25532553
type: string
25542554
storageClass:
2555-
default: local-storage
25562555
description: StorageClass used to create any test-operator related
25572556
PVCs.
25582557
type: string

api/bases/test.openstack.org_tobikoes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,6 @@ spec:
22372237
maxLength: 100
22382238
type: string
22392239
storageClass:
2240-
default: local-storage
22412240
description: StorageClass used to create any test-operator related
22422241
PVCs.
22432242
type: string

api/v1beta1/common.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,8 @@ type WorkflowCommonOptions struct {
147147

148148
// +operator-sdk:csv:customresourcedefinitions:type=spec
149149
// +kubebuilder:validation:Optional
150-
// +kubebuilder:default:="local-storage"
151150
// StorageClass used to create any test-operator related PVCs.
152-
StorageClass *string `json:"storageClass"`
151+
StorageClass *string `json:"storageClass,omitempty"`
153152

154153
// +operator-sdk:csv:customresourcedefinitions:type=spec
155154
// +kubebuilder:validation:Optional

config/crd/bases/test.openstack.org_ansibletests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,6 @@ spec:
22312231
maxLength: 100
22322232
type: string
22332233
storageClass:
2234-
default: local-storage
22352234
description: StorageClass used to create any test-operator related
22362235
PVCs.
22372236
type: string

config/crd/bases/test.openstack.org_tempests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,6 @@ spec:
25522552
pattern: ^[a-z0-9]
25532553
type: string
25542554
storageClass:
2555-
default: local-storage
25562555
description: StorageClass used to create any test-operator related
25572556
PVCs.
25582557
type: string

config/crd/bases/test.openstack.org_tobikoes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2237,7 +2237,6 @@ spec:
22372237
maxLength: 100
22382238
type: string
22392239
storageClass:
2240-
default: local-storage
22412240
description: StorageClass used to create any test-operator related
22422241
PVCs.
22432242
type: string

0 commit comments

Comments
 (0)