Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
tnozicka committed Jun 24, 2024
1 parent 25f1cf9 commit 5b15d2b
Show file tree
Hide file tree
Showing 21 changed files with 166 additions and 39 deletions.
6 changes: 6 additions & 0 deletions deploy/manager/dev/50_scyllacluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ spec:
requests:
cpu: 10m
memory: 100Mi
placement:
tolerations:
- key: role
operator: Equal
value: scylla-clusters
effect: NoSchedule
6 changes: 6 additions & 0 deletions deploy/manager/prod/50_scyllacluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ spec:
requests:
cpu: 1
memory: 200Mi
placement:
tolerations:
- key: role
operator: Equal
value: scylla-clusters
effect: NoSchedule
41 changes: 29 additions & 12 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -96,6 +102,7 @@ rules:
resources:
- statefulsets
- daemonsets
- daemonsets/finalizers
- deployments
verbs:
- create
Expand All @@ -115,7 +122,9 @@ rules:
- scylla.scylladb.com
resources:
- scyllaclusters
- scyllaclusters/finalizers
- scylladbmonitorings
- scylladbmonitorings/finalizers
verbs:
- create
- delete
Expand All @@ -139,6 +148,7 @@ rules:
- ""
resources:
- configmaps
- configmaps/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -175,6 +185,8 @@ rules:
- scylla.scylladb.com
resources:
- nodeconfigs
- nodeconfigs/status
- nodeconfigs/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -210,18 +222,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- scylla.scylladb.com
resources:
- nodeconfigs/status
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand Down Expand Up @@ -284,6 +284,14 @@ rules:
- patch
- update
- delete
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use

---
apiVersion: v1
Expand Down Expand Up @@ -5094,6 +5102,7 @@ rules:
- ""
resources:
- configmaps
- configmaps/finalizers
verbs:
- get
- list
Expand Down Expand Up @@ -5123,6 +5132,14 @@ rules:
- scyllaclusters
verbs:
- get
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use

---
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
32 changes: 20 additions & 12 deletions deploy/operator/00_clusterrole_def.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -86,6 +92,7 @@ rules:
resources:
- statefulsets
- daemonsets
- daemonsets/finalizers
- deployments
verbs:
- create
Expand All @@ -105,7 +112,9 @@ rules:
- scylla.scylladb.com
resources:
- scyllaclusters
- scyllaclusters/finalizers
- scylladbmonitorings
- scylladbmonitorings/finalizers
verbs:
- create
- delete
Expand All @@ -129,6 +138,7 @@ rules:
- ""
resources:
- configmaps
- configmaps/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -165,6 +175,8 @@ rules:
- scylla.scylladb.com
resources:
- nodeconfigs
- nodeconfigs/status
- nodeconfigs/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -200,18 +212,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- scylla.scylladb.com
resources:
- nodeconfigs/status
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand Down Expand Up @@ -274,3 +274,11 @@ rules:
- patch
- update
- delete
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use
9 changes: 9 additions & 0 deletions deploy/operator/00_scyllacluster_member_clusterrole_def.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ rules:
- ""
resources:
- configmaps
- configmaps/finalizers
verbs:
- get
- list
Expand Down Expand Up @@ -53,3 +54,11 @@ rules:
- scyllaclusters
verbs:
- get
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use
2 changes: 1 addition & 1 deletion examples/eks/nodeconfig-alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
type: xfs
mounts:
- device: /dev/md/nvmes
mountPoint: /mnt/persistent-volumes
mountPoint: /var/mnt/persistent-volumes
unsupportedOptions:
- prjquota
raids:
Expand Down
2 changes: 1 addition & 1 deletion examples/gke/nodeconfig-alpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
type: xfs
mounts:
- device: /dev/md/nvmes
mountPoint: /mnt/persistent-volumes
mountPoint: /var/mnt/persistent-volumes
unsupportedOptions:
- prjquota
raids:
Expand Down
13 changes: 13 additions & 0 deletions examples/third-party/haproxy-ingress/10_haproxy-ingress.role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: haproxy-ingress
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: haproxy-ingress
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: haproxy-ingress
subjects:
- kind: ServiceAccount
name: haproxy-ingress
namespace: haproxy-ingress
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: scylladb:csi-external-provisioner
rules:
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use
- apiGroups:
- ""
resources:
Expand Down
1 change: 1 addition & 0 deletions hack/ci-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if [[ -z "${SO_CSI_DRIVER_PATH:-}" ]]; then
echo "Skipping CSI driver creation"
else
kubectl_create -n=local-csi-driver -f="${SO_CSI_DRIVER_PATH}"
kubectl -n=local-csi-driver rollout status -f="${SO_CSI_DRIVER_PATH}"
fi

kubectl_create -f "${DEPLOY_DIR}"/manager
Expand Down
6 changes: 6 additions & 0 deletions helm/scylla-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ scylla:
requests:
cpu: 1
memory: 200Mi
placement:
tolerations:
- key: role
operator: Equal
value: scylla-clusters
effect: NoSchedule

# Whether to create Prometheus ServiceMonitor
serviceMonitor:
Expand Down
32 changes: 20 additions & 12 deletions helm/scylla-operator/templates/clusterrole_def.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -86,6 +92,7 @@ rules:
resources:
- statefulsets
- daemonsets
- daemonsets/finalizers
- deployments
verbs:
- create
Expand All @@ -105,7 +112,9 @@ rules:
- scylla.scylladb.com
resources:
- scyllaclusters
- scyllaclusters/finalizers
- scylladbmonitorings
- scylladbmonitorings/finalizers
verbs:
- create
- delete
Expand All @@ -129,6 +138,7 @@ rules:
- ""
resources:
- configmaps
- configmaps/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -165,6 +175,8 @@ rules:
- scylla.scylladb.com
resources:
- nodeconfigs
- nodeconfigs/status
- nodeconfigs/finalizers
verbs:
- create
- delete
Expand Down Expand Up @@ -200,18 +212,6 @@ rules:
- patch
- update
- watch
- apiGroups:
- scylla.scylladb.com
resources:
- nodeconfigs/status
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- batch
resources:
Expand Down Expand Up @@ -274,3 +274,11 @@ rules:
- patch
- update
- delete
- apiGroups:
- security.openshift.io
resourceNames:
- privileged
resources:
- securitycontextconstraints
verbs:
- use
Loading

0 comments on commit 5b15d2b

Please sign in to comment.