Skip to content

Commit

Permalink
Merge pull request #454 from gnufied/add-azure-file-hypershift
Browse files Browse the repository at this point in the history
STOR-1758: Add azure file hypershift
  • Loading branch information
openshift-merge-bot[bot] committed Feb 28, 2024
2 parents 9bb7e7c + e38a378 commit b3b6723
Show file tree
Hide file tree
Showing 47 changed files with 1,469 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: azure-disk-csi-driver-operator
name: azure-file-csi-driver-operator
namespace: openshift-cluster-csi-drivers
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: azure-disk-csi-driver-operator-role
name: azure-file-csi-driver-operator-role
namespace: openshift-cluster-csi-drivers
rules:
- apiGroups:
Expand All @@ -10,7 +10,6 @@ rules:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
Expand All @@ -22,19 +21,11 @@ rules:
- update
- patch
- delete
- apiGroups:
- ''
resources:
- namespaces
verbs:
- get
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- get
- list
Expand All @@ -56,11 +47,38 @@ rules:
- patch
- delete
- apiGroups:
- monitoring.coreos.com
- ''
resources:
- servicemonitors
- serviceaccounts
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- rbac.authorization.k8s.io
resources:
- roles
- rolebindings
verbs:
- watch
- list
- get
- create
- delete
- patch
- update
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: azure-disk-csi-driver-operator-rolebinding
name: azure-file-csi-driver-operator-rolebinding
namespace: openshift-cluster-csi-drivers
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: azure-disk-csi-driver-operator-role
name: azure-file-csi-driver-operator-role
subjects:
- kind: ServiceAccount
name: azure-disk-csi-driver-operator
name: azure-file-csi-driver-operator
namespace: openshift-cluster-csi-drivers
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: azure-disk-csi-driver-operator-clusterrole
name: azure-file-csi-driver-operator-clusterrole
annotations:
storage.openshift.io/remove-from: mgmt
rules:
- apiGroups:
- security.openshift.io
Expand Down Expand Up @@ -36,7 +38,7 @@ rules:
- ''
resourceNames:
- extension-apiserver-authentication
- azure-disk-csi-driver-operator-lock
- azure-file-csi-driver-operator-lock
resources:
- configmaps
verbs:
Expand Down Expand Up @@ -124,6 +126,10 @@ rules:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ''
resources:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: azure-disk-csi-driver-operator-clusterrolebinding
name: azure-file-csi-driver-operator-clusterrolebinding
annotations:
storage.openshift.io/remove-from: mgmt
subjects:
- kind: ServiceAccount
name: azure-disk-csi-driver-operator
name: azure-file-csi-driver-operator
namespace: openshift-cluster-csi-drivers
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: azure-disk-csi-driver-operator-clusterrole
name: azure-file-csi-driver-operator-clusterrole
58 changes: 58 additions & 0 deletions assets/csidriveroperators/azure-file/base/08_deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-file-csi-driver-operator
namespace: openshift-cluster-csi-drivers
annotations:
config.openshift.io/inject-proxy: azure-file-csi-driver-operator
spec:
replicas: 1
selector:
matchLabels:
name: azure-file-csi-driver-operator
strategy: {}
template:
metadata:
annotations:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
labels:
name: azure-file-csi-driver-operator
spec:
containers:
- args:
- start
- -v=${LOG_LEVEL}
env:
- name: DRIVER_IMAGE
value: ${DRIVER_IMAGE}
- name: PROVISIONER_IMAGE
value: ${PROVISIONER_IMAGE}
- name: ATTACHER_IMAGE
value: ${ATTACHER_IMAGE}
- name: RESIZER_IMAGE
value: ${RESIZER_IMAGE}
- name: SNAPSHOTTER_IMAGE
value: ${SNAPSHOTTER_IMAGE}
- name: NODE_DRIVER_REGISTRAR_IMAGE
value: ${NODE_DRIVER_REGISTRAR_IMAGE}
- name: LIVENESS_PROBE_IMAGE
value: ${LIVENESS_PROBE_IMAGE}
- name: KUBE_RBAC_PROXY_IMAGE
value: ${KUBE_RBAC_PROXY_IMAGE}
- name: CLUSTER_CLOUD_CONTROLLER_MANAGER_OPERATOR_IMAGE
value: ${CLUSTER_CLOUD_CONTROLLER_MANAGER_OPERATOR_IMAGE}
- name: OPERATOR_IMAGE_VERSION
value: ${OPERATOR_IMAGE_VERSION}
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: ${OPERATOR_IMAGE}
imagePullPolicy: IfNotPresent
name: azure-file-csi-driver-operator
resources:
requests:
memory: 50Mi
cpu: 10m
priorityClassName: system-cluster-critical
serviceAccountName: azure-file-csi-driver-operator
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
name: disk.csi.azure.com
name: file.csi.azure.com
annotations:
storage.openshift.io/remove-from: mgmt
spec:
logLevel: Normal
managementState: Managed
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- op: "add"
path: "/rules/0/resources/-"
value: "persistentvolumeclaims"

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: operator.openshift.io/v1
kind: ClusterCSIDriver
metadata:
annotations:
storage.openshift.io/remove-from: mgmt
name: file.csi.azure.com
namespace: openshift-cluster-csi-drivers
spec:
logLevel: Normal
managementState: Managed
operatorLogLevel: Normal

0 comments on commit b3b6723

Please sign in to comment.