forked from fluxcd-community/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request fluxcd-community#153 from moritzjohner-form3/mj-sc…
…tx-job ✨ install-job: allow setting securityContext/volumes/volumeM…
- Loading branch information
Showing
13 changed files
with
157 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
annotations: | ||
artifacthub.io/changes: | | ||
- "[Added]: Allow disabling CRD installation for specific controllers" | ||
- "[Added]: Allow setting automountServiceAccountToken on the pod spec" | ||
- "[Added]: Support specifying annotationts for the pre-install-job" | ||
- "[Added]: Allow setting install-job securityContext and volumes" | ||
apiVersion: v2 | ||
appVersion: 0.37.0 | ||
description: A Helm chart for flux2 | ||
name: flux2 | ||
sources: | ||
- https://github.com/fluxcd-community/helm-charts | ||
type: application | ||
version: 2.4.0 | ||
version: 2.4.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
charts/flux2/tests/__snapshot__/pre-install-job_test.yaml.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
should match snapshot of default values: | ||
1: | | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
annotations: | ||
helm.sh/hook: pre-install | ||
helm.sh/hook-delete-policy: before-hook-creation,hook-succeeded | ||
helm.sh/hook-weight: "-5" | ||
labels: | ||
app.kubernetes.io/instance: NAMESPACE | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: flux | ||
app.kubernetes.io/version: 0.37.0 | ||
helm.sh/chart: flux2-2.4.1 | ||
name: RELEASE-NAME-flux-check | ||
spec: | ||
backoffLimit: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: NAMESPACE | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: flux | ||
app.kubernetes.io/version: 0.37.0 | ||
helm.sh/chart: flux2-2.4.1 | ||
name: RELEASE-NAME | ||
spec: | ||
automountServiceAccountToken: true | ||
containers: | ||
- command: | ||
- /usr/local/bin/flux | ||
- check | ||
- --pre | ||
- --namespace | ||
- NAMESPACE | ||
image: ghcr.io/fluxcd/flux-cli:v0.37.0 | ||
name: flux-cli | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
restartPolicy: Never | ||
serviceAccountName: RELEASE-NAME-flux-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,8 @@ cli: | |
affinity: {} | ||
tolerations: [] | ||
annotations: {} | ||
serviceAccount: | ||
automount: true | ||
|
||
# controllers | ||
|
||
|