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

Fix operator panic when spec.hashiCorpVault.credential.serviceAccount is not set #5180

Merged

Conversation

dttung2905
Copy link
Contributor

@dttung2905 dttung2905 commented Nov 12, 2023

Hi team,
This PR fixes the issue where the operator panics when spec.hashiCorpVault.credential.serviceAccount is not set
There are two ways we can fix this:

  • One way is to throw out error
  • Another way is to set a default value to spec.hashiCorpVault.credential.serviceAccount=/var/run/secrets/kubernetes.io/serviceaccount/token

Personally I prefer the second option. Please let me know your preference so that I can make changes to the documentation repo accordingly.

Checklist

Fixes #4964

@dttung2905 dttung2905 requested a review from a team as a code owner November 12, 2023 23:31
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

While you are waiting, make sure to:

Learn more about:

@dttung2905
Copy link
Contributor Author

I noticed the ci failure. Will take a look at it tmr when I have time

CHANGELOG.md Outdated Show resolved Hide resolved
@dttung2905 dttung2905 force-pushed the fix-operator-panic-triggerauth-vault-value branch from 8d1b4d1 to 760befb Compare November 13, 2023 21:06
@zroubalik
Copy link
Member

zroubalik commented Nov 16, 2023

/run-e2e internal
Update: You can check the progress here

@zroubalik zroubalik enabled auto-merge (squash) November 16, 2023 15:52
@zroubalik
Copy link
Member

zroubalik commented Nov 16, 2023

/run-e2e internal
Update: You can check the progress here

Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
auto-merge was automatically disabled November 16, 2023 19:26

Head branch was pushed to by a user without write access

@dttung2905 dttung2905 force-pushed the fix-operator-panic-triggerauth-vault-value branch from 3d7fdd1 to 0159b94 Compare November 16, 2023 19:26
@dttung2905
Copy link
Contributor Author

@zroubalik I have just rebased the PR. When you are free, could you help to run the e2e test again ? 🙏

@zroubalik
Copy link
Member

zroubalik commented Nov 16, 2023

/run-e2e internal
Update: You can check the progress here

@zroubalik zroubalik merged commit 1c560ae into kedacore:main Nov 20, 2023
19 checks passed
yoongon pushed a commit to yoongon/keda that referenced this pull request Nov 24, 2023
… is not set (kedacore#5180)

Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
Signed-off-by: Yoon Park <yoongon.park@gmail.com>
toniiiik pushed a commit to toniiiik/keda that referenced this pull request Jan 15, 2024
… is not set (kedacore#5180)

Signed-off-by: dttung2905 <ttdao.2015@accountancy.smu.edu.sg>
Signed-off-by: anton.lysina <alysina@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TriggerAuthentication & Vault Integration - panic when missing credentials
2 participants