feat: new features for polymorphic-app chart #42 (#43)

Added support for successfulJobHistoryLimit and failedJobHistoryLimit for CronJob
Added support for dnsConfig for Deployment
main
HUSSAIN GANDHI 2023-07-03 19:31:14 +05:30 committed by GitHub
parent 941ed60d73
commit f3daa15593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 37 additions and 2 deletions

View File

@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po
maintainers:
- name: improwised
type: application
version: 1.2.2
version: 1.2.3
appVersion: 1.0.0

View File

@ -13,6 +13,12 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .successfulJobsHistoryLimit | default $.Values.cronJobTemplate.successfulJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ toYaml . }}
{{- end }}
{{- with .failedJobsHistoryLimit | default $.Values.cronJobTemplate.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ toYaml . }}
{{- end }}
schedule: {{ .schedule | quote }}
suspend: {{ .suspend | default false }}
jobTemplate:

View File

@ -152,6 +152,10 @@ spec:
periodSeconds: {{ .healthcheck.periodSeconds | default $.Values.serviceTemplate.healthcheck.periodSeconds | default "20" }}
{{- end }}
{{- end }}
{{- with .dnsConfig | default $.Values.workerTemplate.dnsConfig }}
dnsConfig:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .securityContext | default $.Values.serviceTemplate.securityContext }}
securityContext:
{{ toYaml . | indent 8 }}
@ -296,4 +300,3 @@ spec:
{{- end }}
{{- end }}

View File

@ -139,6 +139,10 @@ spec:
{{- end }}
successThreshold: 1
{{- end }}
{{- with .dnsConfig | default $.Values.workerTemplate.dnsConfig }}
dnsConfig:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .securityContext | default $.Values.workerTemplate.securityContext }}
securityContext:
{{ toYaml . | indent 8 }}

View File

@ -65,6 +65,16 @@ serviceTemplate:
# fsGroup: 1001
# runAsGroup: 1001
# runAsUser: 1001
dnsConfig: {}
# nameservers:
# - 192.0.2.1 # this is an example
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0
annotations: {}
nodeSelector: {}
tolerations: []
@ -127,6 +137,16 @@ workerTemplate:
# fsGroup: 1001
# runAsGroup: 1001
# runAsUser: 1001
dnsConfig: {}
# nameservers:
# - 192.0.2.1 # this is an example
# searches:
# - ns1.svc.cluster-domain.example
# - my.dns.search.suffix
# options:
# - name: ndots
# value: "2"
# - name: edns0
nodeSelector: {}
tolerations: []
@ -210,6 +230,8 @@ cronJobTemplate:
# fsGroup: 1001
# runAsGroup: 1001
# runAsUser: 1001
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
cronJobs:
# - name: update-status