diff --git a/charts/tidepool/Chart.lock b/charts/tidepool/Chart.lock index b87146c41..cd01d0651 100644 --- a/charts/tidepool/Chart.lock +++ b/charts/tidepool/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: keycloak repository: file://../keycloak - version: 0.4.2 -digest: sha256:bea169e688dc10efdcf259b8c30ee2f90e0ca6e519464bd957f9e1be0a5b8564 -generated: "2024-06-25T11:24:28.447782+03:00" + version: 0.4.3 +digest: sha256:9e8e11d23104da89789675b1676fe7299309fb7eeae7a22c0a2ba6ab169c3fa2 +generated: "2024-11-22T13:46:17.203655+02:00" diff --git a/charts/tidepool/charts/auth/templates/6-pdb.yaml b/charts/tidepool/charts/auth/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/auth/templates/6-pdb.yaml +++ b/charts/tidepool/charts/auth/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/blip/templates/6-pdb.yaml b/charts/tidepool/charts/blip/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/blip/templates/6-pdb.yaml +++ b/charts/tidepool/charts/blip/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/blob/templates/6-pdb.yaml b/charts/tidepool/charts/blob/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/blob/templates/6-pdb.yaml +++ b/charts/tidepool/charts/blob/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/clinic-worker/templates/6-pdb.yaml b/charts/tidepool/charts/clinic-worker/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/clinic-worker/templates/6-pdb.yaml +++ b/charts/tidepool/charts/clinic-worker/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/clinic/templates/6-pdb.yaml b/charts/tidepool/charts/clinic/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/clinic/templates/6-pdb.yaml +++ b/charts/tidepool/charts/clinic/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/data/templates/6-pdb.yaml b/charts/tidepool/charts/data/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/data/templates/6-pdb.yaml +++ b/charts/tidepool/charts/data/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/devices/templates/6-pdb.yaml b/charts/tidepool/charts/devices/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/devices/templates/6-pdb.yaml +++ b/charts/tidepool/charts/devices/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/export/templates/6-pdb.yaml b/charts/tidepool/charts/export/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/export/templates/6-pdb.yaml +++ b/charts/tidepool/charts/export/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/gatekeeper/templates/6-pdb.yaml b/charts/tidepool/charts/gatekeeper/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/gatekeeper/templates/6-pdb.yaml +++ b/charts/tidepool/charts/gatekeeper/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/highwater/templates/6-pdb.yaml b/charts/tidepool/charts/highwater/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/highwater/templates/6-pdb.yaml +++ b/charts/tidepool/charts/highwater/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/hydrophone/templates/6-pdb.yaml b/charts/tidepool/charts/hydrophone/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/hydrophone/templates/6-pdb.yaml +++ b/charts/tidepool/charts/hydrophone/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/jellyfish/templates/6-pdb.yaml b/charts/tidepool/charts/jellyfish/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/jellyfish/templates/6-pdb.yaml +++ b/charts/tidepool/charts/jellyfish/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/mailer/templates/6-pdb.yaml b/charts/tidepool/charts/mailer/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/mailer/templates/6-pdb.yaml +++ b/charts/tidepool/charts/mailer/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/messageapi/templates/6-pdb.yaml b/charts/tidepool/charts/messageapi/templates/6-pdb.yaml index a07d46dd3..154d7f8c1 100644 --- a/charts/tidepool/charts/messageapi/templates/6-pdb.yaml +++ b/charts/tidepool/charts/messageapi/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/prescription/templates/6-pdb.yaml b/charts/tidepool/charts/prescription/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/prescription/templates/6-pdb.yaml +++ b/charts/tidepool/charts/prescription/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/seagull/templates/6-pdb.yaml b/charts/tidepool/charts/seagull/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/seagull/templates/6-pdb.yaml +++ b/charts/tidepool/charts/seagull/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/shoreline/templates/6-pdb.yaml b/charts/tidepool/charts/shoreline/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/shoreline/templates/6-pdb.yaml +++ b/charts/tidepool/charts/shoreline/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/summary/Chart.yaml b/charts/tidepool/charts/summary/Chart.yaml deleted file mode 100644 index 3a1119dc8..000000000 --- a/charts/tidepool/charts/summary/Chart.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: A Helm chart for Kubernetes -name: summary -version: 0.1.0 diff --git a/charts/tidepool/charts/summary/README.md b/charts/tidepool/charts/summary/README.md deleted file mode 100644 index a76e3dcd7..000000000 --- a/charts/tidepool/charts/summary/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# summary - -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: 1.0](https://img.shields.io/badge/AppVersion-1.0-informational?style=flat-square) - -A Helm chart for Kubernetes - -## Values - -| Key | Type | Default | Description | -|-----|------|---------|-------------| -| affinity | object | `{}` | affinity | -| deployment.image | string | `"tidepool/summary:master-latest"` | Docker image | -| deployment.podAnnotations | object | `{}` | | -| deployment.replicas | int | `1` | number of replicas | -| enabled | bool | `false` | whether to enable service | -| hpa.enabled | bool | `false` | whether to create a horizontal pod autoscalers for all pods of given deployment | -| hpa.maxReplicas | string | `nil` | maximum number of replicas that HPA will maintain | -| hpa.minReplicas | int | `1` | minimum number of replicas that HPA will maintain | -| mongo.secretName | string | `"mongo"` | name of the secret containing the credentials of the mongo database to use | -| nodeSelector | object | `{}` | node selector configuration | -| pdb.enabled | bool | `false` | whether to apply a pod disruption budget | -| pdb.minAvailable | string | `"50%"` | | -| podAnnotations | object | `{}` | annotations for each pod in deployment | -| podSecurityContext | object | `{}` | security context for each pod in deployment | -| resources | object | `{}` | memory and cpu resources for pods | -| secret.data_.ServiceAuth | string | `""` | service authentication secret | -| secret.enabled | bool | `false` | whether to generate secret | -| securityContext | object | `{}` | | -| tolerations | list | `[]` | tolerations | - ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.3.0](https://github.com/norwoodj/helm-docs/releases/v1.3.0) diff --git a/charts/tidepool/charts/summary/templates/0-secret.yaml b/charts/tidepool/charts/summary/templates/0-secret.yaml deleted file mode 100644 index 6c46cb3b1..000000000 --- a/charts/tidepool/charts/summary/templates/0-secret.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{ if .Values.enabled }} -{{ if or .Values.secret.enabled .Values.global.secret.generated -}} ---- -apiVersion: v1 -data: - ServiceAuth: {{ .Values.secret.data_.ServiceAuth | default (randAlphaNum 40) | b64enc | quote }} -kind: Secret -metadata: - name: summary - namespace: {{ .Release.Namespace }} - labels: - app: summary -type: Opaque -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/tidepool/charts/summary/templates/1-deployment.yaml b/charts/tidepool/charts/summary/templates/1-deployment.yaml deleted file mode 100644 index 3eeb6b1ee..000000000 --- a/charts/tidepool/charts/summary/templates/1-deployment.yaml +++ /dev/null @@ -1,66 +0,0 @@ -{{ if .Values.enabled }} ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app: summary -{{ include "charts.labels.standard" .}} - name: summary - namespace: {{.Release.Namespace}} - annotations: - secret.reloader.stakater.com/reload: "server,{{ .Values.mongo.secretName }},summary" -spec: - selector: - matchLabels: - app: summary - app.kubernetes.io/name: {{ include "charts.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} - replicas: {{ .Values.deployment.replicas | default 0 }} - strategy: {} - template: - metadata: - labels: - app: summary - app.kubernetes.io/name: {{ include "charts.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} -{{ if .Values.podAnnotations }} - annotations: - {{- .Values.podAnnotations | toYaml | nindent 8 }} -{{- end }} - spec: - containers: - - env: - {{ include "charts.mongo.params" .}} - {{ include "charts.platform.env.misc" .}} - {{ include "charts.platform.env.clients" .}} - - name: TIDEPOOL_STORE_DATABASE - value: {{ .Values.mongo.database }} - - name: TIDEPOOL_SUMMARY_SERVICE_DOMAIN - value: {{ .Values.global.gateway.default.domain }} - - name: TIDEPOOL_SUMMARY_SERVICE_SERVER_ADDRESS - value: :{{.Values.global.ports.summary}} - image: "{{ .Values.deployment.image }}" - {{ template "charts.platform.probes" .Values.global.ports.summary}} - name: summary - ports: - - containerPort: {{.Values.global.ports.summary}} - name: "http" - resources: - {{- toYaml .Values.resources | nindent 10 }} - securityContext: - {{- toYaml .Values.securityContext | nindent 8 }} - restartPolicy: Always - {{- with .Values.nodeSelector }} - nodeSelector: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: -{{ toYaml . | indent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: -{{ toYaml . | indent 8 }} - {{- end }} -{{- end }} diff --git a/charts/tidepool/charts/summary/templates/2-service.yaml b/charts/tidepool/charts/summary/templates/2-service.yaml deleted file mode 100644 index df14448b8..000000000 --- a/charts/tidepool/charts/summary/templates/2-service.yaml +++ /dev/null @@ -1,22 +0,0 @@ -{{ if .Values.enabled }} ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app: summary -{{ include "charts.labels.standard" .}} - name: summary - namespace: {{.Release.Namespace}} -spec: - ports: - - name: "http" - port: {{ .Values.global.ports.summary }} - targetPort: "http" - selector: - app: summary - app.kubernetes.io/name: {{ include "charts.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} -status: - loadBalancer: {} -{{- end }} \ No newline at end of file diff --git a/charts/tidepool/charts/summary/templates/3-upstream.yaml b/charts/tidepool/charts/summary/templates/3-upstream.yaml deleted file mode 100644 index a608e7345..000000000 --- a/charts/tidepool/charts/summary/templates/3-upstream.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{ if .Values.enabled }} -{{ if .Values.global.glooingress.enabled }} -apiVersion: gloo.solo.io/v1 -kind: Upstream -metadata: - name: summary - namespace: {{ .Release.Namespace }} -spec: - kube: - serviceName: summary - serviceNamespace: {{ .Release.Namespace }} - servicePort: {{ .Values.global.ports.summary }} -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/tidepool/charts/summary/templates/4-routetable.yaml b/charts/tidepool/charts/summary/templates/4-routetable.yaml deleted file mode 100644 index fa11cafa5..000000000 --- a/charts/tidepool/charts/summary/templates/4-routetable.yaml +++ /dev/null @@ -1,47 +0,0 @@ -{{ if .Values.enabled }} -{{ if .Values.global.glooingress.enabled }} -apiVersion: gateway.solo.io/v1 -kind: RouteTable -metadata: - name: summary - namespace: {{ .Release.Namespace }} - labels: - namespace: {{ .Release.Namespace }} - app: tidepool -spec: - routes: - - matchers: - - methods: - - POST - regex: /v1/users/[^/]+/summary - routeAction: - single: - upstream: - name: summary - options: - extauth: - disable: true - - matchers: - - methods: - - POST - regex: /v1/users/[^/]+/summaries - routeAction: - single: - upstream: - name: summary - options: - extauth: - disable: true - - matchers: - - methods: - - POST - regex: /v1/clinics/[^/]+/summaries - routeAction: - single: - upstream: - name: summary - options: - extauth: - disable: true -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/tidepool/charts/summary/templates/5-hpa.yaml b/charts/tidepool/charts/summary/templates/5-hpa.yaml deleted file mode 100644 index dc57a1392..000000000 --- a/charts/tidepool/charts/summary/templates/5-hpa.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{ if .Values.enabled }} -{{ if .Values.hpa.enabled -}} ---- -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - annotations: - name: summary - namespace: {{ .Release.Namespace }} - labels: -{{ include "charts.labels.standard" .}} -spec: - maxReplicas: {{ .Values.hpa.maxReplicas | default 10 }} - minReplicas: {{ .Values.hpa.minReplicas | default 1 }} - scaleTargetRef: - apiVersion: extensions/v1beta1 - kind: Deployment - name: summary - targetCPUUtilizationPercentage: {{ .Values.hpa.targetCPUUtilizationPercentage | default 50 }} -{{- end }} -{{- end }} diff --git a/charts/tidepool/charts/summary/templates/6-pdb.yaml b/charts/tidepool/charts/summary/templates/6-pdb.yaml deleted file mode 100644 index 8b1b2150e..000000000 --- a/charts/tidepool/charts/summary/templates/6-pdb.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{ if .Values.enabled }} -{{ if .Values.pdb.enabled }} -{{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} ---- -apiVersion: policy/v1beta1 -kind: PodDisruptionBudget -metadata: - name: {{ include "charts.name" . }} - namespace: {{ .Release.Namespace }} -spec: - minAvailable: {{ .Values.pdb.minAvailable }} - selector: - matchLabels: - app: {{ include "charts.name" . }} - app.kubernetes.io/name: {{ include "charts.name" . }} - app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/tidepool/charts/summary/values.yaml b/charts/tidepool/charts/summary/values.yaml deleted file mode 100644 index 2ff968bf2..000000000 --- a/charts/tidepool/charts/summary/values.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# -- whether to enable service -enabled: false -secret: - # -- whether to generate secret - enabled: false - data_: - # -- service authentication secret - ServiceAuth: "" -deployment: - # -- Docker image - image: tidepool/summary:master-latest - # -- number of replicas - replicas: 1 - podAnnotations: {} -# -- memory and cpu resources for pods -resources: {} -# -- security context for each pod in deployment -podSecurityContext: {} -# -- annotations for each pod in deployment -podAnnotations: {} -securityContext: {} -hpa: - # -- whether to create a horizontal pod autoscalers for all pods of given deployment - enabled: false - # -- minimum number of replicas that HPA will maintain - minReplicas: 1 - # -- maximum number of replicas that HPA will maintain - maxReplicas: null -pdb: - # -- whether to apply a pod disruption budget - enabled: false - minAvailable: "50%" -mongo: - # -- name of the secret containing the credentials of the mongo database to use - secretName: mongo - # -- Mongo database to use - database: data -# -- node selector configuration -nodeSelector: {} -# -- tolerations -tolerations: [] -# -- affinity -affinity: {} diff --git a/charts/tidepool/charts/task/templates/6-pdb.yaml b/charts/tidepool/charts/task/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/task/templates/6-pdb.yaml +++ b/charts/tidepool/charts/task/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/tidewhisperer/templates/6-pdb.yaml b/charts/tidepool/charts/tidewhisperer/templates/6-pdb.yaml index d02407153..2b2c67cec 100644 --- a/charts/tidepool/charts/tidewhisperer/templates/6-pdb.yaml +++ b/charts/tidepool/charts/tidewhisperer/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/tools/templates/6-pdb.yaml b/charts/tidepool/charts/tools/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/tools/templates/6-pdb.yaml +++ b/charts/tidepool/charts/tools/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }} diff --git a/charts/tidepool/charts/uploader/templates/6-pdb.yaml b/charts/tidepool/charts/uploader/templates/6-pdb.yaml index 69eae22ed..49b50dd50 100644 --- a/charts/tidepool/charts/uploader/templates/6-pdb.yaml +++ b/charts/tidepool/charts/uploader/templates/6-pdb.yaml @@ -1,7 +1,7 @@ {{ if .Values.pdb.enabled }} {{- if or (and .Values.hpa.enabled (gt (.Values.hpa.minReplicas | int) 1)) (gt (.Values.deployment.replicas | int) 1) -}} --- -apiVersion: policy/v1beta1 +apiVersion: policy/v1 kind: PodDisruptionBudget metadata: name: {{ include "charts.name" . }}