From 119cae7c16c1d2603af7e1fcb2f1044347cd2568 Mon Sep 17 00:00:00 2001 From: Mathias Petermann Date: Thu, 5 Sep 2024 17:32:12 +0200 Subject: [PATCH] feat: Add release namespace to all resources Signed-off-by: Mathias Petermann --- charts/dex/Chart.yaml | 4 ++-- charts/dex/README.md | 2 +- charts/dex/templates/deployment.yaml | 1 + charts/dex/templates/hpa.yaml | 1 + charts/dex/templates/ingress.yaml | 1 + charts/dex/templates/networkpolicy.yaml | 1 + charts/dex/templates/poddisruptionbudget.yaml | 1 + charts/dex/templates/rbac.yaml | 2 ++ charts/dex/templates/secret.yaml | 1 + charts/dex/templates/service.yaml | 1 + charts/dex/templates/serviceaccount.yaml | 1 + 11 files changed, 13 insertions(+), 3 deletions(-) diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index 60a273ff..36f0ced3 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: dex -version: 0.19.1 +version: 0.19.2 appVersion: "2.41.1" kubeVersion: ">=1.14.0-0" description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -22,7 +22,7 @@ maintainers: annotations: artifacthub.io/changes: | - kind: changed - description: "Dex 2.41.1 release" + description: "Add release namespace to all resources" artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.41.1 diff --git a/charts/dex/README.md b/charts/dex/README.md index c66e257d..117c1c7b 100644 --- a/charts/dex/README.md +++ b/charts/dex/README.md @@ -1,6 +1,6 @@ # dex -![version: 0.19.1](https://img.shields.io/badge/version-0.19.1-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.41.1](https://img.shields.io/badge/app%20version-2.41.1-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) +![version: 0.19.2](https://img.shields.io/badge/version-0.19.2-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.41.1](https://img.shields.io/badge/app%20version-2.41.1-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. diff --git a/charts/dex/templates/deployment.yaml b/charts/dex/templates/deployment.yaml index 247dd39f..76ca38aa 100644 --- a/charts/dex/templates/deployment.yaml +++ b/charts/dex/templates/deployment.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} {{ with .Values.deploymentLabels }} diff --git a/charts/dex/templates/hpa.yaml b/charts/dex/templates/hpa.yaml index 166faea9..9b911b74 100644 --- a/charts/dex/templates/hpa.yaml +++ b/charts/dex/templates/hpa.yaml @@ -7,6 +7,7 @@ apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} spec: diff --git a/charts/dex/templates/ingress.yaml b/charts/dex/templates/ingress.yaml index 0b881d04..59824015 100644 --- a/charts/dex/templates/ingress.yaml +++ b/charts/dex/templates/ingress.yaml @@ -16,6 +16,7 @@ apiVersion: extensions/v1beta1 kind: Ingress metadata: name: {{ $fullName }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} {{- with .Values.ingress.annotations }} diff --git a/charts/dex/templates/networkpolicy.yaml b/charts/dex/templates/networkpolicy.yaml index acd51b9d..8d66849f 100644 --- a/charts/dex/templates/networkpolicy.yaml +++ b/charts/dex/templates/networkpolicy.yaml @@ -7,6 +7,7 @@ apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} spec: diff --git a/charts/dex/templates/poddisruptionbudget.yaml b/charts/dex/templates/poddisruptionbudget.yaml index 6ec1032a..2ff4afed 100644 --- a/charts/dex/templates/poddisruptionbudget.yaml +++ b/charts/dex/templates/poddisruptionbudget.yaml @@ -7,6 +7,7 @@ apiVersion: policy/v1beta1 kind: PodDisruptionBudget metadata: name: {{ template "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{ include "dex.labels" . | indent 4 }} spec: diff --git a/charts/dex/templates/rbac.yaml b/charts/dex/templates/rbac.yaml index 333f2f10..1d9929b7 100644 --- a/charts/dex/templates/rbac.yaml +++ b/charts/dex/templates/rbac.yaml @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} rules: @@ -14,6 +15,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} roleRef: diff --git a/charts/dex/templates/secret.yaml b/charts/dex/templates/secret.yaml index 27d39546..64cd9f2c 100644 --- a/charts/dex/templates/secret.yaml +++ b/charts/dex/templates/secret.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Secret metadata: name: {{ include "dex.configSecretName" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} type: Opaque diff --git a/charts/dex/templates/service.yaml b/charts/dex/templates/service.yaml index 8114e8d5..45724958 100644 --- a/charts/dex/templates/service.yaml +++ b/charts/dex/templates/service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: {{ include "dex.fullname" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} {{- with .Values.service.annotations }} diff --git a/charts/dex/templates/serviceaccount.yaml b/charts/dex/templates/serviceaccount.yaml index 30c3ddd9..1d6872dd 100644 --- a/charts/dex/templates/serviceaccount.yaml +++ b/charts/dex/templates/serviceaccount.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "dex.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} labels: {{- include "dex.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }}