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

Keda scale error with optional secrets or configmaps #3568

Closed
coolibre opened this issue Aug 19, 2022 · 0 comments · Fixed by #3694
Closed

Keda scale error with optional secrets or configmaps #3568

coolibre opened this issue Aug 19, 2022 · 0 comments · Fixed by #3694
Assignees
Labels
bug Something isn't working

Comments

@coolibre
Copy link

coolibre commented Aug 19, 2022

Report

Keda operator reports

"error": "error resolving secrets for ScaleTarget: error resolving secret name &SecretKeySelector{LocalObjectReference:LocalObjectReference{Name:aws-timestream,},Key:AWS_TIMESTREAM_SECRETKEY,Optional:*true,

when optional secret is defined in scaledjob.yaml but the secret is not provided in the currently created kubernetes environment because its optional.

             - name: AWS_TIMESTREAM_SECRETKEY
                valueFrom:
                  secretKeyRef:
                    name: aws-timestream
                    key: AWS_TIMESTREAM_SECRETKEY
                    optional: true

Expected Behavior

The scaler should ignore the missing secret or configmap and scale a job.

Actual Behavior

The scaler searches for the optional secret or configmap and raises an error

Steps to Reproduce the Problem

  1. Create a Scaled Job with optional configmapKeyRef or secretKeyRef
  2. Trigger Keda scaler with message

Logs from KEDA operator

"error": "error resolving secrets for ScaleTarget: error resolving secret name &SecretKeySelector{LocalObjectReference:LocalObjectReference{Name:aws-timestream,},Key:AWS_TIMESTREAM_SECRETKEY,Optional:*true,

KEDA Version

2.8.0

Kubernetes Version

1.21

Platform

Any

Scaler Details

Redis Lists

Anything else?

No response

@coolibre coolibre added the bug Something isn't working label Aug 19, 2022
@JorTurFer JorTurFer added help wanted Looking for support from community Hacktoberfest labels Sep 26, 2022
@JorTurFer JorTurFer self-assigned this Sep 26, 2022
@JorTurFer JorTurFer removed help wanted Looking for support from community Hacktoberfest labels Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants