Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/flux2/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
annotations:
artifacthub.io/changes: |
- "[Chore]: Update App Version to upstream 2.7.2"
- "[Chore]: Allow Disabling Pre-Install Job"
apiVersion: v2
appVersion: 2.7.2
description: A Helm chart for flux2
name: flux2
sources:
- https://github.com/fluxcd-community/helm-charts
type: application
version: 2.17.0
version: 2.17.1
3 changes: 2 additions & 1 deletion charts/flux2/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flux2

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

A Helm chart for flux2

Expand All @@ -16,6 +16,7 @@ This helm chart is maintained and released by the fluxcd-community on a best eff
|-----|------|---------|-------------|
| cli.affinity | object | `{}` | |
| cli.annotations | object | `{}` | |
| cli.create | bool | `true` | |
| cli.image | string | `"ghcr.io/fluxcd/flux-cli"` | |
| cli.nodeSelector | object | `{}` | |
| cli.serviceAccount.automount | bool | `true` | |
Expand Down
2 changes: 2 additions & 0 deletions charts/flux2/templates/pre-install-job-serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.cli.create }}
apiVersion: v1
kind: ServiceAccount
metadata:
Expand All @@ -12,3 +13,4 @@ metadata:
"helm.sh/hook": pre-install
"helm.sh/hook-weight": "-10"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
{{- end }}
2 changes: 2 additions & 0 deletions charts/flux2/templates/pre-install-job.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.cli.create }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down Expand Up @@ -70,3 +71,4 @@ spec:
{{- with .Values.cli.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/flux2/tests/pre-install-job_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,9 @@ tests:
- it: should match snapshot of default values
asserts:
- matchSnapshot: {}
- it: should not render job when cli.create is false
set:
cli.create: false
asserts:
- hasDocuments:
count: 0
1 change: 1 addition & 0 deletions charts/flux2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ multitenancy:
clusterDomain: cluster.local

cli:
create: true
image: ghcr.io/fluxcd/flux-cli
tag: v2.7.2
nodeSelector: {}
Expand Down