consistent order

This commit is contained in:
Stavros kois
2023-01-30 16:03:04 +02:00
parent 398355fbad
commit 7f24040b87
7 changed files with 15 additions and 6 deletions
@@ -49,4 +49,5 @@ spec:
{{- . | nindent 8 }}
{{- end }}
spec:
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData.podSpec) -}}
{{- end -}}
@@ -1,6 +1,6 @@
{{/* CronJob Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.cronjobSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) -}}
{{ include "ix.v1.common.lib.controller.cronjobSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
rootCtx: The root context of the template. It is used to access the global context.
objectData:
schedule: The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
@@ -22,5 +22,5 @@ successfulJobsHistoryLimit: {{ $objectData.successfulJobsHistoryLimit | default
startingDeadlineSeconds: {{ $objectData.startingDeadlineSeconds | default nil }}
jobTemplate:
spec:
{{- include "ix.v1.common.lib.controller.jobSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) | nindent 4 }}
{{- include "ix.v1.common.lib.controller.jobSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 4 }}
{{- end -}}
@@ -1,6 +1,6 @@
{{/* DaemonSet Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.daemonsetSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) -}}
{{ include "ix.v1.common.lib.controller.daemonsetSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
rootCtx: The root context of the template. It is used to access the global context.
objectData:
replicas: The number of replicas.
@@ -1,6 +1,6 @@
{{/* Deployment Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.deploymentSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) -}}
{{ include "ix.v1.common.lib.controller.deploymentSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
rootCtx: The root context of the template. It is used to access the global context.
objectData:
replicas: The number of replicas.
@@ -1,6 +1,6 @@
{{/* Job Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.jobSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) -}}
{{ include "ix.v1.common.lib.controller.jobSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
rootCtx: The root context of the template. It is used to access the global context.
objectData:
backoffLimit: The number of retries before marking this job failed. Defaults to 6.
@@ -0,0 +1,8 @@
{{/* Pod Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $ "objectData" $objectData) }}
rootCtx: The root context of the template. It is used to access the global context.
objectData: The object data to be used to render the Pod.
*/}}
{{- define "ix.v1.common.lib.controller.pod" -}}
{{- end -}}
@@ -1,6 +1,6 @@
{{/* StatefulSet Spec */}}
{{/* Call this template:
{{ include "ix.v1.common.lib.controller.statefulsetSpec" (dict "objectData" $objectData "rootCtx" $rootCtx) -}}
{{ include "ix.v1.common.lib.controller.statefulsetSpec" (dict "rootCtx" $rootCtx "objectData" $objectData) -}}
rootCtx: The root context of the template. It is used to access the global context.
objectData:
replicas: The number of replicas.