Skip to content

Commit 87703c7

Browse files
committed
fix: remove security mode from samples
This commit removes the security mode from the samples. The security mode was set to none by default and when the operator was deployed using default spec on OpenShift it was deployed with the security mode set to none. Ideally we shouldn't have set this in samples so that the operator can be deployed with the default security mode i.e rbac Signed-off-by: vprashar2929 <[email protected]>
1 parent 19138c7 commit 87703c7

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

bundle/manifests/kepler-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ metadata:
1919
"kepler": {
2020
"config": {
2121
"logLevel": "info"
22-
},
23-
"deployment": {
24-
"security": {
25-
"mode": "none"
26-
}
2722
}
2823
}
2924
}
@@ -32,7 +27,7 @@ metadata:
3227
capabilities: Seamless Upgrades
3328
categories: Monitoring
3429
containerImage: quay.io/sustainable_computing_io/kepler-operator:0.22.3
35-
createdAt: "2025-10-08T12:22:16Z"
30+
createdAt: "2025-10-09T13:54:51Z"
3631
description: Deploys and Manages Kepler on Kubernetes
3732
operators.operatorframework.io/builder: operator-sdk-v1.39.1
3833
operators.operatorframework.io/internal-objects: |-

config/samples/kepler.system_v1alpha1_powermonitor.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ spec:
1010
kepler:
1111
config:
1212
logLevel: info
13-
deployment:
14-
security:
15-
mode: none
13+
# deployment:
1614
# secrets:
1715
# - name: my-tls-secret
1816
# mountPath: /etc/kepler/secrets/tls

tests/run-e2e.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ create_power_monitor() {
163163
"$POWERMONITOR_RELEASED_CR"
164164

165165
info "Setting the Security mode as none for tests"
166-
yq eval -i '.spec.kepler.deployment.security.mode = "none"' "$POWERMONITOR_RELEASED_CR"
166+
yq eval -i '.spec.kepler.deployment.security.mode = "none"' \
167+
"$POWERMONITOR_RELEASED_CR"
167168

168169
cat "$POWERMONITOR_RELEASED_CR"
169170

0 commit comments

Comments
 (0)