diff --git a/charts/linkerd-easyauth/Chart.yaml b/charts/linkerd-easyauth/Chart.yaml index 5dffbc8..052367b 100644 --- a/charts/linkerd-easyauth/Chart.yaml +++ b/charts/linkerd-easyauth/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "0.13.5" description: A Helm chart for Linkerd easyauth extension name: linkerd-easyauth -version: "0.13.5" +version: "0.2.0" diff --git a/charts/linkerd-easyauth/templates/pdb.yml b/charts/linkerd-easyauth/templates/pdb.yml new file mode 100644 index 0000000..c5675d9 --- /dev/null +++ b/charts/linkerd-easyauth/templates/pdb.yml @@ -0,0 +1,28 @@ +{{- if .Values.pdb.enabled }} +apiVersion: policy/v1 +kind: PodDisruptionBudget +metadata: + name: easyauth + namespace: {{.Values.namespace}} + labels: + linkerd.io/extension: easyauth + component: easyauth-injector + {{- with .Values.pdb.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} + {{- with .Values.pdb.annotations }} + annotations: + {{- range $key, $value := . }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} +spec: + {{- with .Values.pdb.maxUnavailable }} + maxUnavailable: {{ . }} + {{- else }} + minAvailable: {{ .Values.pdb.minAvailable | default 0 }} + {{- end }} + selector: + matchLabels: + component: easyauth-injector +{{- end }} diff --git a/charts/linkerd-easyauth/values.yaml b/charts/linkerd-easyauth/values.yaml index c215601..750c441 100644 --- a/charts/linkerd-easyauth/values.yaml +++ b/charts/linkerd-easyauth/values.yaml @@ -61,3 +61,10 @@ policies: # low2: 0 # high2: 256 # octet3: 1 + +pdb: + enabled: true + labels: {} + annotations: {} + minAvailable: "1" + maxUnavailable: ""