From 6da9be2d65f6218000df188ce2bd2c5942822612 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 2 Jul 2025 02:20:39 -0400 Subject: [PATCH 1/6] refactor: use chart values directly instead of attempting to template out cron-job and keda files --- .../scheduler-k3s/templates/chart/cron-job.yaml | 8 ++++++-- .../scheduler-k3s/templates/chart/keda-secret.yaml | 2 +- .../chart/keda-trigger-authentication.yaml | 2 +- plugins/scheduler-k3s/triggers.go | 14 +++++++------- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/plugins/scheduler-k3s/templates/chart/cron-job.yaml b/plugins/scheduler-k3s/templates/chart/cron-job.yaml index 412e57916..1a04c31d2 100644 --- a/plugins/scheduler-k3s/templates/chart/cron-job.yaml +++ b/plugins/scheduler-k3s/templates/chart/cron-job.yaml @@ -1,5 +1,8 @@ -{{- $processName := "CRON_ID" }} -{{- $config := index .Values.processes "CRON_ID" }} +{{- $processName, $config := range .Values.processes }} +# Only process cron jobs +{{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }} +{{- continue }} +{{- end }} --- apiVersion: batch/v1 kind: CronJob @@ -113,3 +116,4 @@ spec: successfulJobsHistoryLimit: 10 suspend: false timeZone: Etc/UTC +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml index 3e40bcc62..83177b2c8 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml @@ -1,5 +1,5 @@ {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} -{{- $config := index .Values.global.keda.authentications "AUTH_NAME" }} +{{- $authName, $config := range .Values.global.keda.authentications }} --- apiVersion: v1 kind: Secret diff --git a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml index c39b94b0a..fc40fa6be 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml @@ -1,5 +1,5 @@ {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} -{{- $config := index .Values.global.keda.authentications "AUTH_NAME" }} +{{- $authName, $config := range .Values.global.keda.authentications }} --- apiVersion: keda.sh/v1alpha1 kind: TriggerAuthentication diff --git a/plugins/scheduler-k3s/triggers.go b/plugins/scheduler-k3s/triggers.go index d81094cbe..89827cdeb 100644 --- a/plugins/scheduler-k3s/triggers.go +++ b/plugins/scheduler-k3s/triggers.go @@ -368,7 +368,7 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e Processes: map[string]ProcessValues{}, } - for authName := range kedaValues.Authentications { + if len(kedaValues.Authentications) > 0 { templateFiles := []string{"keda-secret", "keda-trigger-authentication"} for _, templateName := range templateFiles { b, err := templates.ReadFile(fmt.Sprintf("templates/chart/%s.yaml", templateName)) @@ -376,9 +376,8 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e return fmt.Errorf("Error reading %s template: %w", templateName, err) } - filename := filepath.Join(chartDir, "templates", fmt.Sprintf("%s-%s.yaml", templateName, authName)) - contents := strings.ReplaceAll(string(b), "AUTH_NAME", authName) - err = os.WriteFile(filename, []byte(contents), os.FileMode(0644)) + filename := filepath.Join(chartDir, "templates", fmt.Sprintf("%s.yaml", templateName)) + err = os.WriteFile(filename, b, os.FileMode(0644)) if err != nil { return fmt.Errorf("Error writing %s template: %w", templateName, err) } @@ -613,15 +612,16 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e Volumes: processVolumes, } values.Processes[cronEntry.ID] = processValues + } + if len(cronEntries) > 0 { b, err := templates.ReadFile("templates/chart/cron-job.yaml") if err != nil { return fmt.Errorf("Error reading cron job template: %w", err) } - cronFile := filepath.Join(chartDir, "templates", fmt.Sprintf("cron-job-%s.yaml", cronEntry.ID)) - contents := strings.ReplaceAll(string(b), "CRON_ID", cronEntry.ID) - err = os.WriteFile(cronFile, []byte(contents), os.FileMode(0644)) + cronFile := filepath.Join(chartDir, "templates", "cron-job.yaml") + err = os.WriteFile(cronFile, b, os.FileMode(0644)) if err != nil { return fmt.Errorf("Error writing cron job template: %w", err) } From 1b95e01ea378631d2da1ada5ef8d0f9ed8442bc3 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 4 Jul 2025 01:46:03 -0400 Subject: [PATCH 2/6] fix: move range --- plugins/scheduler-k3s/templates/chart/cron-job.yaml | 2 +- plugins/scheduler-k3s/templates/chart/deployment.yaml | 9 +++++++-- plugins/scheduler-k3s/templates/chart/keda-secret.yaml | 2 +- .../templates/chart/keda-trigger-authentication.yaml | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/plugins/scheduler-k3s/templates/chart/cron-job.yaml b/plugins/scheduler-k3s/templates/chart/cron-job.yaml index 1a04c31d2..cad22ce7c 100644 --- a/plugins/scheduler-k3s/templates/chart/cron-job.yaml +++ b/plugins/scheduler-k3s/templates/chart/cron-job.yaml @@ -1,4 +1,4 @@ -{{- $processName, $config := range .Values.processes }} +{{- range $processName, $config := .Values.processes }} # Only process cron jobs {{- if not (and (hasKey $config "cron") (hasKey $config.cron "id")) }} {{- continue }} diff --git a/plugins/scheduler-k3s/templates/chart/deployment.yaml b/plugins/scheduler-k3s/templates/chart/deployment.yaml index 3bb1d6e64..6d06ec008 100644 --- a/plugins/scheduler-k3s/templates/chart/deployment.yaml +++ b/plugins/scheduler-k3s/templates/chart/deployment.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- $mappings := dict }} {{- if eq $processName "web" }} {{- range $pdx, $port_map := $config.web.port_maps }} @@ -143,3 +147,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml index 83177b2c8..da27a08cc 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml @@ -1,5 +1,5 @@ {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} -{{- $authName, $config := range .Values.global.keda.authentications }} +{{- range $authName, $config := .Values.global.keda.authentications }} --- apiVersion: v1 kind: Secret diff --git a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml index fc40fa6be..2abf309cd 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml @@ -1,5 +1,5 @@ {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} -{{- $authName, $config := range .Values.global.keda.authentications }} +{{- range $authName, $config := .Values.global.keda.authentications }} --- apiVersion: keda.sh/v1alpha1 kind: TriggerAuthentication From c472c2a3c70f91762083132762bd04e829960385 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 4 Jul 2025 02:04:45 -0400 Subject: [PATCH 3/6] refactor use chart values directly instead of attempting to template out cron-job and keda files --- plugins/scheduler-k3s/templates/chart/certificate.yaml | 9 +++++++-- .../templates/chart/https-redirect-middleware.yaml | 9 +++++++-- plugins/scheduler-k3s/templates/chart/ingress-route.yaml | 9 +++++++-- plugins/scheduler-k3s/templates/chart/ingress.yaml | 9 +++++++-- .../templates/chart/keda-http-scaled-object.yaml | 9 +++++++-- .../templates/chart/keda-interceptor-proxy-service.yaml | 9 +++++++-- .../templates/chart/keda-scaled-object.yaml | 9 +++++++-- plugins/scheduler-k3s/templates/chart/service.yaml | 9 +++++++-- plugins/scheduler-k3s/triggers.go | 5 ++--- 9 files changed, 58 insertions(+), 19 deletions(-) diff --git a/plugins/scheduler-k3s/templates/chart/certificate.yaml b/plugins/scheduler-k3s/templates/chart/certificate.yaml index 029230020..a16e03a8a 100644 --- a/plugins/scheduler-k3s/templates/chart/certificate.yaml +++ b/plugins/scheduler-k3s/templates/chart/certificate.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and $config.web.tls.enabled $config.web.domains }} --- apiVersion: cert-manager.io/v1 @@ -34,3 +38,4 @@ spec: - {{ $domain.name }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/https-redirect-middleware.yaml b/plugins/scheduler-k3s/templates/chart/https-redirect-middleware.yaml index 20a3d4429..d81397a53 100644 --- a/plugins/scheduler-k3s/templates/chart/https-redirect-middleware.yaml +++ b/plugins/scheduler-k3s/templates/chart/https-redirect-middleware.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }} --- apiVersion: traefik.io/v1alpha1 @@ -22,3 +26,4 @@ spec: scheme: https permanent: true {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/ingress-route.yaml b/plugins/scheduler-k3s/templates/chart/ingress-route.yaml index 306e4a7a3..01bf6ff76 100644 --- a/plugins/scheduler-k3s/templates/chart/ingress-route.yaml +++ b/plugins/scheduler-k3s/templates/chart/ingress-route.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and $config.web.domains (eq $.Values.global.network.ingress_class "traefik") }} {{- $mappings := dict }} {{- range $pdx, $port_map := $config.web.port_maps }} @@ -53,3 +57,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/ingress.yaml b/plugins/scheduler-k3s/templates/chart/ingress.yaml index 5530525f3..d21247034 100644 --- a/plugins/scheduler-k3s/templates/chart/ingress.yaml +++ b/plugins/scheduler-k3s/templates/chart/ingress.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- $routeToKeda := false }} {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} {{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }} @@ -59,3 +63,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml b/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml index bd761642f..e4d4fdd08 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} {{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }} {{- $mappings := dict }} @@ -51,3 +55,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml b/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml index c12d6411e..ed4575b93 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} {{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}} --- @@ -24,3 +28,4 @@ spec: externalName: keda-add-ons-http-interceptor-proxy.keda.svc.cluster.local {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml b/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml index 24e6ed5e1..9970b1b31 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + {{- if and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }} {{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} --- @@ -42,3 +46,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/service.yaml b/plugins/scheduler-k3s/templates/chart/service.yaml index bf5d3d34b..0b6a02417 100644 --- a/plugins/scheduler-k3s/templates/chart/service.yaml +++ b/plugins/scheduler-k3s/templates/chart/service.yaml @@ -1,5 +1,9 @@ -{{- $processName := "PROCESS_NAME" }} -{{- $config := index .Values.processes "PROCESS_NAME" }} +{{- range $processName, $config := .Values.processes }} +# Skip cron jobs +{{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} +{{- continue }} +{{- end }} + --- apiVersion: v1 kind: Service @@ -28,3 +32,4 @@ spec: app.kubernetes.io/instance: {{ $.Values.global.app_name }}-{{ $processName }} app.kubernetes.io/name: {{ $processName }} app.kubernetes.io/part-of: {{ $.Values.global.app_name }} +{{- end }} diff --git a/plugins/scheduler-k3s/triggers.go b/plugins/scheduler-k3s/triggers.go index 89827cdeb..a228ac048 100644 --- a/plugins/scheduler-k3s/triggers.go +++ b/plugins/scheduler-k3s/triggers.go @@ -534,9 +534,8 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e return fmt.Errorf("Error reading %s template: %w", templateName, err) } - filename := filepath.Join(chartDir, "templates", fmt.Sprintf("%s-%s.yaml", templateName, processType)) - contents := strings.ReplaceAll(string(b), "PROCESS_NAME", processType) - err = os.WriteFile(filename, []byte(contents), os.FileMode(0644)) + filename := filepath.Join(chartDir, "templates", fmt.Sprintf("%s.yaml", templateName)) + err = os.WriteFile(filename, b, os.FileMode(0644)) if err != nil { return fmt.Errorf("Error writing %s template: %w", templateName, err) } From f7800adb68b101dc5fd92521cd0ef78ce75e0a46 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 4 Jul 2025 02:46:23 -0400 Subject: [PATCH 4/6] fix: correct scope for capability checks --- .../templates/chart/keda-http-scaled-object.yaml | 4 +++- .../templates/chart/keda-interceptor-proxy-service.yaml | 2 +- plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml b/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml index e4d4fdd08..be6890a96 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-http-scaled-object.yaml @@ -1,3 +1,4 @@ +{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}} {{- range $processName, $config := .Values.processes }} # Skip cron jobs {{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} @@ -5,7 +6,7 @@ {{- end }} {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} -{{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }} +{{- if and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http") }} {{- $mappings := dict }} {{- range $pdx, $port_map := $config.web.port_maps }} {{- $mappings := set $mappings $port_map.name "true" }} @@ -56,3 +57,4 @@ spec: {{- end }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml b/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml index ed4575b93..4c259c946 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-interceptor-proxy-service.yaml @@ -1,3 +1,4 @@ +{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}} {{- range $processName, $config := .Values.processes }} # Skip cron jobs {{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} @@ -5,7 +6,6 @@ {{- end }} {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} -{{- if .Capabilities.APIVersions.Has "http.keda.sh/v1alpha1" -}} --- kind: Service apiVersion: v1 diff --git a/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml b/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml index 9970b1b31..b6633556f 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-scaled-object.yaml @@ -1,3 +1,4 @@ +{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} {{- range $processName, $config := .Values.processes }} # Skip cron jobs {{- if and (hasKey $config "cron") (hasKey $config.cron "id") }} @@ -5,7 +6,6 @@ {{- end }} {{- if and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda")) }} -{{- if .Capabilities.APIVersions.Has "keda.sh/v1alpha1" -}} --- apiVersion: keda.sh/v1alpha1 kind: ScaledObject From 27dbae3703e34ba64bcf0eebcd8acff915782b40 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 4 Jul 2025 04:24:04 -0400 Subject: [PATCH 5/6] fix: correct scope for capability checks --- plugins/scheduler-k3s/templates/chart/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scheduler-k3s/templates/chart/ingress.yaml b/plugins/scheduler-k3s/templates/chart/ingress.yaml index d21247034..b416c3eab 100644 --- a/plugins/scheduler-k3s/templates/chart/ingress.yaml +++ b/plugins/scheduler-k3s/templates/chart/ingress.yaml @@ -6,7 +6,7 @@ {{- $routeToKeda := false }} {{- if and (eq $processName "web") (and $config.autoscaling (and $config.autoscaling.enabled (eq $config.autoscaling.type "keda"))) }} -{{- if and (.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }} +{{- if and ($.Capabilities.APIVersions.Has "http.keda.sh/v1alpha1") (and $config.autoscaling.http_trigger (eq $config.autoscaling.http_trigger.type "http")) }} {{- $routeToKeda = true }} {{- end }} {{- end }} From 4a891f74bd1b2e2ca36c4eb2f313a5f188d6bd58 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 4 Jul 2025 06:09:03 -0400 Subject: [PATCH 6/6] fix: correct scope for capability checks --- plugins/scheduler-k3s/templates/chart/keda-secret.yaml | 1 + .../templates/chart/keda-trigger-authentication.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml index da27a08cc..e8a3b7aa1 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-secret.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-secret.yaml @@ -21,3 +21,4 @@ data: {{- toYaml . | nindent 2 }} {{- end }} {{- end }} +{{- end }} diff --git a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml index 2abf309cd..bf77542be 100644 --- a/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml +++ b/plugins/scheduler-k3s/templates/chart/keda-trigger-authentication.yaml @@ -26,3 +26,4 @@ spec: parameter: {{ $k }} {{- end }} {{- end }} +{{- end }}