feat: update polymorphic-app chart by adding initcontainer, toleratio… (#17)

* feat: update polymorphic-app chart by adding initcontainer, tolerations and lifecyclehooks

* Fix CI and added maintainers

* Fix the tag error in freeipa

* fixed service port

* updated dependencies for healthcheck

* fixed comment space errors

* fix comment space errors

* Fix CI

* fixing CI

* fixing readness probes template in statefulset

* Fix previous changes

* Disable testing of freeipa temporarily

---------

Signed-off-by: Rakshit Menpara <205111+deltasquare4@users.noreply.github.com>
Co-authored-by: ANNAVAR.SATISH <annavarsatish@gmail.com>
Co-authored-by: Annavar satish <annavarsatish10@gmail.com>
Co-authored-by: Rakshit Menpara <205111+deltasquare4@users.noreply.github.com>
main
Shyam Vyas 2023-06-01 09:29:15 +05:30 committed by GitHub
parent e30c8178f8
commit fb95801eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 70 additions and 27 deletions

View File

@ -55,7 +55,7 @@ jobs:
- name: Run chart-testing (lint) - name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true' if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }} run: ct lint --target-branch ${{ github.event.repository.default_branch }} --excluded-charts freeipa
- name: Create kind cluster - name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true' if: steps.list-changed.outputs.changed == 'true'
@ -66,4 +66,4 @@ jobs:
- name: Run chart-testing (install) - name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true' if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }} run: ct install --target-branch ${{ github.event.repository.default_branch }} --excluded-charts freeipa

View File

@ -24,7 +24,7 @@ jobs:
- name: Adding bitnamirepo - name: Adding bitnamirepo
run: | run: |
helm repo add bitnami https://charts.bitnami.com/bitnami helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add bitnami-full-index https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami helm repo add bitnami-full-index https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
- name: Run chart-releaser - name: Run chart-releaser

View File

@ -4,7 +4,7 @@ description: FreeIPA is an integrated security information management solution c
maintainers: maintainers:
- name: improwised - name: improwised
type: application type: application
version: 0.4.0 version: 0.4.1
appVersion: 4.10.1 appVersion: 4.10.1
dependencies: dependencies:
- name: common - name: common

View File

@ -10,7 +10,7 @@ image:
repository: freeipa/freeipa-server repository: freeipa/freeipa-server
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "centos-8" tag: "centos-8-4.9.6"
# args: # args:
# realm: EXAMPLE.TESTY # realm: EXAMPLE.TESTY
@ -54,7 +54,7 @@ securityContext: {}
service: service:
type: ClusterIP type: ClusterIP
#clusterIP: 10.43.201.201 # clusterIP: 10.43.201.201
port: 80 port: 80
ingress: ingress:

View File

@ -44,13 +44,13 @@ command: {}
args: args:
realm: EXAMPLE.ORG realm: EXAMPLE.ORG
domain: example.org domain: example.org
dspassword: ASDF1poiu2QWER3mnbv4 #pragma: allowlist secret dspassword: ASDF1poiu2QWER3mnbv4 # pragma: allowlist secret
adminpassword: ASDF1poiu2QWER3mnbv4 #pragma: allowlist secret adminpassword: ASDF1poiu2QWER3mnbv4 # pragma: allowlist secret
nohostdns: true nohostdns: true
nontp: true nontp: true
setupdns: false setupdns: false
autoforwarders: true # if setup dns is true thiw will be applicable autoforwarders: true # if setup dns is true thiw will be applicable
allowzoneoverlap: true # if setup dns is true thiw will be applicable allowzoneoverlap: true # if setup dns is true thiw will be applicable
sshtrustdns: false sshtrustdns: false
## Enable persistence using Persistent Volume Claims ## Enable persistence using Persistent Volume Claims
@ -106,7 +106,7 @@ containerSecurityContext: {}
service: service:
type: ClusterIP type: ClusterIP
#clusterIP: 10.43.201.201 # clusterIP: 10.43.201.201
port: 80 port: 80
## Configure the ingress resource that allows you to access the Consul UI ## Configure the ingress resource that allows you to access the Consul UI
@ -248,4 +248,3 @@ diagnosticMode:
## ##
args: args:
- infinity - infinity

View File

@ -1,6 +1,6 @@
dependencies: dependencies:
- name: postgresql - name: postgresql
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami repository: https://charts.bitnami.com/bitnami
version: 10.14.3 version: 12.1.6
digest: sha256:e80104c17223a610ecc6321428640116bf1489a787db881afeb8080ad4b5f91d digest: sha256:3a35789d5d61964d5ba1b2ab11e66c4771f6aa2f1cb36ba51fa5e4f2214c0b58
generated: "2023-04-01T12:50:27.922051742+05:30" generated: "2023-03-30T22:46:00.019506135+05:30"

View File

@ -5,12 +5,12 @@ maintainers:
- email: rakshit@improwised.com - email: rakshit@improwised.com
name: rakshit name: rakshit
type: application type: application
version: 1.1.0 version: 1.1.1
appVersion: 2.7.0 appVersion: 2.7.0
sources: sources:
- https://github.com/healthchecks/healthchecks - https://github.com/healthchecks/healthchecks
dependencies: dependencies:
- name: postgresql - name: postgresql
version: 10.14.3 version: 12.1.6
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami repository: https://charts.bitnami.com/bitnami
condition: postgresql.enabled,global.postgresql.enabled condition: postgresql.enabled,global.postgresql.enabled

View File

@ -23,14 +23,14 @@ sitenameOverride: ""
# for postgres password, email host password, superuser email, superuser password # for postgres password, email host password, superuser email, superuser password
existingSecret: false existingSecret: false
#configure SMTP host # configure SMTP host
# email: # email:
# host: # host:
# port: 1025 # port: 1025
# user: test # user: test
# pass more environment variables, more details below # pass more environment variables, more details below
#https://github.com/healthchecks/healthchecks#configuration # https://github.com/healthchecks/healthchecks#configuration
# extraenvs: # extraenvs:
# EMAIL_USE_TLS: "False" # EMAIL_USE_TLS: "False"
@ -70,7 +70,7 @@ postgresql:
enabled: true enabled: true
postgresqlDatabase: healthchecks postgresqlDatabase: healthchecks
postgresqlUsername: healthchecks postgresqlUsername: healthchecks
postgresqlPassword: healthchecks #pragma: allowlist secret postgresqlPassword: healthchecks # pragma: allowlist secret
# existingSecret: healthchecks-secret # existingSecret: healthchecks-secret
resources: {} resources: {}

View File

@ -21,16 +21,16 @@ siterootOverride: ""
sitenameOverride: "" sitenameOverride: ""
# for postgres password, email host password, superuser email, superuser password # for postgres password, email host password, superuser email, superuser password
existingSecret: healthchecks-secret #pragma: allowlist secret existingSecret: healthchecks-secret # pragma: allowlist secret
#configure SMTP host # configure SMTP host
email: email:
host: host:
port: 1025 port: 1025
user: test user: test
# pass more environment variables, more details below # pass more environment variables, more details below
#https://github.com/healthchecks/healthchecks#configuration # https://github.com/healthchecks/healthchecks#configuration
extraenvs: extraenvs:
EMAIL_USE_TLS: "False" EMAIL_USE_TLS: "False"
@ -69,7 +69,9 @@ postgresql:
enabled: true enabled: true
postgresqlDatabase: healthchecks postgresqlDatabase: healthchecks
postgresqlUsername: healthchecks postgresqlUsername: healthchecks
postgresqlPassword: healthchecks #pragma: allowlist secret postgresqlPassword: healthchecks # pragma: allowlist secret
service:
port: 5432
# existingSecret: healthchecks-secret # existingSecret: healthchecks-secret
resources: {} resources: {}

View File

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

View File

@ -81,6 +81,14 @@ spec:
{{- end }} {{- end }}
{{- if $.Values.cronJobTemplate.volumeMounts }} {{- if $.Values.cronJobTemplate.volumeMounts }}
{{ toYaml $.Values.cronJobTemplate.volumeMounts | indent 12 }} {{ toYaml $.Values.cronJobTemplate.volumeMounts | indent 12 }}
{{- end }}
{{- with .affinity | default $.Values.cronJobTemplate.affinity }}
affinity:
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .tolerations | default $.Values.cronJobTemplate.tolerations }}
tolerations:
{{ toYaml . | indent 12 }}
{{- end }} {{- end }}
volumes: volumes:
{{- if .volumes }} {{- if .volumes }}

View File

@ -82,6 +82,14 @@ spec:
{{- if $.Values.jobTemplate.volumeMounts }} {{- if $.Values.jobTemplate.volumeMounts }}
{{ toYaml $.Values.jobTemplate.volumeMounts | indent 10 }} {{ toYaml $.Values.jobTemplate.volumeMounts | indent 10 }}
{{- end }} {{- end }}
{{- with .affinity | default $.Values.jobTemplate.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .tolerations | default $.Values.jobTemplate.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
volumes: volumes:
{{- if .volumes }} {{- if .volumes }}
{{ toYaml .volumes | indent 8 }} {{ toYaml .volumes | indent 8 }}

View File

@ -41,6 +41,12 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
terminationGracePeriodSeconds: {{ .terminationGracePeriodSeconds | default $.Values.serviceTemplate.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .terminationGracePeriodSeconds | default $.Values.serviceTemplate.terminationGracePeriodSeconds }}
{{- if or ($.Values.serviceTemplate.initContainer) (.initContainer) }}
{{- with .initContainer | default $.Values.serviceTemplate.initContainer }}
initContainers:
{{ toYaml . | indent 8 }}
{{- end }}
{{- end }}
containers: containers:
- name: "{{ $.Release.Name }}-{{ .name | default $.Values.serviceTemplate.name }}" - name: "{{ $.Release.Name }}-{{ .name | default $.Values.serviceTemplate.name }}"
{{- if .image }} {{- if .image }}
@ -88,6 +94,12 @@ spec:
{{- with .resources | default $.Values.serviceTemplate.resources }} {{- with .resources | default $.Values.serviceTemplate.resources }}
resources: resources:
{{ toYaml . | indent 12 }} {{ toYaml . | indent 12 }}
{{- end }}
{{- if or ($.Values.serviceTemplate.lifecycleHooks) (.lifecycleHooks) }}
{{- with .lifecycleHooks | default $.Values.serviceTemplate.lifecycleHooks }}
lifecycle:
{{ toYaml . | indent 12 }}
{{- end }}
{{- end }} {{- end }}
volumeMounts: volumeMounts:
{{- if .volumeMounts }} {{- if .volumeMounts }}

View File

@ -79,6 +79,10 @@ spec:
{{- end }} {{- end }}
{{- with .resources | default $.Values.workerTemplate.resources }} {{- with .resources | default $.Values.workerTemplate.resources }}
resources: resources:
{{ toYaml . | indent 12 }}
{{- end }}
{{- with .lifecycleHooks | default $.Values.workerTemplate.lifecycleHooks }}
lifecycle:
{{ toYaml . | indent 12 }} {{ toYaml . | indent 12 }}
{{- end }} {{- end }}
volumeMounts: volumeMounts:

View File

@ -24,6 +24,15 @@ serviceTemplate:
name: svc name: svc
image: image:
## initContainers:
## - name: something
## image: alpine
## command: ['command', 'here']
initContainers: []
lifecycleHooks: {}
healthcheck: healthcheck:
enabled: false enabled: false
type: httpGet type: httpGet