Skip to content

Commit

Permalink
add generated changes for storageClusterPeer
Browse files Browse the repository at this point in the history
Signed-off-by: Rewant Soni <[email protected]>
  • Loading branch information
rewantsoni committed Feb 29, 2024
1 parent 034e085 commit 3b5ad3b
Show file tree
Hide file tree
Showing 13 changed files with 557 additions and 81 deletions.
1 change: 1 addition & 0 deletions api/v1/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&OCSInitialization{}, &OCSInitializationList{},
&StorageCluster{}, &StorageClusterList{},
&StorageProfile{}, &StorageProfileList{},
&StorageClusterPeer{}, &StorageClusterPeerList{},
)
metav1.AddToGroupVersion(scheme, GroupVersion)
return nil
Expand Down
89 changes: 89 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions config/crd/bases/ocs.openshift.io_storageclusterpeers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: storageclusterpeers.ocs.openshift.io
spec:
group: ocs.openshift.io
names:
kind: StorageClusterPeer
listKind: StorageClusterPeerList
plural: storageclusterpeers
singular: storageclusterpeer
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- description: Current Phase
jsonPath: .status.phase
name: Phase
type: string
name: v1
schema:
openAPIV3Schema:
description: StorageClusterPeer is the Schema for the storageclusterpeers
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: StorageClusterPeerSpec defines the desired state of StorageClusterPeer
properties:
ocsApiServerUri:
description: OCSAPIServerURI is the URI of the secondary ocs api server
type: string
type: object
status:
description: StorageClusterPeerStatus defines the observed state of StorageClusterPeer
properties:
phase:
description: Phase describes the Phase of StorageClusterPeer This
is used by OLM UI to provide status information to the user
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ spec:
kind: StorageClassRequest
name: storageclassrequests.ocs.openshift.io
version: v1alpha1
- description: StorageClusterPeer is the Schema for the storageclusterpeers API
displayName: Storage Cluster Peer
kind: StorageClusterPeer
name: storageclusterpeers.ocs.openshift.io
version: v1
- description: StorageCluster represents a cluster including Ceph Cluster, NooBaa
and all the storage and compute resources required.
displayName: Storage Cluster
Expand Down
26 changes: 26 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,32 @@ rules:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclusterpeers
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ocs.openshift.io
resources:
- storageclusterpeers/finalizers
verbs:
- update
- apiGroups:
- ocs.openshift.io
resources:
- storageclusterpeers/status
verbs:
- get
- patch
- update
- apiGroups:
- ocs.openshift.io
resources:
Expand Down
80 changes: 0 additions & 80 deletions controllers/suite_test.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: storageclusterpeers.ocs.openshift.io
spec:
group: ocs.openshift.io
names:
kind: StorageClusterPeer
listKind: StorageClusterPeerList
plural: storageclusterpeers
singular: storageclusterpeer
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- description: Current Phase
jsonPath: .status.phase
name: Phase
type: string
name: v1
schema:
openAPIV3Schema:
description: StorageClusterPeer is the Schema for the storageclusterpeers
API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: StorageClusterPeerSpec defines the desired state of StorageClusterPeer
properties:
ocsApiServerUri:
description: OCSAPIServerURI is the URI of the secondary ocs api server
type: string
type: object
status:
description: StorageClusterPeerStatus defines the observed state of StorageClusterPeer
properties:
phase:
description: Phase describes the Phase of StorageClusterPeer This
is used by OLM UI to provide status information to the user
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 3b5ad3b

Please sign in to comment.