Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise memory limits to 2Gi and other test fixes #468

Merged
merged 5 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,24 @@
- Add support for OpenID Connect ([#423]).
- Support versions `2.1.3`, `3.0.3`, `3.1.0` ([#457]).

### Changed

- Raise memory requests and limits for Superset pods to 2Gi ([#468]).

### Fixed

- BREAKING: Fixed various issues in the CRD structure. `clusterConfig.credentialsSecret` is now mandatory ([#429]).

### Removed

- Rmoved support for version `2.1.0` ([#457]).
- Removed support for version `2.1.0` ([#457]).

[#423]: https://github.com/stackabletech/superset-operator/pull/423
[#429]: https://github.com/stackabletech/superset-operator/pull/429
[#431]: https://github.com/stackabletech/superset-operator/pull/431
[#448]: https://github.com/stackabletech/superset-operator/pull/448
[#457]: https://github.com/stackabletech/superset-operator/pull/457
[#468]: https://github.com/stackabletech/superset-operator/pull/468

## [23.11.0] - 2023-11-24

Expand Down
2 changes: 1 addition & 1 deletion rust/crd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ impl SupersetConfig {
max: Some(Quantity("1200m".to_owned())),
},
memory: MemoryLimitsFragment {
limit: Some(Quantity("1000Mi".to_owned())),
limit: Some(Quantity("2Gi".to_owned())),
runtime_limits: NoRuntimeLimitsFragment {},
},
storage: SupersetStorageConfigFragment {},
Expand Down
2 changes: 2 additions & 0 deletions tests/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ releases:
operatorVersion: 0.0.0-dev
listener:
operatorVersion: 0.0.0-dev
druid:
operatorVersion: 0.0.0-dev
superset:
operatorVersion: 0.0.0-dev
6 changes: 6 additions & 0 deletions tests/templates/kuttl/ldap/2-install-openldap.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ commands:
app.kubernetes.io/name: openldap
spec:
serviceAccountName: "druid-ldap-sa"
#
# The security context below is necessary to avoid the following error on OpenShift:
# /opt/bitnami/scripts/openldap/setup.sh: line 102: /opt/bitnami/openldap/sbin/slappasswd: Operation not permitted
#
securityContext:
fsGroup: 1000
containers:
- name: openldap
image: docker.io/bitnami/openldap:2.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: python
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: python
{% if test_scenario['values']['openshift'] == 'true' %}
rules:
- apiGroups: ["security.openshift.io"]
resources: ["securitycontextconstraints"]
resourceNames: ["privileged"]
verbs: ["use"]
{% endif %}
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: python
subjects:
- kind: ServiceAccount
name: python
roleRef:
kind: Role
name: python
apiGroup: rbac.authorization.k8s.io
---
apiVersion: kuttl.dev/v1beta1
kind: TestStep
metadata:
Expand All @@ -21,6 +50,7 @@ spec:
labels:
app: python
spec:
serviceAccountName: python
securityContext:
fsGroup: 1000
containers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ spec:
labels:
app: $INSTANCE_NAME
spec:
serviceAccountName: keycloak
containers:
- name: keycloak
image: quay.io/keycloak/keycloak:23.0.4
Expand Down Expand Up @@ -138,3 +139,32 @@ spec:
server:
caCert:
secretClass: tls
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: keycloak
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: keycloak
{% if test_scenario['values']['openshift'] == 'true' %}
rules:
- apiGroups: ["security.openshift.io"]
resources: ["securitycontextconstraints"]
resourceNames: ["privileged"]
verbs: ["use"]
{% endif %}
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: keycloak
subjects:
- kind: ServiceAccount
name: keycloak
roleRef:
kind: Role
name: keycloak
apiGroup: rbac.authorization.k8s.io
Loading