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.6.4"
- "feat(flux,source-controller): add possibility to use a pvc for 'Persistent storage for Flux internal artifacts'"
apiVersion: v2
appVersion: 2.6.4
description: A Helm chart for flux2
name: flux2
sources:
- https://github.com/fluxcd-community/helm-charts
type: application
version: 2.16.4
version: 2.17.0
6 changes: 5 additions & 1 deletion charts/flux2/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flux2

![Version: 2.16.4](https://img.shields.io/badge/Version-2.16.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.6.4](https://img.shields.io/badge/AppVersion-2.6.4-informational?style=flat-square)
![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.6.4](https://img.shields.io/badge/AppVersion-2.6.4-informational?style=flat-square)

A Helm chart for flux2

Expand Down Expand Up @@ -171,6 +171,10 @@ This helm chart is maintained and released by the fluxcd-community on a best eff
| sourceController.serviceAccount.annotations | object | `{}` | |
| sourceController.serviceAccount.automount | bool | `true` | |
| sourceController.serviceAccount.create | bool | `true` | |
| sourceController.persistentvolumeclaim.annotations | object | `{}` | |
| sourceController.persistentvolumeclaim.create | bool | `true` | |
| sourceController.persistentvolumeclaim.labels | object | `{}` | ||
| sourceController.persistentvolumeclaim.size | string | `"10Gi"` | ||
| sourceController.tag | string | `"v1.6.2"` | |
| sourceController.tolerations | list | `[]` | |
| watchAllNamespaces | bool | `true` | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if and .Values.sourceController.create .Values.sourceController.persistentvolumeclaim.create }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
app.kubernetes.io/instance: {{ .Release.Namespace | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/part-of: flux
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
control-plane: controller
{{- with .Values.sourceController.persistentvolumeclaim.labels }}{{ toYaml . | nindent 4 }}{{ end }}
name: source-controller
{{- with .Values.sourceController.persistentvolumeclaim.annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- ReadWriteOnce
{{- with .Values.sourceController.persistentvolumeclaim.storageClassName }}
storageClassName: {{ . }}
{{- end }}
resources:
requests:
storage: {{ .Values.sourceController.persistentvolumeclaim.size | quote }}
{{- end }}
23 changes: 14 additions & 9 deletions charts/flux2/templates/source-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ spec:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
{{- end}}
{{- end }}
volumeMounts:
- mountPath: /data
name: data
- mountPath: /tmp
name: tmp
- name: data
mountPath: /data
- name: tmp
mountPath: /tmp
{{- if .Values.sourceController.volumeMounts }}
{{- toYaml .Values.sourceController.volumeMounts | nindent 8 }}
{{- end}}
Expand All @@ -121,10 +121,15 @@ spec:
{{- end }}
terminationGracePeriodSeconds: 10
volumes:
- emptyDir: {}
name: data
- emptyDir: {}
name: tmp
- name: data
{{- if .Values.sourceController.persistentvolumeclaim.create }}
persistentVolumeClaim:
claimName: source-controller
{{- else }}
emptyDir: {}
{{- end }}
- name: tmp
emptyDir: {}
{{- if .Values.sourceController.volumes }}
{{- toYaml .Values.sourceController.volumes | nindent 6 }}
{{- end}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
labeltestkey: labeltestvalue
labeltestkey2: labeltestvalue2
name: helm-controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: image-automation-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: image-reflector-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: test1
namespace: NAMESPACE
type: Opaque
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: kustomize-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: notification-controller
spec:
replicas: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: RELEASE-NAME-flux-check
spec:
backoffLimit: 1
Expand All @@ -23,7 +23,7 @@ should match snapshot of default values:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: RELEASE-NAME
spec:
automountServiceAccountToken: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ should match snapshot of default values:
app.kubernetes.io/part-of: flux
app.kubernetes.io/version: 2.6.4
control-plane: controller
helm.sh/chart: flux2-2.16.4
helm.sh/chart: flux2-2.17.0
name: source-controller
spec:
replicas: 1
Expand Down
6 changes: 6 additions & 0 deletions charts/flux2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,12 @@ sourceController:
service:
labels: {}
annotations: {}
persistentvolumeclaim:
labels: {}
annotations: {}
create: false
size: 10Gi
# storageClassName: default
nodeSelector: {}
affinity: {}
tolerations: []
Expand Down