diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bbf5e0d..525e4cc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,11 +20,15 @@ - Invalid `SupersetCluster`, `DruidConnection` or `AuthenticationClass` objects don't stop the operator from reconciling ([#551]). - Fix OIDC endpoint construction in case the `rootPath` does have a trailing slash ([#569]). +- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be + deployed in one namespace. Existing Stacklets will use the newly created ServiceAccounts after + restart ([#568]). [#528]: https://github.com/stackabletech/superset-operator/pull/528 [#530]: https://github.com/stackabletech/superset-operator/pull/530 [#549]: https://github.com/stackabletech/superset-operator/pull/549 [#551]: https://github.com/stackabletech/superset-operator/pull/551 +[#568]: https://github.com/stackabletech/superset-operator/pull/568 [#569]: https://github.com/stackabletech/superset-operator/pull/569 ## [24.7.0] - 2024-07-24 diff --git a/tests/templates/kuttl/druid-connection/20-assert.yaml b/tests/templates/kuttl/druid-connection/20-assert.yaml index b563e422..2fd2044c 100644 --- a/tests/templates/kuttl/druid-connection/20-assert.yaml +++ b/tests/templates/kuttl/druid-connection/20-assert.yaml @@ -8,7 +8,26 @@ timeout: 300 apiVersion: apps/v1 kind: StatefulSet metadata: - name: superset-node-default + name: test-superset-node-default status: readyReplicas: 1 replicas: 1 +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: test-superset-serviceaccount +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: test-superset-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: superset-clusterrole +subjects: +- kind: ServiceAccount + name: test-superset-serviceaccount +- kind: ServiceAccount + name: superset-serviceaccount diff --git a/tests/templates/kuttl/druid-connection/20-install-superset.yaml.j2 b/tests/templates/kuttl/druid-connection/20-install-superset.yaml.j2 index 7d6a166c..925dcdbd 100644 --- a/tests/templates/kuttl/druid-connection/20-install-superset.yaml.j2 +++ b/tests/templates/kuttl/druid-connection/20-install-superset.yaml.j2 @@ -22,7 +22,7 @@ stringData: apiVersion: superset.stackable.tech/v1alpha1 kind: SupersetCluster metadata: - name: superset + name: test-superset spec: image: productVersion: "{{ test_scenario['values']['superset'] }}" diff --git a/tests/templates/kuttl/druid-connection/30-assert.yaml b/tests/templates/kuttl/druid-connection/30-assert.yaml index 65804087..f37f6817 100644 --- a/tests/templates/kuttl/druid-connection/30-assert.yaml +++ b/tests/templates/kuttl/druid-connection/30-assert.yaml @@ -11,3 +11,20 @@ metadata: name: superset-druid-connection status: condition: Pending +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: superset-sa +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: superset-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: superset-clusterrole +subjects: +- kind: ServiceAccount + name: superset-sa diff --git a/tests/templates/kuttl/druid-connection/30-install-druid-connection.yaml b/tests/templates/kuttl/druid-connection/30-install-druid-connection.yaml index 3beafebe..41f44bba 100644 --- a/tests/templates/kuttl/druid-connection/30-install-druid-connection.yaml +++ b/tests/templates/kuttl/druid-connection/30-install-druid-connection.yaml @@ -11,6 +11,6 @@ metadata: name: superset-druid-connection spec: superset: - name: superset + name: test-superset druid: name: derby-druid