Skip to content

Commit

Permalink
Merge pull request ceph#6 from iamniting/name
Browse files Browse the repository at this point in the history
bundle: rename the operator package
  • Loading branch information
openshift-merge-bot[bot] authored Jul 17, 2024
2 parents 6877dc1 + f9099f2 commit 9d09d57
Show file tree
Hide file tree
Showing 13 changed files with 300 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile.Downstream.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BUNDLE_IMG ?= $(IMAGE_REGISTRY)/$(REGISTRY_NAMESPACE)/$(BUNDLE_IMAGE_NAME):$(IMA
# the PACKAGE_NAME is included in the bundle/CSV and is used in catalogsources
# for operators (like OperatorHub.io). Products that include the ceph-csi-operator
# bundle should use a different PACKAGE_NAME to prevent conflicts.
PACKAGE_NAME ?= ceph-csi-operator
PACKAGE_NAME ?= cephcsi-operator

# Creating the New CatalogSource requires publishing CSVs that replace one operator,
# but can skip several. This can be accomplished using the skipRange annotation:
Expand Down
2 changes: 1 addition & 1 deletion bundle.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM scratch
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=ceph-csi-operator
LABEL operators.operatorframework.io.bundle.package.v1=cephcsi-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.34.1
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ceph-csi-operator
name: ceph-csi-operator-cephcluster-editor-role
rules:
- apiGroups:
- csi.ceph.io
resources:
- cephclusters
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- csi.ceph.io
resources:
- cephclusters/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ceph-csi-operator
name: ceph-csi-operator-cephcluster-viewer-role
rules:
- apiGroups:
- csi.ceph.io
resources:
- cephclusters
verbs:
- get
- list
- watch
- apiGroups:
- csi.ceph.io
resources:
- cephclusters/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ceph-csi-operator
name: ceph-csi-operator-config-editor-role
rules:
- apiGroups:
- csi.ceph.io
resources:
- configs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- csi.ceph.io
resources:
- configs/status
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: ceph-csi-operator
name: ceph-csi-operator-config-viewer-role
rules:
- apiGroups:
- csi.ceph.io
resources:
- configs
verbs:
- get
- list
- watch
- apiGroups:
- csi.ceph.io
resources:
- configs/status
verbs:
- get
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@ metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
createdAt: "2024-07-04T14:02:29Z"
createdAt: "2024-07-17T12:27:29Z"
olm.skipRange: ""
operators.operatorframework.io/builder: operator-sdk-v1.34.1
operators.operatorframework.io/operator-type: non-standalone
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
name: ceph-csi-operator.v4.17.0
name: cephcsi-operator.v4.17.0
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- kind: CephCluster
name: cephclusters.csi.ceph.io
version: v1alpha1
- kind: Config
name: configs.csi.ceph.io
version: v1alpha1
- kind: Driver
name: drivers.csi.ceph.io
version: v1alpha1
Expand All @@ -30,6 +36,32 @@ spec:
spec:
clusterPermissions:
- rules:
- apiGroups:
- csi.ceph.io
resources:
- configs
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- csi.ceph.io
resources:
- configs/finalizers
verbs:
- update
- apiGroups:
- csi.ceph.io
resources:
- configs/status
verbs:
- get
- patch
- update
- apiGroups:
- csi.ceph.io
resources:
Expand Down Expand Up @@ -118,7 +150,7 @@ spec:
- --leader-elect
command:
- /manager
image: quay.io/cephcsi/ceph-csi-operator:latest
image: quay.io/ocs-dev/ceph-csi-operator:latest
livenessProbe:
httpGet:
path: /healthz
Expand Down
72 changes: 72 additions & 0 deletions bundle/manifests/csi.ceph.io_cephclusters.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
creationTimestamp: null
name: cephclusters.csi.ceph.io
spec:
group: csi.ceph.io
names:
kind: CephCluster
listKind: CephClusterList
plural: cephclusters
singular: cephcluster
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: CephCluster is the Schema for the cephclusters 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: CephClusterSpec defines the desired state of CephCluster
properties:
monitors:
items:
type: string
type: array
rbdMirrorDaemonCount:
type: integer
readAffinity:
description: ReadAffinitySpec capture Ceph CSI read affinity settings
properties:
crushLocationLabels:
items:
type: string
type: array
type: object
required:
- monitors
type: object
status:
description: CephClusterStatus defines the observed state of CephCluster
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
86 changes: 86 additions & 0 deletions bundle/manifests/csi.ceph.io_configs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
creationTimestamp: null
name: configs.csi.ceph.io
spec:
group: csi.ceph.io
names:
kind: Config
listKind: ConfigList
plural: configs
singular: config
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Config is the Schema for the configs 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: ConfigSpec defines the desired state of Config
properties:
cephClusterRef:
description: |-
LocalObjectReference contains enough information to let you locate the
referenced object inside the same namespace.
properties:
name:
description: |-
Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?
type: string
type: object
x-kubernetes-map-type: atomic
cephFs:
description: CephFsConfigSpec defines the desired CephFs configuration
properties:
subVolumeGroup:
type: string
type: object
nfs:
description: NfsConfigSpec cdefines the desired NFS configuration
type: object
rbd:
description: RbdConfigSpec defines the desired RBD configuration
properties:
radosNamespace:
type: string
type: object
required:
- cephClusterRef
type: object
status:
description: ConfigStatus defines the observed state of Config
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
2 changes: 1 addition & 1 deletion bundle/metadata/annotations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ annotations:
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: ceph-csi-operator
operators.operatorframework.io.bundle.package.v1: cephcsi-operator
operators.operatorframework.io.bundle.channels.v1: alpha
operators.operatorframework.io.metrics.builder: operator-sdk-v1.34.1
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/csi.ceph.io_configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ spec:
radosNamespace:
type: string
type: object
required:
- cephClusterRef
type: object
status:
description: ConfigStatus defines the observed state of Config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
capabilities: Basic Install
olm.skipRange: ""
operators.operatorframework.io/operator-type: non-standalone
name: ceph-csi-operator.v0.1.1
name: cephcsi-operator.v0.1.1
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down
2 changes: 1 addition & 1 deletion config/manifests/bases/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ceph-csi-operator.clusterserviceversion.yaml
- cephcsi-operator.clusterserviceversion.yaml
commonAnnotations:
olm.skipRange: ""

0 comments on commit 9d09d57

Please sign in to comment.