Skip to content

Commit

Permalink
Add test case for RBD pool extra storage class
Browse files Browse the repository at this point in the history
Template version: main (ba0ed2c)
  • Loading branch information
simu committed Sep 12, 2024
1 parent 926ffd7 commit 9c710d6
Show file tree
Hide file tree
Showing 29 changed files with 17,638 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"template": "https://github.com/projectsyn/commodore-component-template.git",
"commit": "8840f87d25d97ce0d4bfed75d40173caaf4100fc",
"commit": "ba0ed2c8ff147199a748e9ff12cadce32c167fc0",
"checkout": "main",
"context": {
"cookiecutter": {
"name": "Rook Ceph",
"slug": "rook-ceph",
"parameter_key": "rook_ceph",
"test_cases": "defaults openshift4 cephfs",
"test_cases": "defaults openshift4 cephfs rbd-extra-storageclass",
"add_lib": "n",
"add_pp": "y",
"add_golden": "y",
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- defaults
- openshift4
- cephfs
- rbd-extra-storageclass
defaults:
run:
working-directory: ${{ env.COMPONENT_NAME }}
Expand All @@ -52,6 +53,7 @@ jobs:
- defaults
- openshift4
- cephfs
- rbd-extra-storageclass
defaults:
run:
working-directory: ${{ env.COMPONENT_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile.vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ KUBENT_IMAGE ?= ghcr.io/doitintl/kube-no-trouble:latest
KUBENT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) --entrypoint=/app/kubent $(KUBENT_IMAGE)

instance ?= defaults
test_instances = tests/defaults.yml tests/openshift4.yml tests/cephfs.yml
test_instances = tests/defaults.yml tests/openshift4.yml tests/cephfs.yml tests/rbd-extra-storageclass.yml
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: ''
labels:
app.kubernetes.io/component: rook-ceph
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: syn-rook-ceph-operator
name: syn-rook-ceph-operator
openshift.io/cluster-monitoring: 'true'
name: syn-rook-ceph-operator
---
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: ''
labels:
app.kubernetes.io/component: rook-ceph
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: syn-rook-ceph-cluster
name: syn-rook-ceph-cluster
openshift.io/cluster-monitoring: 'true'
name: syn-rook-ceph-cluster
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations: {}
labels:
app.kubernetes.io/component: rook-ceph
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: rook-ceph-view
name: rook-ceph-view
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
rbac.authorization.k8s.io/aggregate-to-view: 'true'
name: rook-ceph-view
rules:
- apiGroups:
- ceph.rook.io
resources:
- cephblockpoolradosnamespaces
- cephblockpools
- cephbucketnotifications
- cephbuckettopics
- cephclients
- cephclusters
- cephfilesystemmirrors
- cephfilesystems
- cephfilesystemsubvolumegroups
- cephnfss
- cephobjectrealms
- cephobjectstores
- cephobjectstoreusers
- cephobjectzonegroups
- cephobjectzones
- cephrbdmirrors
verbs:
- get
- list
- watch
- apiGroups:
- objectbucket.io
resources:
- objectbucketclaims
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations: {}
labels:
app.kubernetes.io/component: rook-ceph
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: rook-ceph-edit
name: rook-ceph-edit
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
name: rook-ceph-edit
rules:
- apiGroups:
- ceph.rook.io
resources:
- cephblockpoolradosnamespaces
- cephblockpools
- cephbucketnotifications
- cephbuckettopics
- cephclients
- cephclusters
- cephfilesystemmirrors
- cephfilesystems
- cephfilesystemsubvolumegroups
- cephnfss
- cephobjectrealms
- cephobjectstores
- cephobjectstoreusers
- cephobjectzonegroups
- cephobjectzones
- cephrbdmirrors
verbs:
- create
- delete
- deletecollection
- patch
- update
- apiGroups:
- objectbucket.io
resources:
- objectbucketclaims
verbs:
- create
- delete
- deletecollection
- patch
- update
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations: {}
labels:
app.kubernetes.io/component: rook-ceph
app.kubernetes.io/managed-by: commodore
app.kubernetes.io/name: rook-ceph-cluster-reader
name: rook-ceph-cluster-reader
rbac.authorization.k8s.io/aggregate-to-cluster-reader: 'true'
name: rook-ceph-cluster-reader
rules:
- apiGroups:
- objectbucket.io
resources:
- objectbuckets
verbs:
- get
- list
- watch
Loading

0 comments on commit 9c710d6

Please sign in to comment.