add namespace: {{ .Release.Namespace | quote }} to each namespaced resource (#13285)

This commit is contained in:
Mitchell Maler 2021-09-23 14:56:08 -05:00 committed by GitHub
parent 1984d0671b
commit cdd0828c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
description: Multi-Cloud Object Storage description: Multi-Cloud Object Storage
name: minio name: minio
version: 3.1.5 version: 3.1.6
appVersion: RELEASE.2021-09-18T18-09-59Z appVersion: RELEASE.2021-09-18T18-09-59Z
keywords: keywords:
- minio - minio

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -6,6 +6,7 @@ apiVersion: {{ template "minio.consoleIngress.apiVersion" . }}
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -6,6 +6,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ template "minio.fullname" . }}-console name: {{ template "minio.fullname" . }}-console
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -8,6 +8,7 @@ apiVersion: {{ template "minio.deployment.apiVersion" . }}
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -8,6 +8,7 @@ apiVersion: {{ template "minio.deployment.apiVersion" . }}
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -6,6 +6,7 @@ apiVersion: {{ template "minio.ingress.apiVersion" . }}
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -3,6 +3,7 @@ kind: NetworkPolicy
apiVersion: {{ template "minio.networkPolicy.apiVersion" . }} apiVersion: {{ template "minio.networkPolicy.apiVersion" . }}
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -3,6 +3,7 @@ apiVersion: policy/v1beta1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
name: minio name: minio
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
spec: spec:

View File

@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: {{ template "minio.fullname" . }}-make-bucket-job name: {{ template "minio.fullname" . }}-make-bucket-job
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }}-make-bucket-job app: {{ template "minio.name" . }}-make-bucket-job
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -3,6 +3,7 @@ apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: {{ template "minio.fullname" . }}-make-user-job name: {{ template "minio.fullname" . }}-make-user-job
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }}-make-user-job app: {{ template "minio.name" . }}-make-user-job
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -4,6 +4,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: {{ template "minio.secretName" . }} name: {{ template "minio.secretName" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -6,6 +6,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}

View File

@ -5,6 +5,8 @@ metadata:
name: {{ template "minio.fullname" . }} name: {{ template "minio.fullname" . }}
{{- if .Values.metrics.serviceMonitor.namespace }} {{- if .Values.metrics.serviceMonitor.namespace }}
namespace: {{ .Values.metrics.serviceMonitor.namespace }} namespace: {{ .Values.metrics.serviceMonitor.namespace }}
{{ else }}
namespace: {{ .Release.Namespace | quote }}
{{- end }} {{- end }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}

View File

@ -17,6 +17,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ template "minio.fullname" . }}-svc name: {{ template "minio.fullname" . }}-svc
namespace: {{ .Release.Namespace | quote }}
labels: labels:
app: {{ template "minio.name" . }} app: {{ template "minio.name" . }}
chart: {{ template "minio.chart" . }} chart: {{ template "minio.chart" . }}