Skip to content

Commit

Permalink
Add namespace and labels to manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan Khizhnyak authored and JAORMX committed Dec 2, 2024
1 parent b5178a2 commit b3d99a8
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/cm-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "krakend.fullname" . }}-config
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- if .Values.krakend.configFileSource }}
binaryData:
{{ include "krakend.configFileName" . }}: |-
Expand Down
3 changes: 3 additions & 0 deletions templates/cm-partials.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "krakend.fullname" . }}-partials
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- if .Values.krakend.partialsDirSource }}
binaryData:
{{- range $path, $_ := .Files.Glob .Values.krakend.partialsDirSource }}
Expand Down
3 changes: 3 additions & 0 deletions templates/cm-settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "krakend.fullname" . }}-settings
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- if .Values.krakend.settingsDirSource }}
binaryData:
{{- range $path, $_ := .Files.Glob .Values.krakend.settingsDirSource }}
Expand Down
3 changes: 3 additions & 0 deletions templates/cm-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "krakend.fullname" . }}-templates
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- if .Values.krakend.templatesDirSource }}
binaryData:
{{- range $path, $_ := .Files.Glob .Values.krakend.templatesDirSource }}
Expand Down
1 change: 1 addition & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ kind: Rollout
{{- end }}
metadata:
name: {{ include "krakend.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- with .Values.deploymentAnnotations }}
Expand Down
1 change: 1 addition & 0 deletions templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: {{ ternary "autoscaling/v2" "autoscaling/v2beta2" (.Capabilities.API
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "krakend.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- with .Values.autoscaling.annotations }}
Expand Down
1 change: 1 addition & 0 deletions 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 "krakend.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
1 change: 1 addition & 0 deletions 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: {{ include "krakend.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- if .Values.service.annotations }}
Expand Down
1 change: 1 addition & 0 deletions 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: {{ include "krakend.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "krakend.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down

0 comments on commit b3d99a8

Please sign in to comment.