Skip to content

Commit

Permalink
add genereted changes
Browse files Browse the repository at this point in the history
Signed-off-by: Rewant Soni <resoni@redhat.com>
  • Loading branch information
rewantsoni committed Jul 23, 2024
1 parent 4c2e27c commit cc62c01
Show file tree
Hide file tree
Showing 15 changed files with 711 additions and 2 deletions.
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.

66 changes: 66 additions & 0 deletions config/crd/bases/ocs.openshift.io_storageclusterpeers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: storageclusterpeers.ocs.openshift.io
spec:
group: ocs.openshift.io
names:
kind: StorageClusterPeer
listKind: StorageClusterPeerList
plural: storageclusterpeers
singular: storageclusterpeer
scope: Namespaced
versions:
- 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:
apiEndpoint:
description: APIEndpoint is the URI of the ocs api server
type: string
onboardingTicket:
description: OnboardingTicket holds an identity information required
for provider to onboard.
type: string
required:
- apiEndpoint
- onboardingTicket
type: object
status:
description: StorageClusterPeerStatus defines the observed state of StorageClusterPeer
properties:
id:
description: PeerID will hold the ID of representation of this resource
in the attached provider cluster
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ spec:
kind: OCSInitialization
name: ocsinitializations.ocs.openshift.io
version: v1
- 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 @@ -232,6 +232,32 @@ rules:
- patch
- update
- watch
- 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
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
)

// StorageClusterPeerReconciler reconciles a StorageClusterPeer object
// nolint:revive
type StorageClusterPeerReconciler struct {
client.Client
Scheme *runtime.Scheme
Expand All @@ -46,7 +47,7 @@ type StorageClusterPeerReconciler struct {
//
// For more details, check Reconcile and its Result here:
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile
func (r *StorageClusterPeerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
func (r *StorageClusterPeerReconciler) Reconcile(ctx context.Context, _ ctrl.Request) (ctrl.Result, error) {
_ = log.FromContext(ctx)

// TODO(user): your logic here
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: storageclusterpeers.ocs.openshift.io
spec:
group: ocs.openshift.io
names:
kind: StorageClusterPeer
listKind: StorageClusterPeerList
plural: storageclusterpeers
singular: storageclusterpeer
scope: Namespaced
versions:
- 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:
APIServerEndpoint:
description: APIServerEndpoint is the URI of the ocs api server
type: string
onboardingTicket:
description: OnboardingTicket holds an identity information required
for provider to onboard.
type: string
required:
- APIServerEndpoint
- onboardingTicket
type: object
status:
description: StorageClusterPeerStatus defines the observed state of StorageClusterPeer
properties:
id:
description: PeerID will hold the ID of representation of this resource
in the attached provider cluster
type: string
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: {}
43 changes: 43 additions & 0 deletions deploy/csv-templates/ocs-operator.csv.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,18 @@ metadata:
]
}
},
{
"apiVersion": "ocs.openshift.io/v1",
"kind": "StorageClusterPeer",
"metadata": {
"name": "storageclusterpeer-sample",
"namespace": "openshift-storage"
},
"spec": {
"APIServerEndpoint": "10.0.0.0:31659",
"onboardingTicket": "onboarding-token"
}
},
{
"apiVersion": "ocs.openshift.io/v1",
"kind": "StorageProfile",
Expand Down Expand Up @@ -96,6 +108,11 @@ spec:
kind: OCSInitialization
name: ocsinitializations.ocs.openshift.io
version: v1
- 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 Expand Up @@ -386,6 +403,32 @@ spec:
- patch
- update
- watch
- 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
Loading

0 comments on commit cc62c01

Please sign in to comment.