notification-controller icon indicating copy to clipboard operation
notification-controller copied to clipboard

Add alternative key name for the commit status secret

Open stefanprodan opened this issue 1 year ago • 1 comments

Currently we expect for the GitHub/GitLab/etc PAT to be set under the token key in the Kubernetes Secret referenced in the Provider https://fluxcd.io/flux/components/notification/providers/#github

If token is not found in the secret, but there is a password field, we should be using it instead. The reason being that, when using a PAT for flux bootstrap --token-auth, the PAT is set in the password field. So instead of creating a new secret with the same token for the Provider, users should be able to reuse the secret created by bootstrap.

stefanprodan avatar Feb 20 '24 08:02 stefanprodan

Hello Stefan, I would like to work on this issue 🙂

sarataha avatar Feb 26 '24 15:02 sarataha