mirror of
https://github.com/truenas/charts.git
synced 2026-06-18 09:37:12 +08:00
get ready for pod
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
# controllers (Tests use a different named controller)
|
||||
controllers:
|
||||
main:
|
||||
enabled: false
|
||||
enabled: true
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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 -}}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user