Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add namespace and labels to manifests #116

Merged
merged 2 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 1 addition & 2 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 Expand Up @@ -87,11 +88,9 @@ spec:
- name: http
containerPort: {{ .Values.service.targetPort }}
protocol: TCP
{{- if .Values.serviceMonitor.enabled }}
- name: metrics
containerPort: {{ .Values.serviceMonitor.targetPort }}
protocol: TCP
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe: {{ toYaml . | nindent 12 }}
{{- end }}
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
Loading