This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #674 from avalluri/operator-deploy
deploy: Move operator deployment files to ${REPO_ROOT}/deploy
- Loading branch information
Showing
8 changed files
with
180 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...csi.intel.com_v1alpha1_deployment_cr.yaml → ...csi.intel.com_v1alpha1_deployment_cr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Operator | ||
|
||
The common parts for a PMEM-CSI operator deployment. Additional layers | ||
could be added to customize the base operator deployment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- operator.yaml |
4 changes: 0 additions & 4 deletions
4
operator/deploy/operator.yaml → deploy/kustomize/operator/operator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: pmem-csi-operator | ||
namespace: default | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
creationTimestamp: null | ||
name: pmem-csi-operator | ||
namespace: default | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
- services | ||
- services/finalizers | ||
- serviceaccounts | ||
- endpoints | ||
- events | ||
- secrets | ||
- pods | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- daemonsets | ||
- statefulsets | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- apps | ||
resourceNames: | ||
- pmem-csi-operator | ||
resources: | ||
- deployments/finalizers | ||
verbs: | ||
- update | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: pmem-csi-operator | ||
rules: | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- clusterroles | ||
- clusterrolebindings | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- storage.k8s.io | ||
resources: | ||
- csidrivers | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- get | ||
- create | ||
- delete | ||
- apiGroups: | ||
- pmem-csi.intel.com | ||
resources: | ||
- deployments | ||
- deployments/status | ||
verbs: | ||
- '*' | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: pmem-csi-operator | ||
namespace: default | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: pmem-csi-operator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: pmem-csi-operator | ||
namespace: default | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: pmem-csi-operator | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: pmem-csi-operator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: pmem-csi-operator | ||
namespace: default | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pmem-csi-operator | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
name: pmem-csi-operator | ||
template: | ||
metadata: | ||
labels: | ||
app: pmem-csi-operator | ||
name: pmem-csi-operator | ||
pmem-csi.intel.com/webhook: ignore | ||
spec: | ||
containers: | ||
- command: | ||
- /usr/local/bin/pmem-csi-operator | ||
env: | ||
- name: WATCH_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: OPERATOR_NAME | ||
value: pmem-csi-operator | ||
image: intel/pmem-csi-driver:canary | ||
imagePullPolicy: IfNotPresent | ||
name: pmem-csi-operator | ||
securityContext: | ||
readOnlyRootFilesystem: true | ||
volumeMounts: | ||
- mountPath: /tmp | ||
name: tmp | ||
serviceAccountName: pmem-csi-operator | ||
volumes: | ||
- emptyDir: {} | ||
name: tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters