Skip to content

Commit

Permalink
Merge pull request #145 from leelavg/rename-claim-type
Browse files Browse the repository at this point in the history
make value of storageclaim type case insensitive and consistent
  • Loading branch information
openshift-merge-bot[bot] authored Apr 22, 2024
2 parents 00598f9 + 44f5a68 commit 29394b2
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 355 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/storageclaim_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type StorageClaimStatus struct {

// StorageClaimSpec defines the desired state of StorageClaim
type StorageClaimSpec struct {
//+kubebuilder:validation:Enum=block;sharedfile
//+kubebuilder:validation:XValidation:rule="self.lowerAscii()=='block'||self.lowerAscii()=='sharedfile'",message="value should be either 'sharedfile' or 'block'"
Type string `json:"type"`
EncryptionMethod string `json:"encryptionMethod,omitempty"`
StorageProfile string `json:"storageProfile,omitempty"`
Expand Down
31 changes: 0 additions & 31 deletions bundle/manifests/ocs-client-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ spec:
kind: StorageClaim
name: storageclaims.ocs.openshift.io
version: v1alpha1
- description: StorageClassClaim is the Schema for the storageclassclaims API
displayName: Storage Class Claim
kind: StorageClassClaim
name: storageclassclaims.ocs.openshift.io
version: v1alpha1
- description: StorageClient is the Schema for the storageclients API
displayName: Storage Client
kind: StorageClient
Expand Down Expand Up @@ -202,32 +197,6 @@ spec:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims/finalizers
verbs:
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclassclaims/status
verbs:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
Expand Down
6 changes: 3 additions & 3 deletions bundle/manifests/ocs.openshift.io_storageclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ spec:
storageProfile:
type: string
type:
enum:
- block
- sharedfile
type: string
x-kubernetes-validations:
- message: value should be either 'sharedfile' or 'block'
rule: self.lowerAscii()=='block'||self.lowerAscii()=='sharedfile'
required:
- storageClient
- type
Expand Down
104 changes: 0 additions & 104 deletions bundle/manifests/ocs.openshift.io_storageclassclaims.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions config/crd/bases/ocs.openshift.io_storageclaims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ spec:
storageProfile:
type: string
type:
enum:
- block
- sharedfile
type: string
x-kubernetes-validations:
- message: value should be either 'sharedfile' or 'block'
rule: self.lowerAscii()=='block'||self.lowerAscii()=='sharedfile'
required:
- storageClient
- type
Expand Down
99 changes: 0 additions & 99 deletions config/crd/bases/ocs.openshift.io_storageclassclaims.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
# It should be run by config/default
resources:
- bases/ocs.openshift.io_storageclients.yaml
- bases/ocs.openshift.io_storageclassclaims.yaml
- bases/ocs.openshift.io_storageclaims.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix.
# patches here are for enabling the conversion webhook for each CRD
#- patches/webhook_in_storageclients.yaml
#- patches/webhook_in_storageclassclaims.yaml
#- patches/webhook_in_storageclaims.yaml
#+kubebuilder:scaffold:crdkustomizewebhookpatch

# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
#- patches/cainjection_in_storageclients.yaml
#- patches/cainjection_in_storageclassclaims.yaml
#- patches/cainjection_in_storageclaims.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch

Expand Down
7 changes: 0 additions & 7 deletions config/crd/patches/cainjection_in_storageclassclaims.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions config/crd/patches/webhook_in_storageclassclaims.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ spec:
kind: StorageClaim
name: storageclaims.ocs.openshift.io
version: v1alpha1
- description: StorageClassClaim is the Schema for the storageclassclaims API
displayName: Storage Class Claim
kind: StorageClassClaim
name: storageclassclaims.ocs.openshift.io
version: v1alpha1
- description: StorageClient is the Schema for the storageclients API
displayName: Storage Client
kind: StorageClient
Expand Down
31 changes: 0 additions & 31 deletions config/rbac/storageclassclaim_editor_role.yaml

This file was deleted.

Loading

0 comments on commit 29394b2

Please sign in to comment.