diff --git a/charts/prefect-agent/README.md b/charts/prefect-agent/README.md index 1f2db92..90afdac 100644 --- a/charts/prefect-agent/README.md +++ b/charts/prefect-agent/README.md @@ -83,4 +83,4 @@ Prefect Agent application bundle | serviceAccount.name | string | `""` | the name of the ServiceAccount to use. if not set and create is true, a name is generated using the common.names.fullname template | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/prefect-server/README.md b/charts/prefect-server/README.md index 703c8a4..fddf0ec 100644 --- a/charts/prefect-server/README.md +++ b/charts/prefect-server/README.md @@ -228,4 +228,4 @@ prefect-server: | serviceAccount.name | string | `""` | the name of the ServiceAccount to use. if not set and create is true, a name is generated using the common.names.fullname template | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/prefect-worker/README.md b/charts/prefect-worker/README.md index 2d29a9d..1e7878e 100644 --- a/charts/prefect-worker/README.md +++ b/charts/prefect-worker/README.md @@ -326,4 +326,4 @@ Please note that configuring the template via `baseJobTemplate.existingConfigMap | worker.tolerations | list | `[]` | tolerations for worker pods assignment | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/prometheus-prefect-exporter/README.md b/charts/prometheus-prefect-exporter/README.md index 192d23a..e507bd9 100644 --- a/charts/prometheus-prefect-exporter/README.md +++ b/charts/prometheus-prefect-exporter/README.md @@ -62,6 +62,7 @@ Shoutout to @ialejandro for the original work on this chart! |-----|------|---------|-------------| | affinity | object | `{}` | Affinity for pod assignment | | autoscaling | object | `{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}` | Autoscaling with CPU or memory utilization percentage | +| csrfAuth | bool | `false` | Enable CSRF authentication (Only set to true if Prefect Server has CSRF enabled) | | env | object | `{}` | Environment variables to configure application | | fullnameOverride | string | `""` | String to fully override common.names.fullname template | | image | object | `{"pullPolicy":"IfNotPresent","repository":"prefecthq/prometheus-prefect-exporter","tag":"1.1.0"}` | Image registry | @@ -91,4 +92,4 @@ Shoutout to @ialejandro for the original work on this chart! | tolerations | list | `[]` | Tolerations for pod assignment | ---------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1) +Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/prometheus-prefect-exporter/templates/deployment.yaml b/charts/prometheus-prefect-exporter/templates/deployment.yaml index cd49057..090ec14 100644 --- a/charts/prometheus-prefect-exporter/templates/deployment.yaml +++ b/charts/prometheus-prefect-exporter/templates/deployment.yaml @@ -63,6 +63,10 @@ spec: env: - name: PREFECT_API_URL value: {{ .Values.prefectApiUrl }} + {{- if .Values.csrfAuth }} + - name: PREFECT_CSRF_ENABLED + value: "True" + {{- end }} {{- if .Values.env }} {{- range $key, $value := .Values.env }} - name: {{ $key | upper }} diff --git a/charts/prometheus-prefect-exporter/values.schema.json b/charts/prometheus-prefect-exporter/values.schema.json index e3ccc55..0102031 100644 --- a/charts/prometheus-prefect-exporter/values.schema.json +++ b/charts/prometheus-prefect-exporter/values.schema.json @@ -72,6 +72,11 @@ "title": "Prefect API URL", "description": "Prefect API URL" }, + "csrfAuth": { + "type": "boolean", + "title": "CSRF Auth", + "description": "Enable CSRF auth" + }, "env": { "type": "object", "title": "Environment Variables", diff --git a/charts/prometheus-prefect-exporter/values.yaml b/charts/prometheus-prefect-exporter/values.yaml index c854566..c4f49d1 100644 --- a/charts/prometheus-prefect-exporter/values.yaml +++ b/charts/prometheus-prefect-exporter/values.yaml @@ -29,6 +29,9 @@ serviceAccount: # -- Prefect API URL to connect to for metrics prefectApiUrl: http://prefect-server.prefect.svc.cluster.local:4200/api + +# -- Enable CSRF authentication (Only set to true if Prefect Server has CSRF enabled) +csrfAuth: false # -- Environment variables to configure application env: {} # Plain vars