Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit 446343e

Browse files
authored
feat: add startupProbe (#109)
Fixes #98
1 parent 7b4c1b6 commit 446343e

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

charts/generic/Chart.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ apiVersion: v2
22
name: generic
33
description: A chart for generic applications. Use this if you need to deploy something without wanting to build a fully fledged new helm chart.
44
type: application
5-
version: 3.2.2
5+
version: 3.3.0
66
maintainers:
77
- name: morremeyer
88
9+
- name: ekeih

charts/generic/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generic
22

3-
![Version: 3.2.2](https://img.shields.io/badge/Version-3.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
3+
![Version: 3.3.0](https://img.shields.io/badge/Version-3.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
44

55
A chart for generic applications. Use this if you need to deploy something without wanting to build a fully fledged new helm chart.
66

@@ -9,6 +9,7 @@ A chart for generic applications. Use this if you need to deploy something witho
99
| Name | Email | Url |
1010
| ---- | ------ | --- |
1111
| morremeyer | <[email protected]> | |
12+
| ekeih | | |
1213

1314
## Complex values
1415

@@ -83,7 +84,6 @@ If you have environment variables set from ConfigMaps or Secrets, check out `env
8384
| deploymentStrategy | object | `{}` | |
8485
| env | list | `[]` | Directly set environment variables |
8586
| envValueFrom | object | `{}` | Set environment variables from configMaps or Secrets |
86-
| failedJobsHistoryLimit | string | `nil` | The number of failed finished jobs to retain. |
8787
| fullnameOverride | string | `""` | |
8888
| image.pullPolicy | string | `"IfNotPresent"` | |
8989
| image.repository | string | `"nginx"` | |
@@ -129,5 +129,5 @@ If you have environment variables set from ConfigMaps or Secrets, check out `env
129129
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
130130
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
131131
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
132-
| successfulJobsHistoryLimit | string | `nil` | The number of successful finished jobs to retain. |
132+
| startupProbe | string | `nil` | Configure a startup probe for the pod |
133133
| tolerations | list | `[]` | |

charts/generic/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ spec:
8383
{{- with .Values.readinessProbe }}
8484
readinessProbe: {{- toYaml . | nindent 12 }}
8585
{{- end }}
86+
{{- with .Values.startupProbe }}
87+
startupProbe: {{- toYaml . | nindent 12 }}
88+
{{- end }}
8689
{{- with .Values.resources }}
8790
resources: {{- toYaml . | nindent 12 }}
8891
{{- end }}

charts/generic/values.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# -- The number of successful finished jobs to retain.
2-
successfulJobsHistoryLimit: ~
3-
4-
# -- The number of failed finished jobs to retain.
5-
failedJobsHistoryLimit: ~
6-
71
# -- number of replicas
82
replicaCount: 1
93

@@ -79,6 +73,9 @@ readinessProbe:
7973
path: /
8074
port: http
8175

76+
# -- Configure a startup probe for the pod
77+
startupProbe: ~
78+
8279
service:
8380
type: ClusterIP
8481
annotations: {}

0 commit comments

Comments
 (0)