uselagoon / build-deploy-tool

Tool to generate build resources
2 stars 5 forks source link

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

Closed shreddedbacon closed 9 months ago

shreddedbacon commented 9 months ago

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.