From d0a1cfe37aaaadc384184db5e5c626c814cabb2f Mon Sep 17 00:00:00 2001 From: "nikolay.akulov" Date: Fri, 29 Nov 2024 13:45:15 +0100 Subject: [PATCH 1/2] Update repo build --- charts/linkerd-easyauth/Chart.yaml | 2 +- charts/linkerd-easyauth/templates/pdb.yml | 28 +++++++++++++++++++++++ charts/linkerd-easyauth/values.yaml | 7 ++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 charts/linkerd-easyauth/templates/pdb.yml 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..ff6561d --- /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 }} \ No newline at end of file diff --git a/charts/linkerd-easyauth/values.yaml b/charts/linkerd-easyauth/values.yaml index c215601..8525950 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: "" \ No newline at end of file From 8b18551717f72841cb7967e38fe05e7f6d192ace Mon Sep 17 00:00:00 2001 From: "nikolay.akulov" Date: Fri, 29 Nov 2024 14:05:55 +0100 Subject: [PATCH 2/2] Fix formatting in PDB and values.yaml files --- charts/linkerd-easyauth/templates/pdb.yml | 2 +- charts/linkerd-easyauth/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/linkerd-easyauth/templates/pdb.yml b/charts/linkerd-easyauth/templates/pdb.yml index ff6561d..c5675d9 100644 --- a/charts/linkerd-easyauth/templates/pdb.yml +++ b/charts/linkerd-easyauth/templates/pdb.yml @@ -25,4 +25,4 @@ spec: selector: matchLabels: component: easyauth-injector -{{- end }} \ No newline at end of file +{{- end }} diff --git a/charts/linkerd-easyauth/values.yaml b/charts/linkerd-easyauth/values.yaml index 8525950..750c441 100644 --- a/charts/linkerd-easyauth/values.yaml +++ b/charts/linkerd-easyauth/values.yaml @@ -67,4 +67,4 @@ pdb: labels: {} annotations: {} minAvailable: "1" - maxUnavailable: "" \ No newline at end of file + maxUnavailable: ""