get ready for pod

This commit is contained in:
Stavros kois
2023-01-30 16:07:28 +02:00
parent 7f24040b87
commit 5bf73d9d54
8 changed files with 40 additions and 35 deletions

View File

@@ -4,4 +4,4 @@
# controllers (Tests use a different named controller)
controllers:
main:
enabled: false
enabled: true

View File

@@ -46,5 +46,5 @@ spec:
{{- . | nindent 12 }}
{{- end }}
spec:
{{/* pod */}}
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 10 }}
{{- end -}}

View File

@@ -48,5 +48,6 @@ spec:
annotations:
{{- . | nindent 8 }}
{{- end }}
spec:
spec:
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 6 }}
{{- end -}}

View File

@@ -48,5 +48,6 @@ spec:
annotations:
{{- . | nindent 8 }}
{{- end }}
spec:
spec:
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 6 }}
{{- end -}}

View File

@@ -46,5 +46,5 @@ spec:
{{- . | nindent 8 }}
{{- end }}
spec:
{{/* pod */}}
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 6 }}
{{- end -}}

View File

@@ -48,6 +48,6 @@ spec:
annotations:
{{- . | nindent 8 }}
{{- end }}
spec:
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData.podSpec) -}}
spec:
{{- include "ix.v1.common.lib.controller.pod" (dict "rootCtx" $rootCtx "objectData" $objectData) | nindent 6 }}
{{- end -}}

View File

@@ -5,4 +5,7 @@ rootCtx: The root context of the template. It is used to access the global conte
objectData: The object data to be used to render the Pod.
*/}}
{{- define "ix.v1.common.lib.controller.pod" -}}
{{- $rootCtx := .rootCtx -}}
{{- $objectData := .objectData -}}
{{- end -}}

View File

@@ -377,17 +377,17 @@ controllers:
# -- Controller type
type: Deployment
# -- Controller labels
labels: {}
# -- Controller annotations
annotations: {}
# -- Controller replicas (Deployment and StatefulSet only)
replicas: 1
# -- Controller revision history limit
revisionHistoryLimit: 3
# Strategy
# -- Controller strategy type
strategy: Recreate
# -- Controller strategy rolling update
# labels: {}
# # -- Controller annotations
# annotations: {}
# # -- Controller replicas (Deployment and StatefulSet only)
# replicas: 1
# # -- Controller revision history limit
# revisionHistoryLimit: 3
# # Strategy
# # -- Controller strategy type
# strategy: Recreate
# # -- Controller strategy rolling update
# rollingUpdate:
# # -- Controller strategy rolling update max unavailable
# maxUnavailable: 1
@@ -396,19 +396,19 @@ controllers:
# # -- Controller strategy rolling update partition (StatefulSet only)
# partition: 0
# -- CronJob
# - CronJob schedule
schedule: "5"
# - CronJob concurrency policy
concurrencyPolicy: ""
# - CronJob timezone
timezone: ""
# - CronJob failed jobs history limit
failedJobsHistoryLimit: 1
# - CronJob successful jobs history limit
successfulJobsHistoryLimit: 3
# - CronJob starting deadline seconds
startingDeadlineSeconds: 0
# # -- CronJob
# # - CronJob schedule
# schedule: "5"
# # - CronJob concurrency policy
# concurrencyPolicy: ""
# # - CronJob timezone
# timezone: ""
# # - CronJob failed jobs history limit
# failedJobsHistoryLimit: 1
# # - CronJob successful jobs history limit
# successfulJobsHistoryLimit: 3
# # - CronJob starting deadline seconds
# startingDeadlineSeconds: 0
# # -- Job
# # - Job active deadline seconds
@@ -426,10 +426,10 @@ controllers:
# -- Pod Spec
podSpec:
# -- Pod labels
labels: {}
# -- Pod annotations
annotations: {}
# # -- Pod labels
# labels: {}
# # -- Pod annotations
# annotations: {}
# -- hostNetwork
hostNetwork: false
# -- enableServiceLinks