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

Commit

Permalink
feat(cronjob)update default command, args. Remove support for incomin…
Browse files Browse the repository at this point in the history
…g traffic
  • Loading branch information
morremeyer committed Feb 19, 2022
1 parent 8bb0192 commit a6db606
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: cronjob
description: Run jobs on a schedule
type: application
version: 1.1.4
version: 2.0.0
maintainers:
- name: morre
email: [email protected]
23 changes: 20 additions & 3 deletions charts/cronjob/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cronjob

![Version: 1.1.4](https://img.shields.io/badge/Version-1.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Run jobs on a schedule

Expand All @@ -10,6 +10,23 @@ Run jobs on a schedule
| ---- | ------ | --- |
| morre | [email protected] | |

## Upgrading

### To 2.0.0

Support for the following has been removed:

* `livenessProbe`
* `readinessProbe`
* `ports`

This is a design decision as CronJobs should not have any incoming traffic.

The following default values have been changed:

* `command` from `["/bin/echo"]` to `[]`
* `args` from `["'{"level": "info", "message": "no arguments defined, nothing to do"}'"]` to `[]`

## Values

| Key | Type | Default | Description |
Expand All @@ -18,8 +35,8 @@ Run jobs on a schedule
| additionalVolumes | list | `[]` | |
| affinity | object | `{}` | affinity object for the pod |
| annotations | object | `{}` | |
| args | list | `["{\"level\": \"info\", \"message\": \"no arguments defined, nothing to do\"}"]` | arguments to pass to the command or binary being run |
| command | list | `["/bin/echo"]` | the command or binary to run |
| args | list | `[]` | arguments to pass to the command or binary being run |
| command | list | `[]` | the command or binary to run |
| env | list | `[]` | Directly set environment variables |
| envValueFrom | object | `{}` | Set environment variables from configMaps or Secrets |
| failedJobsHistoryLimit | string | `nil` | The number of failed finished jobs to retain. |
Expand Down
18 changes: 18 additions & 0 deletions charts/cronjob/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,22 @@
{{ template "chart.maintainersSection" . }}
{{ template "chart.sourcesSection" . }}
{{ template "chart.requirementsSection" . }}

## Upgrading

### To 2.0.0

Support for the following has been removed:

* `livenessProbe`
* `readinessProbe`
* `ports`

This is a design decision as CronJobs should not have any incoming traffic.

The following default values have been changed:

* `command` from `["/bin/echo"]` to `[]`
* `args` from `["'{"level": "info", "message": "no arguments defined, nothing to do"}'"]` to `[]`

{{ template "chart.valuesSection" . }}
10 changes: 0 additions & 10 deletions charts/cronjob/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,6 @@ spec:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- end }}
{{- with .Values.ports }}
ports:
{{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.livenessProbe }}
livenessProbe: {{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe: {{- toYaml . | nindent 16 }}
{{- end }}
{{- with .Values.resources }}
resources: {{- toYaml .Values.resources | nindent 16 }}
{{- end }}
Expand Down
6 changes: 2 additions & 4 deletions charts/cronjob/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ podSecurityContext: {}
securityContext: {}

# -- the command or binary to run
command: ["/bin/echo"]
command: []

# -- arguments to pass to the command or binary being run
args:
- '{"level": "info", "message": "no arguments defined, nothing to do"}'

args: []

# -- Directly set environment variables
env: []
Expand Down

0 comments on commit a6db606

Please sign in to comment.