Skip to content

Conversation

Delgon
Copy link
Contributor

@Delgon Delgon commented Oct 1, 2024

In order not to use the 'oc cli'. We switch the creation of the token of the prometheus service account via the creation of a dedicated secret and we retrieve it via the ansible k8s_info module.

Since Openshit 4.16, the creation of an SA no longer automatically generates a token. So we have to create it.

@whitfiea
Copy link
Member

whitfiea commented Oct 8, 2024

@IanBoden @twhart can you review this PR as it has come in with the existing work related to support OCP 4.16.

@twhart
Copy link
Contributor

twhart commented Oct 8, 2024

Looks good to me, I ran and tested everything and it works. Looks like creating the secret is also a better way to manage the expiry times on the tokens

@whitfiea whitfiea changed the title Switch Prometheus SA token creation from oc cli to ansible module [patch] Switch Prometheus SA token creation from oc cli to ansible module Oct 8, 2024
@whitfiea whitfiea merged commit b4c3c89 into ibm-mas:master Oct 8, 2024
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.

3 participants