Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
- BREAKING: `configOverrides` now only accepts the supported config file name `superset_config.py`. Previously arbitrary keys were silently accepted but ignored ([#719]).
- Bump `stackable-operator` to 0.110.0 and `kube` to 3.1.0 ([#719]).
- Support setting `clientAuthenticationMethod` for OIDC authentication. The value is passed through to the Flask-AppBuilder config as `token_endpoint_auth_method` ([#719]).
- BREAKING: Rename `EXPERIMENTAL_FILE_HEADER` and `EXPERIMENTAL_FILE_FOOTER` in `superset_config.py` for arbitrary python code to `FILE_HEADER` and `FILE_FOOTER` ([#721]).
Comment thread
xeniape marked this conversation as resolved.
Outdated

[#717]: https://github.com/stackabletech/superset-operator/pull/717
[#719]: https://github.com/stackabletech/superset-operator/pull/719
[#721]: https://github.com/stackabletech/superset-operator/pull/721

## [26.3.0] - 2026-03-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ For a full list of configuration options we refer to the
https://github.com/apache/superset/blob/master/superset/config.py[main config file for Superset].

As Superset can be configured with python code too, arbitrary code can be added to the `superset_conf.py`.
You can use either `EXPERIMENTAL_FILE_HEADER` to add code to the top or `EXPERIMENTAL_FILE_FOOTER` to add to the bottom.
You can use either `FILE_HEADER` to add code to the top or `FILE_FOOTER` to add to the bottom.

IMPORTANT: This is an experimental feature

Expand All @@ -69,9 +69,9 @@ nodes:
configOverrides:
superset_config.py:
CSV_EXPORT: "{'encoding': 'utf-8'}"
EXPERIMENTAL_FILE_HEADER: |
FILE_HEADER: |
from modules.my_module import my_class
EXPERIMENTAL_FILE_FOOTER: |
FILE_FOOTER: |
import logging
from superset.security import SupersetSecurityManager

Expand Down
6 changes: 3 additions & 3 deletions tests/templates/kuttl/smoke/30-install-superset.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ spec:
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
configOverrides:
superset_config.py:
EXPERIMENTAL_FILE_HEADER: |
FILE_HEADER: |
COMMON_HEADER_VAR = "role-value"
ROLE_HEADER_VAR = "role-value"
EXPERIMENTAL_FILE_FOOTER: |
FILE_FOOTER: |
ROLE_FOOTER_VAR = "role-value"
roleGroups:
default:
replicas: 1
configOverrides:
superset_config.py:
EXPERIMENTAL_FILE_HEADER: |
FILE_HEADER: |
COMMON_HEADER_VAR = "group-value"
envOverrides:
COMMON_VAR: group-value # overrides role value
Expand Down
8 changes: 4 additions & 4 deletions tests/templates/kuttl/smoke/31-assert.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 600
timeout: 300
commands:
#
# Test envOverrides
Expand All @@ -16,9 +16,9 @@ commands:
)

# Config Test Assertions
echo "$SUPERSET_CONFIG" | grep 'COMMON_HEADER_VAR = "group-value"'
echo "$SUPERSET_CONFIG" | grep 'ROLE_FOOTER_VAR = "role-value"'
echo "$SUPERSET_CONFIG" | grep -v 'ROLE_HEADER_VAR = "role-value"'
echo "$SUPERSET_CONFIG" | grep '^COMMON_HEADER_VAR = "group-value"'
echo "$SUPERSET_CONFIG" | grep '^ROLE_FOOTER_VAR = "role-value"'
echo "$SUPERSET_CONFIG" | grep -v '^ROLE_HEADER_VAR = "role-value"'

# STS Spec Test Data
SUPERSET_NODE_DEFAULT_STS=$(kubectl -n "$NAMESPACE" get sts superset-node-default -o yaml)
Expand Down
Loading