Skip to content

Commit

Permalink
chart: not patch KEDA objects if autoscaling disabled
Browse files Browse the repository at this point in the history
Fix: #2268

Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 committed Jun 21, 2024
1 parent 2f0f249 commit 904b8ea
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if $.Values.autoscaling.patchObjectFinalizers.enabled }}
{{- if and (eq (include "seleniumGrid.useKEDA" $) "true") $.Values.autoscaling.patchObjectFinalizers.enabled }}
apiVersion: batch/v1
kind: Job
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if $.Values.rbacRole.create }}
{{- if and (eq (include "seleniumGrid.useKEDA" $) "true") $.Values.autoscaling.patchObjectFinalizers.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if $.Values.rbacRoleBinding.create }}
{{- if and (eq (include "seleniumGrid.useKEDA" $) "true") $.Values.autoscaling.patchObjectFinalizers.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
2 changes: 0 additions & 2 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ serviceAccount:

# RBAC settings
rbacRole:
create: true
# nameOverride:
annotations: {}
rules:
Expand All @@ -95,7 +94,6 @@ rbacRole:
verbs: [get, list, patch, update, delete]

rbacRoleBinding:
create: true
# nameOverride:
annotations: {}
roleRef:
Expand Down

0 comments on commit 904b8ea

Please sign in to comment.