-
Notifications
You must be signed in to change notification settings - Fork 68
Portworx: operator helm chart #481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cabrinha
wants to merge
7
commits into
portworx:master
Choose a base branch
from
cabrinha:portworx-chart
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6bb3449
Portworx: operator helm chart
px-kesavan e543ef5
Merge branch 'master' into portworx-chart
cabrinha 7156215
release.namespace
wormhole-wayne 517426e
nullish
wormhole-wayne 7057e1c
index
wormhole-wayne 712c003
Update charts/portworx/templates/deployment.yaml
cabrinha edd0b2d
Update charts/portworx/templates/deployment.yaml
cabrinha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,15 @@ | ||
| --- | ||
| kind: ClusterRole | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: portworx-operator | ||
| rules: | ||
| - apiGroups: ["*"] | ||
| resources: ["*"] | ||
| verbs: ["*"] | ||
| {{- if semverCompare "<1.25" (.Capabilities.KubeVersion.Version) }} | ||
| - apiGroups: ["policy"] | ||
| resources: ["podsecuritypolicies"] | ||
| resourceNames: ["px-operator"] | ||
| verbs: ["use"] | ||
| {{- end }} |
This file contains hidden or 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,13 @@ | ||
| --- | ||
| kind: ClusterRoleBinding | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: portworx-operator | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: portworx-operator | ||
| namespace: {{ .Release.Namespace }} | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: portworx-operator | ||
| apiGroup: rbac.authorization.k8s.io |
14 changes: 14 additions & 0 deletions
14
charts/portworx/templates/clustertoken-serviceaccount.yaml
This file contains hidden or 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,14 @@ | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| name: {{ .Values.clusterToken.serviceAccountName }} | ||
| annotations: | ||
| helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded,hook-failed | ||
| helm.sh/hook: post-install | ||
| labels: | ||
| heritage: {{ .Release.Service }} | ||
| release: {{ .Release.Name }} | ||
| app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
| app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
| chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
This file contains hidden or 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,48 @@ | ||
| --- | ||
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: portworx-operator | ||
| namespace: {{ .Release.Namespace }} | ||
| spec: | ||
| strategy: | ||
| rollingUpdate: | ||
| maxSurge: 1 | ||
| maxUnavailable: 1 | ||
| type: RollingUpdate | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| name: portworx-operator | ||
| template: | ||
| metadata: | ||
| labels: | ||
| name: portworx-operator | ||
| spec: | ||
| containers: | ||
| - name: portworx-operator | ||
| imagePullPolicy: Always | ||
| image: "{{ .Values.operator.image.repository }}:{{ default .Chart.AppVersion .Values.operator.image.tag }}" | ||
| command: | ||
| - /operator | ||
| - --verbose | ||
| - --driver=portworx | ||
| - --leader-elect=true | ||
| env: | ||
| - name: OPERATOR_NAME | ||
| value: portworx-operator | ||
| - name: POD_NAME | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.name | ||
| affinity: | ||
| podAntiAffinity: | ||
| requiredDuringSchedulingIgnoredDuringExecution: | ||
| - labelSelector: | ||
| matchExpressions: | ||
| - key: "name" | ||
| operator: In | ||
| values: | ||
| - portworx-operator | ||
| topologyKey: "kubernetes.io/hostname" | ||
| serviceAccountName: portworx-operator | ||
cabrinha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or 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,15 @@ | ||
| --- | ||
| kind: ClusterRole | ||
| apiVersion: {{ template "rbac.apiVersion" . }} | ||
| metadata: | ||
| annotations: | ||
| helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded | ||
| helm.sh/hook: post-install,pre-upgrade,pre-delete | ||
| name: {{ template "px.hookClusterRole" . }} | ||
| rules: | ||
| # for daemonset to operator migration, we need hooks for all resources deployed by daemonset, due to resources are | ||
| # different in different helm charts (GCP, IKS, Rancher and portworx), we use wild card here. After daemonset | ||
| # migration is finished for all customers we shall change this back to limited access. | ||
| - apiGroups: ["*"] | ||
| resources: ["*"] | ||
| verbs: ["*"] |
This file contains hidden or 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,16 @@ | ||
| --- | ||
| kind: ClusterRoleBinding | ||
| apiVersion: {{ template "rbac.apiVersion" . }} | ||
| metadata: | ||
| annotations: | ||
| helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded | ||
| helm.sh/hook: "post-install,pre-upgrade,pre-delete" | ||
| name: {{ template "px.hookClusterRoleBinding" . }} | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: {{ template "px.hookServiceAccount" . }} | ||
| namespace: {{ .Release.Namespace }} | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: {{ template "px.hookClusterRole" . }} | ||
| apiGroup: rbac.authorization.k8s.io |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.