Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #517 from mbrancato/add_explicit_namespace
Browse files Browse the repository at this point in the history
Add explicit namespace field to namespaced resources
  • Loading branch information
hiddeco authored Oct 9, 2020
2 parents 630065f + ea3c8e1 commit 90f4946
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions chart/helm-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "helm-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "helm-operator.name" . }}
chart: {{ template "helm-operator.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/git-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ template "helm-operator.fullname" . }}-git-deploy
namespace: {{ .Release.Namespace }}
type: Opaque
{{- end -}}
1 change: 1 addition & 0 deletions chart/helm-operator/templates/gitconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ include "git.config.secretName" . }}
namespace: {{ .Release.Namespace }}
type: Opaque
data:
gitconfig: {{ .Values.git.config.data | b64enc }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/helm-repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.configureRepositories.secretName }}
namespace: {{ .Release.Namespace }}
type: Opaque
data:
repositories.yaml: {{ include "helm-operator.customRepositories" . | b64enc }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/helm-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "helm-operator.fullname" . }}-helm-tls-ca-config
namespace: {{ .Release.Namespace }}
data:
ca.crt: |
{{ .Values.tls.caContent | indent 4 }}
Expand Down
3 changes: 2 additions & 1 deletion chart/helm-operator/templates/kube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "helm-operator.fullname" . }}-kube-config
namespace: {{ .Release.Namespace }}
data:
config: |
{{- if not .Values.clusterRole.create }}
Expand All @@ -25,4 +26,4 @@ data:
{{- else }}
{{ .Values.kube.config }}
{{- end }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions chart/helm-operator/templates/rbac-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
name: {{ template "helm-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "helm-operator.name" . }}
chart: {{ template "helm-operator.chart" . }}
Expand All @@ -20,6 +21,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: {{ template "helm-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "helm-operator.name" . }}
chart: {{ template "helm-operator.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "helm-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "helm-operator.name" . }}
chart: {{ template "helm-operator.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "helm-operator.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "helm-operator.name" . }}
chart: {{ template "helm-operator.chart" . }}
Expand Down
1 change: 1 addition & 0 deletions chart/helm-operator/templates/ssh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "helm-operator.fullname" . }}-ssh-config
namespace: {{ .Release.Namespace }}
data:
known_hosts: |
{{- if .Values.git.ssh.known_hosts }}
Expand Down

0 comments on commit 90f4946

Please sign in to comment.