Skip to content

Commit

Permalink
Add namespace declaration to manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Khizhnyak committed Jan 9, 2025
1 parent a0c823b commit 5ba7f38
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "zabbix.fullname" . }}-waitdbschema-script
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-waitdbschema-script
app.kubernetes.io/name: waitdbschema-script
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/cronjob-hanodes-autoclean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: {{ template "zabbix.fullname" . }}-nodesclean
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-nodesclean
app.kubernetes.io/name: nodesclean
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/daemonset-zabbix-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-agent
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-agent
app.kubernetes.io/name: zabbix-agent
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/deployment-webdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "zabbix.fullname" . }}-{{ .Values.zabbixBrowserMonitoring.webdriver.name }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.name" . }}
release: {{ .Release.Name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "zabbix.fullname" . }}-{{ .Values.zabbixJavaGateway.ZBX_JAVAGATEWAY }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-{{ .Values.zabbixJavaGateway.ZBX_JAVAGATEWAY }}
app.kubernetes.io/name: {{ .Values.zabbixJavaGateway.ZBX_JAVAGATEWAY }}
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/deployment-zabbix-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-server
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-server
app.kubernetes.io/name: zabbix-server
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/deployment-zabbix-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-web
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-web
app.kubernetes.io/name: zabbix-web
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/deployment-zabbix-webservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-webservice
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-webservice
app.kubernetes.io/name: zabbix-webservice
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "zabbix.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/job-create-upgrade-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ apiVersion: batch/v1beta1
kind: Job
metadata:
name: {{ template "zabbix.fullname" . }}-create-upgrade-db
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-create-upgrade-db
app.kubernetes.io/name: create-upgrade-db
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/role-ha-helper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ template "zabbix.fullname" . }}-ha-helper
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-ha-helper
app.kubernetes.io/name: zabbix-server
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/rolebinding-ha-helper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ template "zabbix.fullname" . }}-ha-helper
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-ha-helper
app.kubernetes.io/name: zabbix-server
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/secret-db-access.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.postgresAccess.unifiedSecretName }}
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/resource-policy": keep
labels:
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-server
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-server
app.kubernetes.io/name: zabbix-server
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/serviceaccount-ha-helper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "zabbix.fullname" . }}-ha-helper
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-ha-helper
app.kubernetes.io/name: zabbix-server
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ imagePullSecrets:
automountServiceAccountToken: {{ .Values.serviceAccount.automountServiceAccountToken }}
metadata:
name: {{ template "zabbix.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/statefulset-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "zabbix.fullname" . }}-postgresql
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-postgresql
app.kubernetes.io/name: postgresql
Expand Down
1 change: 1 addition & 0 deletions charts/zabbix/templates/statefulset-zabbix-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "zabbix.fullname" . }}-zabbix-proxy
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "zabbix.fullname" . }}-zabbix-proxy
app.kubernetes.io/name: zabbix-proxy
Expand Down

0 comments on commit 5ba7f38

Please sign in to comment.