Skip to content

Delete config secret when listener pod gets deleted #4033

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

Merged
merged 7 commits into from
Jun 11, 2025

Conversation

hsmade
Copy link
Contributor

@hsmade hsmade commented Apr 11, 2025

When the GitHub token gets updated, and the old one expires, the listener pod dies. Only to be recreated with the existing listener config that holds the now-expired token. This PR fixes that by deleting the config secret as well, so the reconciler recreates it with the updated token.

Fixes #4029

This should fix actions#4029.
When the github token gets updated, and the old one expires, the listener pod dies. Only to be recreated with the existing listener config that holds the now expired token.
This PR fixes that by deleting the config secret as well, so the reconciler recreates it with the updated token.
Copy link
Collaborator

@nikola-jokic nikola-jokic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add this case in the switch and add the controller test :)

@nikola-jokic nikola-jokic added the gha-runner-scale-set Related to the gha-runner-scale-set mode label May 8, 2025
@nikola-jokic nikola-jokic dismissed their stale review June 4, 2025 07:47

applied suggestion

@nikola-jokic nikola-jokic merged commit d4af75d into actions:master Jun 11, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gha-runner-scale-set Related to the gha-runner-scale-set mode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scaleset listener's config is not deleted on cleanup
4 participants