mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Added template annotations
This commit is contained in:
@@ -5,6 +5,8 @@ metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
@@ -24,6 +26,7 @@ spec:
|
||||
{{- with .Values.podAnnotations }}
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- include "template.annotations" . | nindent 8 }}
|
||||
labels:
|
||||
{{- include "template.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
|
||||
@@ -41,6 +41,10 @@ app.kubernetes.io/version: {{ .Values.image.tag | default .Chart.AppVersion | qu
|
||||
{{- end }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- end }}
|
||||
{{- define "template.annotations" -}}
|
||||
meta.helm.sh/release-name: {{ .Release.Name }}
|
||||
meta.helm.sh/release-namespace: {{ .Release.Namespace }}
|
||||
{{- end }}
|
||||
|
||||
{{/*
|
||||
Selector labels
|
||||
|
||||
@@ -6,6 +6,8 @@ metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
|
||||
@@ -8,10 +8,11 @@ metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- with .Values.ingress.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if .Values.ingress.className }}
|
||||
ingressClassName: {{ .Values.ingress.className }}
|
||||
|
||||
@@ -8,6 +8,8 @@ metadata:
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
release: {{ .Values.prometheus.releaseName | quote | default "prometheus" }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
podMetricsEndpoints:
|
||||
- port: "{{ .Values.application.actuatorPort }}"
|
||||
|
||||
@@ -6,6 +6,8 @@ metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
data:
|
||||
{{- range $key, $value := .Values.secrets }}
|
||||
{{ $key }}: {{ $value | b64enc }}
|
||||
|
||||
@@ -5,6 +5,8 @@ metadata:
|
||||
name: {{ include "template.fullname" . }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
|
||||
@@ -6,9 +6,10 @@ metadata:
|
||||
name: {{ include "template.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -7,6 +7,8 @@ metadata:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "template.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "template.annotations" . | nindent 4 }}
|
||||
spec:
|
||||
appName: {{ .Values.vault.applicationName }}
|
||||
hcpAuthRef: {{ .Values.vault.operatorNamespace | default "vault-secrets-operator-system" }}/hcp-auth
|
||||
|
||||
Reference in New Issue
Block a user