From 77d74f777474322b811f64738932fcdf63611076 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 17 Oct 2024 13:52:07 +0100 Subject: [PATCH] openstack-cinder: Add auto-generated assets Generated with 'make update'. Nothing much to see here. Signed-off-by: Stephen Finucane --- ...tercsidriver_cinder.csi.openstack.org.yaml | 13 + ...inder-csi-driver-operator-clusterrole.yaml | 300 ++++++++++++++++++ ...si-driver-operator-clusterrolebinding.yaml | 14 + ...stack-cinder-csi-driver-operator-role.yaml | 67 ++++ ...inder-csi-driver-operator-rolebinding.yaml | 13 + ..._openstack-cinder-csi-driver-operator.yaml | 5 + ..._openstack-cinder-csi-driver-operator.yaml | 122 +++++++ ...inder-csi-driver-operator-clusterrole.yaml | 300 ++++++++++++++++++ ...stack-cinder-csi-driver-operator-role.yaml | 65 ++++ ...inder-csi-driver-operator-rolebinding.yaml | 13 + ..._openstack-cinder-csi-driver-operator.yaml | 7 + .../csioperatorclient/cinder.go | 2 +- 12 files changed, 920 insertions(+), 1 deletion(-) create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_cinder.csi.openstack.org.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrolebinding_openstack-cinder-csi-driver-operator-clusterrolebinding.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/apps_v1_deployment_openstack-cinder-csi-driver-operator.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml create mode 100644 assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_cinder.csi.openstack.org.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_cinder.csi.openstack.org.yaml new file mode 100644 index 000000000..c718f8ac1 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_cinder.csi.openstack.org.yaml @@ -0,0 +1,13 @@ +apiVersion: operator.openshift.io/v1 +kind: ClusterCSIDriver +metadata: + annotations: + storage.openshift.io/remove-from: mgmt + name: cinder.csi.openstack.org + namespace: openshift-cluster-csi-drivers +spec: + driverConfig: + driverName: cinder.csi.openstack.org + logLevel: Trace + managementState: Managed + operatorLogLevel: Trace diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml new file mode 100644 index 000000000..cf4862553 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml @@ -0,0 +1,300 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: openstack-cinder-csi-driver-operator-clusterrole +rules: +- apiGroups: + - security.openshift.io + resourceNames: + - privileged + resources: + - securitycontextconstraints + verbs: + - use +- apiGroups: + - "" + resources: + - configmaps + verbs: + - watch + - list + - get + - create + - delete + - patch + - update +- apiGroups: + - "" + resources: + - pods + verbs: + - watch + - list + - get +- apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + - clusterrolebindings + - roles + - rolebindings + verbs: + - watch + - list + - get + - create + - delete + - patch + - update +- apiGroups: + - "" + resources: + - serviceaccounts + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - get + - list + - create + - watch + - delete +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - nodes + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - secrets + verbs: + - get + - list + - watch + - create + - patch + - update +- apiGroups: + - "" + resources: + - namespaces + verbs: + - get + - list + - watch + - create + - patch + - delete + - update +- apiGroups: + - "" + resources: + - persistentvolumes + verbs: + - create + - delete + - list + - get + - watch + - update + - patch +- apiGroups: + - "" + resources: + - persistentvolumeclaims + verbs: + - get + - list + - watch + - update +- apiGroups: + - "" + resources: + - persistentvolumeclaims/status + verbs: + - patch + - update +- apiGroups: + - apps + resources: + - deployments + - daemonsets + - replicasets + - statefulsets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - storage.k8s.io + resources: + - volumeattachments + verbs: + - get + - list + - watch + - update + - delete + - create + - patch +- apiGroups: + - storage.k8s.io + resources: + - volumeattachments/status + verbs: + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotcontents/status + verbs: + - update + - patch +- apiGroups: + - storage.k8s.io + resources: + - storageclasses + - csinodes + verbs: + - create + - get + - list + - watch + - update + - delete +- apiGroups: + - '*' + resources: + - events + verbs: + - get + - patch + - create + - list + - watch + - update + - delete +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotclasses + verbs: + - get + - list + - watch + - create + - update + - delete +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotcontents + verbs: + - create + - get + - list + - watch + - update + - delete + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshots + verbs: + - get + - list + - watch + - update + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshots/status + verbs: + - patch +- apiGroups: + - storage.k8s.io + resources: + - csidrivers + verbs: + - create + - get + - list + - watch + - update + - delete +- apiGroups: + - csi.openshift.io + resources: + - '*' + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - config.openshift.io + resources: + - infrastructures + - proxies + - apiservers + verbs: + - get + - list + - watch +- apiGroups: + - operator.openshift.io + resources: + - clustercsidrivers + - clustercsidrivers/status + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - authentication.k8s.io + resources: + - tokenreviews + verbs: + - create diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrolebinding_openstack-cinder-csi-driver-operator-clusterrolebinding.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrolebinding_openstack-cinder-csi-driver-operator-clusterrolebinding.yaml new file mode 100644 index 000000000..ad08c88aa --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_clusterrolebinding_openstack-cinder-csi-driver-operator-clusterrolebinding.yaml @@ -0,0 +1,14 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + annotations: + storage.openshift.io/remove-from: mgmt + name: openstack-cinder-csi-driver-operator-clusterrolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: openstack-cinder-csi-driver-operator-clusterrole +subjects: +- kind: ServiceAccount + name: openstack-cinder-csi-driver-operator + namespace: openshift-cluster-csi-drivers diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml new file mode 100644 index 000000000..2d157b564 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml @@ -0,0 +1,67 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: openstack-cinder-csi-driver-operator-role + namespace: openshift-cluster-csi-drivers +rules: +- apiGroups: + - "" + resources: + - pods + - services + - endpoints + - persistentvolumeclaims + - events + - configmaps + - secrets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - namespaces + verbs: + - get +- apiGroups: + - apps + resources: + - deployments + - daemonsets + - replicasets + - statefulsets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - policy + resources: + - poddisruptionbudgets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + verbs: + - get + - create + - update + - patch + - delete diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml new file mode 100644 index 000000000..72bafb125 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: openstack-cinder-csi-driver-operator-rolebinding + namespace: openshift-cluster-csi-drivers +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: openstack-cinder-csi-driver-operator-role +subjects: +- kind: ServiceAccount + name: openstack-cinder-csi-driver-operator + namespace: openshift-cluster-csi-drivers diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml new file mode 100644 index 000000000..4e168f2a8 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/guest/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: openstack-cinder-csi-driver-operator + namespace: openshift-cluster-csi-drivers diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/apps_v1_deployment_openstack-cinder-csi-driver-operator.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/apps_v1_deployment_openstack-cinder-csi-driver-operator.yaml new file mode 100644 index 000000000..05c33d20b --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/apps_v1_deployment_openstack-cinder-csi-driver-operator.yaml @@ -0,0 +1,122 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + config.openshift.io/inject-proxy: openstack-cinder-csi-driver-operator + name: openstack-cinder-csi-driver-operator + namespace: ${CONTROLPLANE_NAMESPACE} +spec: + replicas: 1 + selector: + matchLabels: + name: openstack-cinder-csi-driver-operator + strategy: {} + template: + metadata: + annotations: + target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' + labels: + hypershift.openshift.io/need-management-kas-access: "true" + name: openstack-cinder-csi-driver-operator + spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: hypershift.openshift.io/control-plane + operator: In + values: + - "true" + weight: 50 + - preference: + matchExpressions: + - key: hypershift.openshift.io/cluster + operator: In + values: + - ${CONTROLPLANE_NAMESPACE} + weight: 100 + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchLabels: + hypershift.openshift.io/hosted-control-plane: ${CONTROLPLANE_NAMESPACE} + topologyKey: kubernetes.io/hostname + weight: 100 + containers: + - args: + - start + - -v=${LOG_LEVEL} + - --guest-kubeconfig=/etc/guest-kubeconfig/kubeconfig + env: + - name: DRIVER_CONTROL_PLANE_IMAGE + value: ${DRIVER_CONTROL_PLANE_IMAGE} + - name: LIVENESS_PROBE_CONTROL_PLANE_IMAGE + value: ${LIVENESS_PROBE_CONTROL_PLANE_IMAGE} + - 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: POD_NAME + valueFrom: + fieldRef: + fieldPath: metadata.name + image: ${OPERATOR_IMAGE} + imagePullPolicy: IfNotPresent + name: openstack-cinder-csi-driver-operator + resources: + requests: + cpu: 10m + memory: 50Mi + terminationMessagePolicy: FallbackToLogsOnError + volumeMounts: + - mountPath: /etc/guest-kubeconfig + name: guest-kubeconfig + - mountPath: /etc/openstack + name: secret-cinderplugin + readOnly: true + - mountPath: /etc/kubernetes/static-pod-resources/configmaps/cloud-config + name: cacert + priorityClassName: hypershift-control-plane + serviceAccountName: openstack-cinder-csi-driver-operator + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - effect: NoSchedule + key: node-role.kubernetes.io/master + operator: Exists + - key: hypershift.openshift.io/control-plane + operator: Exists + - key: hypershift.openshift.io/cluster + operator: Equal + value: ${CONTROLPLANE_NAMESPACE} + volumes: + - name: guest-kubeconfig + secret: + secretName: service-network-admin-kubeconfig + - name: secret-cinderplugin + secret: + items: + - key: clouds.yaml + path: clouds.yaml + secretName: openstack-cloud-credentials + - configMap: + items: + - key: ca-bundle.pem + path: ca-bundle.pem + name: cloud-provider-config + optional: true + name: cacert diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml new file mode 100644 index 000000000..cf4862553 --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_clusterrole_openstack-cinder-csi-driver-operator-clusterrole.yaml @@ -0,0 +1,300 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: openstack-cinder-csi-driver-operator-clusterrole +rules: +- apiGroups: + - security.openshift.io + resourceNames: + - privileged + resources: + - securitycontextconstraints + verbs: + - use +- apiGroups: + - "" + resources: + - configmaps + verbs: + - watch + - list + - get + - create + - delete + - patch + - update +- apiGroups: + - "" + resources: + - pods + verbs: + - watch + - list + - get +- apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + - clusterrolebindings + - roles + - rolebindings + verbs: + - watch + - list + - get + - create + - delete + - patch + - update +- apiGroups: + - "" + resources: + - serviceaccounts + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - apiextensions.k8s.io + resources: + - customresourcedefinitions + verbs: + - get + - list + - create + - watch + - delete +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - nodes + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - secrets + verbs: + - get + - list + - watch + - create + - patch + - update +- apiGroups: + - "" + resources: + - namespaces + verbs: + - get + - list + - watch + - create + - patch + - delete + - update +- apiGroups: + - "" + resources: + - persistentvolumes + verbs: + - create + - delete + - list + - get + - watch + - update + - patch +- apiGroups: + - "" + resources: + - persistentvolumeclaims + verbs: + - get + - list + - watch + - update +- apiGroups: + - "" + resources: + - persistentvolumeclaims/status + verbs: + - patch + - update +- apiGroups: + - apps + resources: + - deployments + - daemonsets + - replicasets + - statefulsets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - storage.k8s.io + resources: + - volumeattachments + verbs: + - get + - list + - watch + - update + - delete + - create + - patch +- apiGroups: + - storage.k8s.io + resources: + - volumeattachments/status + verbs: + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotcontents/status + verbs: + - update + - patch +- apiGroups: + - storage.k8s.io + resources: + - storageclasses + - csinodes + verbs: + - create + - get + - list + - watch + - update + - delete +- apiGroups: + - '*' + resources: + - events + verbs: + - get + - patch + - create + - list + - watch + - update + - delete +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotclasses + verbs: + - get + - list + - watch + - create + - update + - delete +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshotcontents + verbs: + - create + - get + - list + - watch + - update + - delete + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshots + verbs: + - get + - list + - watch + - update + - patch +- apiGroups: + - snapshot.storage.k8s.io + resources: + - volumesnapshots/status + verbs: + - patch +- apiGroups: + - storage.k8s.io + resources: + - csidrivers + verbs: + - create + - get + - list + - watch + - update + - delete +- apiGroups: + - csi.openshift.io + resources: + - '*' + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - config.openshift.io + resources: + - infrastructures + - proxies + - apiservers + verbs: + - get + - list + - watch +- apiGroups: + - operator.openshift.io + resources: + - clustercsidrivers + - clustercsidrivers/status + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - authentication.k8s.io + resources: + - tokenreviews + verbs: + - create diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml new file mode 100644 index 000000000..a831d245a --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_role_openstack-cinder-csi-driver-operator-role.yaml @@ -0,0 +1,65 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: openstack-cinder-csi-driver-operator-role + namespace: ${CONTROLPLANE_NAMESPACE} +rules: +- apiGroups: + - "" + resources: + - pods + - services + - endpoints + - persistentvolumeclaims + - events + - configmaps + - secrets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - "" + resources: + - namespaces + verbs: + - get +- apiGroups: + - apps + resources: + - deployments + - daemonsets + - replicasets + - statefulsets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - policy + resources: + - poddisruptionbudgets + verbs: + - get + - list + - watch + - create + - update + - patch + - delete +- apiGroups: + - hypershift.openshift.io + resources: + - hostedcontrolplanes + verbs: + - watch + - list + - get diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml new file mode 100644 index 000000000..638697cfa --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/rbac.authorization.k8s.io_v1_rolebinding_openstack-cinder-csi-driver-operator-rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: openstack-cinder-csi-driver-operator-rolebinding + namespace: ${CONTROLPLANE_NAMESPACE} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: openstack-cinder-csi-driver-operator-role +subjects: +- kind: ServiceAccount + name: openstack-cinder-csi-driver-operator + namespace: ${CONTROLPLANE_NAMESPACE} diff --git a/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml new file mode 100644 index 000000000..2b34ce3ae --- /dev/null +++ b/assets/csidriveroperators/openstack-cinder/hypershift/mgmt/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +imagePullSecrets: +- name: pull-secret +kind: ServiceAccount +metadata: + name: openstack-cinder-csi-driver-operator + namespace: ${CONTROLPLANE_NAMESPACE} diff --git a/pkg/operator/csidriveroperator/csioperatorclient/cinder.go b/pkg/operator/csidriveroperator/csioperatorclient/cinder.go index ce7694d81..6e169e1b1 100644 --- a/pkg/operator/csidriveroperator/csioperatorclient/cinder.go +++ b/pkg/operator/csidriveroperator/csioperatorclient/cinder.go @@ -51,7 +51,7 @@ func GetOpenStackCinderCSIOperatorConfig(isHypershift bool) CSIOperatorConfig { "csidriveroperators/openstack-cinder/hypershift/mgmt/generated/v1_serviceaccount_openstack-cinder-csi-driver-operator.yaml", } csiDriverConfig.DeploymentAsset = "csidriveroperators/openstack-cinder/hypershift/mgmt/generated/apps_v1_deployment_openstack-cinder-csi-driver-operator.yaml" - csiDriverConfig.CRAsset = "csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_disk.csi.azure.com.yaml" + csiDriverConfig.CRAsset = "csidriveroperators/openstack-cinder/hypershift/guest/generated/operator.openshift.io_v1_clustercsidriver_cinder.csi.openstack.org.yaml" } return csiDriverConfig