Closed rocketeerbkw closed 1 year ago
The documentation for the k8s API used in this PR is here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#manually-create-an-api-token-for-a-serviceaccount
Could we put the creation of this secret behind a flag so that people have to understand the step they are taking with this? e.g. maybe a top-level createLegacySSHServiceAccountToken: false
in the values file with an explanatory comment?
Superseded by https://github.com/uselagoon/lagoon-charts/pull/608
In order to keep the legacy SSH service in lagoon-core working in recent k8s clusters, a non-expiring token is needed. A sufficiently scoped role and binding already exists for the ssh-portal, so this PR adds the service account token secret that can be used in lagoon-core. Since this is needed even if ssh-portal isn't used, the auth related resources are changed to always be created, even if the ssh-portal service isn't enabled.