Skip to content

Commit

Permalink
Fix #104 - Add csi-s3 to all resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Apr 22, 2024
1 parent 7f74985 commit 29e63f2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions deploy/helm/csi-s3/templates/provisioner.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-provisioner-sa
name: csi-s3-provisioner-sa
namespace: {{ .Release.Namespace }}
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: external-provisioner-runner
name: csi-s3-external-provisioner-runner
rules:
- apiGroups: [""]
resources: ["secrets"]
Expand All @@ -28,47 +28,47 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-provisioner-role
name: csi-s3-provisioner-role
subjects:
- kind: ServiceAccount
name: csi-provisioner-sa
name: csi-s3-provisioner-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: external-provisioner-runner
name: csi-s3-external-provisioner-runner
apiGroup: rbac.authorization.k8s.io
---
kind: Service
apiVersion: v1
metadata:
name: csi-provisioner-s3
name: csi-s3-provisioner
namespace: {{ .Release.Namespace }}
labels:
app: csi-provisioner-s3
app: csi-s3-provisioner
spec:
selector:
app: csi-provisioner-s3
app: csi-s3-provisioner
ports:
- name: csi-s3-dummy
port: 65535
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: csi-provisioner-s3
name: csi-s3-provisioner
namespace: {{ .Release.Namespace }}
spec:
serviceName: "csi-provisioner-s3"
replicas: 1
selector:
matchLabels:
app: csi-provisioner-s3
app: csi-s3-provisioner
template:
metadata:
labels:
app: csi-provisioner-s3
app: csi-s3-provisioner
spec:
serviceAccount: csi-provisioner-sa
serviceAccount: csi-s3-provisioner-sa
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
Expand Down
24 changes: 12 additions & 12 deletions deploy/kubernetes/provisioner.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: csi-provisioner-sa
name: csi-s3-provisioner-sa
namespace: kube-system
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: external-provisioner-runner
name: csi-s3-external-provisioner-runner
rules:
- apiGroups: [""]
resources: ["secrets"]
Expand All @@ -28,47 +28,47 @@ rules:
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-provisioner-role
name: csi-s3-provisioner-role
subjects:
- kind: ServiceAccount
name: csi-provisioner-sa
name: csi-s3-provisioner-sa
namespace: kube-system
roleRef:
kind: ClusterRole
name: external-provisioner-runner
name: csi-s3-external-provisioner-runner
apiGroup: rbac.authorization.k8s.io
---
kind: Service
apiVersion: v1
metadata:
name: csi-provisioner-s3
name: csi-s3-provisioner
namespace: kube-system
labels:
app: csi-provisioner-s3
app: csi-s3-provisioner
spec:
selector:
app: csi-provisioner-s3
app: csi-s3-provisioner
ports:
- name: csi-s3-dummy
port: 65535
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: csi-provisioner-s3
name: csi-s3-provisioner
namespace: kube-system
spec:
serviceName: "csi-provisioner-s3"
replicas: 1
selector:
matchLabels:
app: csi-provisioner-s3
app: csi-s3-provisioner
template:
metadata:
labels:
app: csi-provisioner-s3
app: csi-s3-provisioner
spec:
serviceAccount: csi-provisioner-sa
serviceAccount: csi-s3-provisioner-sa
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
Expand Down

0 comments on commit 29e63f2

Please sign in to comment.