Skip to content
Snippets Groups Projects
Commit d4a90246 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4939 Substituted .Release.Namesapce

parent 29be6997
No related branches found
No related tags found
No related merge requests found
Showing with 13 additions and 13 deletions
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
app.kubernetes.io/instance: administration app.kubernetes.io/instance: administration
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/namespace: {{ .Release.Namespace }} app.kubernetes.io/namespace: {{ include "app.namespace" . }}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }} helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
{{- end -}} {{- end -}}
{{- define "app.matchLabels" }} {{- define "app.matchLabels" }}
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/namespace: {{ .Release.Namespace }} app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end -}} {{- end -}}
{{- define "app.imagePullSecret" }} {{- define "app.imagePullSecret" }}
......
...@@ -23,7 +23,7 @@ apiVersion: v1 ...@@ -23,7 +23,7 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: administration-bindings-type name: administration-bindings-type
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
data: data:
type: | type: |
ca-certificates ca-certificates
\ No newline at end of file
...@@ -26,7 +26,7 @@ apiVersion: apps/v1 ...@@ -26,7 +26,7 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
labels: labels:
{{- include "app.defaultLabels" . | indent 4 }} {{- include "app.defaultLabels" . | indent 4 }}
spec: spec:
...@@ -36,7 +36,7 @@ spec: ...@@ -36,7 +36,7 @@ spec:
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ .Release.Name }} app.kubernetes.io/name: {{ .Release.Name }}
app.kubernetes.io/namespace: {{ .Release.Namespace }} app.kubernetes.io/namespace: {{ include "app.namespace" . }}
strategy: strategy:
rollingUpdate: rollingUpdate:
maxSurge: 1 maxSurge: 1
......
...@@ -37,7 +37,7 @@ metadata: ...@@ -37,7 +37,7 @@ metadata:
{{- end }} {{- end }}
nginx.ingress.kubernetes.io/proxy-body-size: 42m nginx.ingress.kubernetes.io/proxy-body-size: 42m
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
spec: spec:
{{- if and (.Values.ingress).className (ne (.Values).cluster_env "dataport") }} {{- if and (.Values.ingress).className (ne (.Values).cluster_env "dataport") }}
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
......
...@@ -5,7 +5,7 @@ apiVersion: operator.ozgcloud.de/v1 ...@@ -5,7 +5,7 @@ apiVersion: operator.ozgcloud.de/v1
kind: OzgCloudKeycloakUser kind: OzgCloudKeycloakUser
metadata: metadata:
name: {{ include "app.nameToIdentifier" $user.name }}-keycloak-user name: {{ include "app.nameToIdentifier" $user.name }}-keycloak-user
namespace: {{ $.Release.Namespace }} namespace: {{ include "app.namespace" $ }}
spec: spec:
keep_after_delete: {{ $.Values.sso.keep_after_delete | default false }} keep_after_delete: {{ $.Values.sso.keep_after_delete | default false }}
update_user: {{ $user.update_user | default false }} update_user: {{ $user.update_user | default false }}
......
...@@ -3,7 +3,7 @@ apiVersion: networking.k8s.io/v1 ...@@ -3,7 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: NetworkPolicy kind: NetworkPolicy
metadata: metadata:
name: network-policy-administration name: network-policy-administration
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
spec: spec:
podSelector: podSelector:
matchLabels: matchLabels:
......
...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 ...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: ozgcloud-keycloak-operator-secrets-read-role-administration name: ozgcloud-keycloak-operator-secrets-read-role-administration
namespace: {{ $.Release.Namespace }} namespace: {{ include "app.namespace" $ }}
rules: rules:
- apiGroups: - apiGroups:
- "*" - "*"
......
...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 ...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
metadata: metadata:
name: ozgcloud-keycloak-operator-secrets-read-role-binding-administration name: ozgcloud-keycloak-operator-secrets-read-role-binding-administration
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: ozgcloud-keycloak-operator-serviceaccount name: ozgcloud-keycloak-operator-serviceaccount
......
...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 ...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: ozgcloud-keycloak-operator-secrets-write-role-administration name: ozgcloud-keycloak-operator-secrets-write-role-administration
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
rules: rules:
- apiGroups: - apiGroups:
- "*" - "*"
......
...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1 ...@@ -4,7 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding kind: RoleBinding
metadata: metadata:
name: ozgcloud-keycloak-operator-secrets-write-role-binding-administration name: ozgcloud-keycloak-operator-secrets-write-role-binding-administration
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: ozgcloud-keycloak-operator-serviceaccount name: ozgcloud-keycloak-operator-serviceaccount
......
...@@ -25,7 +25,7 @@ apiVersion: v1 ...@@ -25,7 +25,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }} namespace: {{ include "app.namespace" . }}
labels: labels:
{{- include "app.defaultLabels" . | indent 4 }} {{- include "app.defaultLabels" . | indent 4 }}
component: administration-service component: administration-service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment