diff --git a/charts/postgrest/Chart.yaml b/charts/postgrest/Chart.yaml index 23f206e..f3accc2 100644 --- a/charts/postgrest/Chart.yaml +++ b/charts/postgrest/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: postgrest description: A Helm chart for deploying Postgrest to Kubernetes type: application -version: 0.3.0 +version: 0.3.1 appVersion: v8.0.0 icon: https://avatars.githubusercontent.com/u/15115011?s=200&v=4 maintainers: diff --git a/charts/postgrest/NEWS.md b/charts/postgrest/NEWS.md index a683858..502642b 100644 --- a/charts/postgrest/NEWS.md +++ b/charts/postgrest/NEWS.md @@ -1,3 +1,7 @@ +# 0.3.1 + +- Add `extraObjects` value for deploying other kubernetes objects. + # 0.3.0 - Fix issue with `strategy` being defined at the wrong scope ([#28](https://github.com/colearendt/helm/issues/28)) diff --git a/charts/postgrest/README.md b/charts/postgrest/README.md index e33e66e..0951cbc 100644 --- a/charts/postgrest/README.md +++ b/charts/postgrest/README.md @@ -1,14 +1,14 @@ # postgrest -![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v8.0.0](https://img.shields.io/badge/AppVersion-v8.0.0-informational?style=flat-square) +![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v8.0.0](https://img.shields.io/badge/AppVersion-v8.0.0-informational?style=flat-square) ## Installing the Chart -To install the chart with the release name `my-release` at version 0.3.0: +To install the chart with the release name `my-release` at version 0.3.1: ```bash helm repo add colearendt https://colearendt.github.io/helm -helm install my-release colearendt/postgrest --version=0.3.0 +helm install my-release colearendt/postgrest --version=0.3.1 ``` #### _A Helm chart for deploying Postgrest to Kubernetes_ @@ -24,6 +24,7 @@ helm install my-release colearendt/postgrest --version=0.3.0 | autoscaling.minReplicas | int | `1` | | | autoscaling.targetCPUUtilizationPercentage | int | `80` | | | command | list | `[]` | | +| extraObjects | list | `[]` | Extra kubernetes objects to deploy (value evaluted as a template) | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"postgrest/postgrest"` | | diff --git a/charts/postgrest/ci/complex-values.yaml b/charts/postgrest/ci/complex-values.yaml new file mode 100644 index 0000000..99123b6 --- /dev/null +++ b/charts/postgrest/ci/complex-values.yaml @@ -0,0 +1,14 @@ +extraObjects: + - apiVersion: v1 + kind: ConfigMap + metadata: + name: "test" + data: + something: fun + - | + apiVersion: v1 + kind: ConfigMap + metadata: + name: "test2" + data: + something: {{ printf "fun2" }} diff --git a/charts/postgrest/templates/_helpers.tpl b/charts/postgrest/templates/_helpers.tpl index 8d53e1b..3c07eab 100644 --- a/charts/postgrest/templates/_helpers.tpl +++ b/charts/postgrest/templates/_helpers.tpl @@ -61,3 +61,17 @@ Create the name of the service account to use {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} + +{{/* thanks to https://github.com/bitnami/charts/blob/master/bitnami/common/templates/_tplvalues.tpl */}} +{{/* +Renders a value that contains template. +Usage: +{{ include "postgrest.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }} +*/}} +{{- define "postgrest.tplvalues.render" -}} + {{- if typeIs "string" .value }} + {{- tpl .value .context }} + {{- else }} + {{- tpl (.value | toYaml) .context }} + {{- end }} +{{- end -}} diff --git a/charts/postgrest/templates/extra-objects.yaml b/charts/postgrest/templates/extra-objects.yaml new file mode 100644 index 0000000..ecda8ed --- /dev/null +++ b/charts/postgrest/templates/extra-objects.yaml @@ -0,0 +1,4 @@ +{{- range .Values.extraObjects }} +--- +{{ include "postgrest.tplvalues.render" (dict "value" . "context" $) }} +{{- end }} diff --git a/charts/postgrest/values.yaml b/charts/postgrest/values.yaml index 901abb0..925588d 100644 --- a/charts/postgrest/values.yaml +++ b/charts/postgrest/values.yaml @@ -12,6 +12,9 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: "" +# -- Extra kubernetes objects to deploy (value evaluted as a template) +extraObjects: [] + imagePullSecrets: [] nameOverride: "" diff --git a/charts/traefik-forward-auth/Chart.yaml b/charts/traefik-forward-auth/Chart.yaml index dfe92ae..d4f0a86 100644 --- a/charts/traefik-forward-auth/Chart.yaml +++ b/charts/traefik-forward-auth/Chart.yaml @@ -1,6 +1,6 @@ name: traefik-forward-auth description: Deploy traefik-forward-auth -version: 0.0.6 +version: 0.0.7 apiVersion: v1 sources: - https://github.com/thomseddon/traefik-forward-auth diff --git a/charts/traefik-forward-auth/NEWS.md b/charts/traefik-forward-auth/NEWS.md index 366d4cf..df55c44 100644 --- a/charts/traefik-forward-auth/NEWS.md +++ b/charts/traefik-forward-auth/NEWS.md @@ -1,3 +1,7 @@ +# 0.0.7 + +- Add `extraObjects` value for deploying other kubernetes objects. + # 0.0.6 - Update maintainer diff --git a/charts/traefik-forward-auth/README.md b/charts/traefik-forward-auth/README.md index 477d0bd..3c290a2 100644 --- a/charts/traefik-forward-auth/README.md +++ b/charts/traefik-forward-auth/README.md @@ -1,14 +1,14 @@ # traefik-forward-auth -![Version: 0.0.6](https://img.shields.io/badge/Version-0.0.6-informational?style=flat-square) +![Version: 0.0.7](https://img.shields.io/badge/Version-0.0.7-informational?style=flat-square) ## Installing the Chart -To install the chart with the release name `my-release` at version 0.0.6: +To install the chart with the release name `my-release` at version 0.0.7: ```bash helm repo add colearendt https://colearendt.github.io/helm -helm install my-release colearendt/traefik-forward-auth --version=0.0.6 +helm install my-release colearendt/traefik-forward-auth --version=0.0.7 ``` #### _Deploy traefik-forward-auth_ @@ -22,6 +22,7 @@ helm install my-release colearendt/traefik-forward-auth --version=0.0.6 | config.default-provider | string | `"oidc"` | | | config.insecure-cookie | bool | `false` | | | config.log-level | string | `"warn"` | | +| extraObjects | list | `[]` | Extra kubernetes objects to deploy (value evaluted as a template) | | image.pullPolicy | string | `"IfNotPresent"` | | | image.repository | string | `"thomseddon/traefik-forward-auth"` | | | image.tag | int | `2` | | diff --git a/charts/traefik-forward-auth/ci/all-values.yaml b/charts/traefik-forward-auth/ci/all-values.yaml index 5c87f1f..ed220ff 100644 --- a/charts/traefik-forward-auth/ci/all-values.yaml +++ b/charts/traefik-forward-auth/ci/all-values.yaml @@ -30,3 +30,18 @@ resources: {} livenessProbe: {} startupProbe: {} readinessProbe: {} + +extraObjects: + - apiVersion: v1 + kind: ConfigMap + metadata: + name: "test" + data: + something: fun + - | + apiVersion: v1 + kind: ConfigMap + metadata: + name: "test2" + data: + something: {{ printf "fun2" }} diff --git a/charts/traefik-forward-auth/templates/_helpers.tpl b/charts/traefik-forward-auth/templates/_helpers.tpl index fec7893..6ebe9fe 100644 --- a/charts/traefik-forward-auth/templates/_helpers.tpl +++ b/charts/traefik-forward-auth/templates/_helpers.tpl @@ -9,3 +9,17 @@ {{ $key }}: {{ $value | quote }} {{ end }} {{- end -}} + +{{/* thanks to https://github.com/bitnami/charts/blob/master/bitnami/common/templates/_tplvalues.tpl */}} +{{/* +Renders a value that contains template. +Usage: +{{ include "traefik-forward-auth.tplvalues.render" ( dict "value" .Values.path.to.the.Value "context" $) }} +*/}} +{{- define "traefik-forward-auth.tplvalues.render" -}} + {{- if typeIs "string" .value }} + {{- tpl .value .context }} + {{- else }} + {{- tpl (.value | toYaml) .context }} + {{- end }} +{{- end -}} diff --git a/charts/traefik-forward-auth/templates/extra-objects.yaml b/charts/traefik-forward-auth/templates/extra-objects.yaml new file mode 100644 index 0000000..226bf88 --- /dev/null +++ b/charts/traefik-forward-auth/templates/extra-objects.yaml @@ -0,0 +1,4 @@ +{{- range .Values.extraObjects }} +--- +{{ include "traefik-forward-auth.tplvalues.render" (dict "value" . "context" $) }} +{{- end }} diff --git a/charts/traefik-forward-auth/values.yaml b/charts/traefik-forward-auth/values.yaml index e925782..d556ac3 100644 --- a/charts/traefik-forward-auth/values.yaml +++ b/charts/traefik-forward-auth/values.yaml @@ -13,6 +13,9 @@ image: tag: 2 pullPolicy: IfNotPresent +# -- Extra kubernetes objects to deploy (value evaluted as a template) +extraObjects: [] + pod: env: {} command: