Commit c03f6f5b authored by Waqar Ahmed's avatar Waqar Ahmed

Add method to render common deployment configuration

parent 9bcb41d9
...@@ -25,6 +25,17 @@ Retrieve deployment pod's metadata ...@@ -25,6 +25,17 @@ Retrieve deployment pod's metadata
*/}} */}}
{{- define "common.deployment.pod.metadata" -}} {{- define "common.deployment.pod.metadata" -}}
metadata: metadata:
name: {{ template "common.names.fullname" . }}
labels: {{ include "common.labels.selectorLabels" . | nindent 4 }} labels: {{ include "common.labels.selectorLabels" . | nindent 4 }}
annotations: {{ include "common.annotations" . | nindent 4 }} annotations: {{ include "common.annotations" . | nindent 4 }}
{{- end -}} {{- 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 -}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment