Skip to content

Commit

Permalink
Added overrides for disabling app flavours
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Jan 22, 2025
1 parent 526d402 commit 3b7f579
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/corvid-test/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 0.1.0
description: A Helm chart for Kubernetes
name: corvid-test
type: application
version: 0.8.0
version: 0.9.0
dependencies:
- name: corvid
version: 0.12.0
Expand Down
7 changes: 5 additions & 2 deletions charts/corvid-test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for Kubernetes

![Version: 0.8.0](https://img.shields.io/badge/Version-0.8.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.9.0](https://img.shields.io/badge/Version-0.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

## Installing the Chart

Expand Down Expand Up @@ -31,9 +31,11 @@ $ helm install corvid-test raven/corvid-test
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| command | string | `nil` | |
| cron.enabled | bool | `false` | enable or disable cronjob |
| cron.enabled | bool | `true` | enable or disable cronjob |
| cron.schedule | string | `"@midnight"` | schedule for cronjob using Cron syntax https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax |
| cron.suspend | bool | `false` | cronjob will not trigger on schedule but can be manually triggered |
| daemonset.enabled | bool | `true` | |
| deployment.enabled | bool | `true` | |
| deployment.strategy | string | `""` | rollout strategy `Recreate` or `RollingUpdate` this chart defaults to Recreate only if we detect a single replica with a volume |
| dnsConfig | object | `{}` | |
| dnsPolicy | string | `""` | |
Expand All @@ -54,6 +56,7 @@ $ helm install corvid-test raven/corvid-test
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| initContainers | list | `[]` | |
| job.enabled | bool | `true` | |
| livenessProbe | string | `nil` | raw liveness probe overrides for user |
| livenessProbeDefault | object | `{"httpGet":{"path":"/","port":"http"}}` | default liveness probe if not specified by user |
| livenessProbeEnabled | bool | `true` | enable or disable liveness probe entirely |
Expand Down
2 changes: 2 additions & 0 deletions charts/corvid-test/templates/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- define "corvid-test.cronjob" -}}
{{- end -}}
{{- if .Values.cron.enabled }}
{{- include "corvid.cronjob" (list . "corvid-test.cronjob") -}}
{{- end }}
2 changes: 2 additions & 0 deletions charts/corvid-test/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ spec:
spec:
{{ include "corvid.podSpec" (list . "corvid-test-podSpec") | indent 6 | trim }}
{{- end }}
{{- if .Values.daemonset.enabled }}
{{- include "corvid.daemonset" (list . "corvid-test.daemonset") }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/corvid-test/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ spec:
spec:
{{ include "corvid.podSpec" (list . "corvid-test-podSpec") | indent 6 | trim }}
{{- end }}
{{- if .Values.deployment.enabled }}
{{- include "corvid.deploy" (list . "corvid-test.deploy") }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/corvid-test/templates/job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
{{- define "corvid-test.job" -}}
{{- end -}}
{{- if .Values.job.enabled }}
{{- include "corvid.job" (list . "corvid-test.job") -}}
{{- end }}
9 changes: 8 additions & 1 deletion charts/corvid-test/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,25 @@ command:
args:
runtimeClassName:

daemonset:
enabled: true

deployment:
enabled: true
# -- rollout strategy `Recreate` or `RollingUpdate` this chart defaults to Recreate only if we detect a single replica with a volume
strategy: ""

cron:
# -- enable or disable cronjob
enabled: false
enabled: true
# -- schedule for cronjob using Cron syntax https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#schedule-syntax
schedule: "@midnight"
# -- cronjob will not trigger on schedule but can be manually triggered
suspend: false

job:
enabled: true

## @param initContainers Add bespoke init containers to the pods
initContainers: []
# - name: some-pod-name
Expand Down

0 comments on commit 3b7f579

Please sign in to comment.