Skip to content

Commit

Permalink
Add logging parameters for oidc-plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
welteki authored and alexellis committed Apr 23, 2024
1 parent 4220371 commit bd99515
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion chart/openfaas/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,9 @@ yaml) |
| `oidcAuthPlugin.image` | Container image used for the oidc-auth-plugin | See [values.yaml](./values.yaml) |
| `oidcAuthPlugin.insecureTLS` | Enable insecure TLS | `false` |
| `oidcAuthPlugin.replicas` | Replicas of the oidc-auth-plugin | `1` |
| `oidcAuthPlugin.logs.debug` | Log debug messages | `false` |
| `oidcAuthPlugin.logs.format` | Set the log format, supports `console` or `json` | `console` |
| `oidcAuthPlugin.resources` | Resource limits and requests for the oidc-auth-plugin containers | See [values.yaml](./values.yaml) |
| `oidcAuthPlugin.verbose` | Enable verbose logging | `false` |

### Event subscriptions

Expand Down
7 changes: 4 additions & 3 deletions chart/openfaas/templates/oidc-plugin-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ spec:
timeoutSeconds: 5
args:
- "-license-file=/var/secrets/license/license"
{{- if .Values.oidcAuthPlugin.verbose }}
- "-verbose=true"
{{- end }}
env:
- name: base_host
value: "{{- .Values.iam.systemIssuer.url}}"
Expand All @@ -101,6 +98,10 @@ spec:
value: "{{- .Values.oidcAuthPlugin.insecureTLS}}"
- name: issuer_key_path
value: "/var/secrets/issuer-key/issuer.key"
- name: "debug"
value: "{{ .Values.oidcAuthPlugin.logs.debug }}"
- name: "log_encoding"
value: "{{ .Values.oidcAuthPlugin.logs.format }}"
{{ if .Values.caBundleSecretName }}
- name: ca_bundle_path
value: /var/secrets/ca-bundle/ca.crt
Expand Down
4 changes: 3 additions & 1 deletion chart/openfaas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,11 @@ dashboard:
oidcAuthPlugin:
image: ghcr.io/openfaasltd/openfaas-oidc-plugin:0.7.3
insecureTLS: false
verbose: true # debug setting
replicas: 1
securityContext: true
logs:
debug: false
format: "console"
resources:
requests:
memory: "120Mi"
Expand Down

0 comments on commit bd99515

Please sign in to comment.