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

refactor: prefer the service account token over the older deployer token #225

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

shreddedbacon
Copy link
Member

Small refactor to the way the service account token is determined. This falls back to the older deployer token that was created prior to kubernetes 1.24, and prefers the service account token that is generated on demand by the build pods.

This reduces the possibility of the following warning appearing in build logs causing confusion

Warning: Use tokens from the TokenRequest API or manually created secret-based tokens instead of auto-generated secret-based tokens.

Copy link
Contributor

@bomoko bomoko left a comment

Choose a reason for hiding this comment

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

MERGE! :)

@shreddedbacon shreddedbacon merged commit a7a6ad3 into main Sep 14, 2023
2 checks passed
@shreddedbacon shreddedbacon deleted the fallback-to-deployer-token branch September 14, 2023 01:04
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.

2 participants