mirror of
https://github.com/truenas/charts.git
synced 2026-04-25 02:50:42 +08:00
Add method to render common deployment configuration
This commit is contained in:
@@ -25,6 +25,17 @@ Retrieve deployment pod's metadata
|
||||
*/}}
|
||||
{{- define "common.deployment.pod.metadata" -}}
|
||||
metadata:
|
||||
name: {{ template "common.names.fullname" . }}
|
||||
labels: {{ include "common.labels.selectorLabels" . | nindent 4 }}
|
||||
annotations: {{ include "common.annotations" . | nindent 4 }}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{/*
|
||||
Retrieve common deployment configuration
|
||||
*/}}
|
||||
{{- define "common.deployment.common_config" -}}
|
||||
apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
{{ include "common.deployment.metadata" . | nindent 0 }}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user