Skip to content

Commit

Permalink
Fixing imagePullSecrets(should be an object) + adding it at the SA level
Browse files Browse the repository at this point in the history
  • Loading branch information
megalucio committed Jan 13, 2025
1 parent bd57711 commit e22bcd2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/falco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,7 @@ The following table lists the main configurable parameters of the falco chart v4
| resources.limits | object | `{"cpu":"1000m","memory":"1024Mi"}` | Maximum amount of resources that Falco container could get. If you are enabling more than one source in falco, than consider to increase the cpu limits. |
| resources.requests | object | `{"cpu":"100m","memory":"512Mi"}` | Although resources needed are subjective on the actual workload we provide a sane defaults ones. If you have more questions or concerns, please refer to #falco slack channel for more info about it. |
| scc.create | bool | `true` | Create OpenShift's Security Context Constraint. |
| serviceAccount.imagePullSecrets | object | `{}` | Secrets containing credentials when pulling from private/secure registries using the service account. |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account. |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |
| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
Expand Down
4 changes: 4 additions & 0 deletions charts/falco/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

{{- if .Values.serviceAccount.create -}}
apiVersion: v1
{{- with .Values.serviceAccount.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 2 }}
{{- end }}
kind: ServiceAccount
metadata:
name: {{ include "falco.serviceAccountName" . }}
Expand Down
4 changes: 3 additions & 1 deletion charts/falco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ image:
tag: ""

# -- Secrets containing credentials when pulling from private/secure registries.
imagePullSecrets: []
imagePullSecrets: {}
# -- Put here the new name if you want to override the release name used for Falco components.
nameOverride: ""
# -- Same as nameOverride but for the fullname.
Expand All @@ -27,6 +27,8 @@ namespaceOverride: ""
podAnnotations: {}

serviceAccount:
# -- Secrets containing credentials when pulling from private/secure registries.
imagePullSecrets: {}
# -- Specifies whether a service account should be created.
create: true
# -- Annotations to add to the service account.
Expand Down

0 comments on commit e22bcd2

Please sign in to comment.