Skip to content

Commit dcfd5ef

Browse files
committed
add dryRun option to helm chart
1 parent a9c25fc commit dcfd5ef

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Key values:
7777
| --- | --- | --- |
7878
| `schedule` | Cron expression for how often to scan nodes | `*/1 * * * *` |
7979
| `annotationSelector.key`/`.value` | Annotation pair that marks pods for rollout | `evict-to-rollout` / `true` |
80+
| `dryRun` | Set `true` to log would-be rollouts without patching deployments | `false` |
8081
| `image.repository` / `.tag` | Container image that provides `kubectl` + `jq` | `ghcr.io/hivemindtechnologies/evict-to-rollout/kubectl-jq` / *(empty = use chart `appVersion`)* |
8182
| `serviceAccount.create` | Whether to create a dedicated SA | `true` |
8283
| `rbac.create` | Whether to install ClusterRole + binding | `true` |

chart/evict-to-rollout/templates/cronjob.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ spec:
4444
value: {{ .Values.annotationSelector.key | quote }}
4545
- name: ANNOTATION_VALUE
4646
value: {{ .Values.annotationSelector.value | quote }}
47+
- name: DRY_RUN
48+
value: {{ .Values.dryRun | quote }}
4749
volumeMounts:
4850
- name: script
4951
mountPath: /scripts

chart/evict-to-rollout/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ annotationSelector:
1212
key: evict-to-rollout
1313
value: "true"
1414

15+
dryRun: false
16+
1517
serviceAccount:
1618
create: true
1719
name: ""

0 commit comments

Comments
 (0)