Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Reconciling ServiceAccounts improvements#1354

Merged
odacremolbap merged 1 commit into
triggermesh:mainfrom
odacremolbap:fix/keep-sa-secrets-when-synch
Mar 8, 2023
Merged

Reconciling ServiceAccounts improvements#1354
odacremolbap merged 1 commit into
triggermesh:mainfrom
odacremolbap:fix/keep-sa-secrets-when-synch

Conversation

@odacremolbap

Copy link
Copy Markdown
Member

ServiceAccounts reconciliation might happen more often than needed, and might also remove externally added secrets.

Fixes:

  • Multitenant components will add a list of owners to the ServiceAccount. If the owner list composed at the TriggerMesh controller does not match the order in which the list already exist, it will trigger a reconciliation. We are ordering the owner list by name to make sure that we don't trigger more syncs than we need.

  • Some environments are configured to automatically add Secrets or ImagePullSecrets to ServiceAccounts. A reconciliation would make such ServiceAccounts remove ImagePullSecrets and Secrets whose pattern are not those of a kubernetes token.

@odacremolbap odacremolbap requested a review from a team March 8, 2023 12:33
@odacremolbap odacremolbap self-assigned this Mar 8, 2023
@odacremolbap odacremolbap merged commit db0323b into triggermesh:main Mar 8, 2023
@odacremolbap odacremolbap deleted the fix/keep-sa-secrets-when-synch branch March 8, 2023 12:53
odacremolbap pushed a commit that referenced this pull request Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants