Skip to content

Commit cde331b

Browse files
Merge pull request #657 from stackabletech/update-release-branch
Update release branch
2 parents 608dbe1 + 7b8b6ba commit cde331b

File tree

11 files changed

+35
-38
lines changed

11 files changed

+35
-38
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
### Fixed
8+
9+
- BREAKING: Use distinct ServiceAccounts for the Stacklets, so that multiple Stacklets can be
10+
deployed in one namespace. Existing Stacklets will use the newly created ServiceAccounts after
11+
restart ([#656]).
12+
13+
[#656]: https://github.com/stackabletech/opa-operator/pull/656
14+
715
## [24.11.0] - 2024-11-18
816

917
### Added

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.nix

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ semver = "1.0"
3333
serde = { version = "1.0", features = ["derive"] }
3434
serde_json = "1.0"
3535
snafu = "0.8"
36-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.80.0" }
36+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "stackable-operator-0.82.0" }
3737
strum = { version = "0.26", features = ["derive"] }
3838
tar = "0.4"
3939
tokio = { version = "1.40", features = ["full"] }

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ SHELL=/usr/bin/env bash -euo pipefail
2929
render-readme:
3030
scripts/render_readme.sh
3131

32+
render-docs:
33+
scripts/docs_templating.sh
34+
3235
## Docker related targets
3336
docker-build:
3437
docker build --force-rm --build-arg VERSION=${VERSION} -t "${DOCKER_REPO}/${ORGANIZATION}/${OPERATOR_NAME}:${VERSION}-${ARCH}" -f docker/Dockerfile .

crate-hashes.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/helm/opa-operator/templates/roles-opa-builder.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: {{ .Release.Name }}-opa-bundle-builder-clusterrole
55
# This role is used for the OPA bundle builder.
66
# It needs to read ConfigMaps and watch ConfigMaps for changes,
7-
# because the Rego rules that are used to build the bundles are
7+
# because the Rego rules that are used to build the bundles are
88
# stored in the ConfigMaps.
99
rules:
1010
- apiGroups:

docs/modules/opa/examples/getting_started/getting_started.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
set -euo pipefail
33

44
# DO NOT EDIT THE SCRIPT
5-
# Instead, update the j2 template, and regenerate it for dev:
6-
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
7-
# helm:
8-
# repo_name: stackable-dev
9-
# repo_url: https://repo.stackable.tech/repository/helm-dev/
10-
# versions:
11-
# opa: 0.0.0-dev
12-
# EOF
5+
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.
136

147
# This script contains all the code snippets from the guide, as well as some assert tests
158
# to test if the instructions in the guide work. The user *could* use it, but it is intended

docs/modules/opa/examples/getting_started/getting_started.sh.j2

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
set -euo pipefail
33

44
# DO NOT EDIT THE SCRIPT
5-
# Instead, update the j2 template, and regenerate it for dev:
6-
# cat <<EOF | jinja2 --format yaml getting_started.sh.j2 -o getting_started.sh
7-
# helm:
8-
# repo_name: stackable-dev
9-
# repo_url: https://repo.stackable.tech/repository/helm-dev/
10-
# versions:
11-
# opa: 0.0.0-dev
12-
# EOF
5+
# Instead, update the j2 template, and regenerate it for dev with `make render-docs`.
136

147
# This script contains all the code snippets from the guide, as well as some assert tests
158
# to test if the instructions in the guide work. The user *could* use it, but it is intended

rust/operator-binary/src/controller.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ use stackable_operator::{
3838
apps::v1::{DaemonSet, DaemonSetSpec},
3939
core::v1::{
4040
ConfigMap, EmptyDirVolumeSource, EnvVar, HTTPGetAction, Probe, SecretVolumeSource,
41-
Service, ServicePort, ServiceSpec,
41+
Service, ServiceAccount, ServicePort, ServiceSpec,
4242
},
4343
},
4444
apimachinery::pkg::{apis::meta::v1::LabelSelector, util::intstr::IntOrString},
@@ -457,7 +457,7 @@ pub async fn reconcile_opa(
457457
build_rbac_resources(opa, APP_NAME, required_labels).context(BuildRbacResourcesSnafu)?;
458458

459459
let rbac_sa = cluster_resources
460-
.add(client, rbac_sa)
460+
.add(client, rbac_sa.clone())
461461
.await
462462
.context(ApplyServiceAccountSnafu)?;
463463
cluster_resources
@@ -495,7 +495,7 @@ pub async fn reconcile_opa(
495495
&merged_config,
496496
&ctx.opa_bundle_builder_image,
497497
&ctx.user_info_fetcher_image,
498-
&rbac_sa.name_any(),
498+
&rbac_sa,
499499
)?;
500500

501501
cluster_resources
@@ -740,7 +740,7 @@ fn build_server_rolegroup_daemonset(
740740
merged_config: &OpaConfig,
741741
opa_bundle_builder_image: &str,
742742
user_info_fetcher_image: &str,
743-
sa_name: &str,
743+
service_account: &ServiceAccount,
744744
) -> Result<DaemonSet> {
745745
let role = opa.role(opa_role);
746746
let role_group = opa
@@ -932,7 +932,7 @@ fn build_server_rolegroup_daemonset(
932932
.build(),
933933
)
934934
.context(AddVolumeSnafu)?
935-
.service_account_name(sa_name)
935+
.service_account_name(service_account.name_any())
936936
.security_context(
937937
PodSecurityContextBuilder::new()
938938
.run_as_user(1000)

0 commit comments

Comments
 (0)