-
Notifications
You must be signed in to change notification settings - Fork 78
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 #194 from wongma7/helmchart1.0
Helm chart 1.0
- Loading branch information
Showing
24 changed files
with
414 additions
and
323 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
release-name-template: "helm-chart-{{ .Name }}-{{ .Version }}" |
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,27 @@ | ||
name: Release Helm Charts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "charts/**" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.2.1 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
config: .github/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
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,14 @@ | ||
# Helm chart | ||
|
||
# v1.0.0 | ||
* Remove support for Helm 2 | ||
* Reorganize values to be more consistent with EFS and EBS helm charts | ||
* controllerService -> controller | ||
* nodeService -> node | ||
* Add node.serviceAccount | ||
* Add dnsPolicy and dnsConfig | ||
* Add imagePullSecrets | ||
* Add controller.tolerations, node.tolerations, and node.tolerateAllTaints | ||
* Remove extraArgs, securityContext, podSecurityContext | ||
* Bump sidecar images to support kubernetes >=1.20 | ||
* Require kubernetes >=1.17 |
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 was deleted.
Oops, something went wrong.
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
113 changes: 113 additions & 0 deletions
113
charts/aws-fsx-csi-driver/templates/controller-deployment.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: fsx-csi-controller | ||
labels: | ||
{{- include "aws-fsx-csi-driver.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.controller.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app: fsx-csi-controller | ||
{{- include "aws-fsx-csi-driver.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
app: fsx-csi-controller | ||
{{- include "aws-fsx-csi-driver.labels" . | nindent 8 }} | ||
spec: | ||
{{- if .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- range .Values.imagePullSecrets }} | ||
- name: {{ . }} | ||
{{- end }} | ||
{{- end }} | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
{{- with .Values.controller.nodeSelector }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
hostNetwork: true | ||
serviceAccountName: {{ .Values.controller.serviceAccount.name }} | ||
priorityClassName: system-cluster-critical | ||
tolerations: | ||
- key: CriticalAddonsOnly | ||
operator: Exists | ||
- operator: Exists | ||
effect: NoExecute | ||
tolerationSeconds: 300 | ||
{{- with .Values.controller.tolerations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: fsx-plugin | ||
image: {{ printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (toString .Values.image.tag)) }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
args: | ||
- --endpoint=$(CSI_ENDPOINT) | ||
env: | ||
- name: CSI_ENDPOINT | ||
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock | ||
- name: AWS_ACCESS_KEY_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: aws-secret | ||
key: key_id | ||
optional: true | ||
- name: AWS_SECRET_ACCESS_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: aws-secret | ||
key: access_key | ||
optional: true | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
ports: | ||
- name: healthz | ||
containerPort: 9910 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: healthz | ||
initialDelaySeconds: 10 | ||
timeoutSeconds: 3 | ||
periodSeconds: 2 | ||
failureThreshold: 5 | ||
{{- with .Values.controller.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
- name: csi-provisioner | ||
image: {{ printf "%s:%s" .Values.sidecars.provisioner.image.repository .Values.sidecars.provisioner.image.tag }} | ||
args: | ||
- --csi-address=$(ADDRESS) | ||
- --timeout=5m | ||
- --extra-create-metadata | ||
- --leader-election=true | ||
env: | ||
- name: ADDRESS | ||
value: /var/lib/csi/sockets/pluginproxy/csi.sock | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /var/lib/csi/sockets/pluginproxy/ | ||
{{- with default .Values.controller.resources .Values.sidecars.provisioner.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
- name: liveness-probe | ||
image: {{ printf "%s:%s" .Values.sidecars.livenessProbe.image.repository .Values.sidecars.livenessProbe.image.tag }} | ||
args: | ||
- --csi-address=/csi/csi.sock | ||
- --health-port=9910 | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
{{- with default .Values.controller.resources .Values.sidecars.livenessProbe.resources }} | ||
resources: | ||
{{- toYaml . | nindent 12 }} | ||
{{- end }} | ||
volumes: | ||
- name: socket-dir | ||
emptyDir: {} |
Oops, something went wrong.