-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(controller)!: queue Stages for Application changes using annotation #2617
Conversation
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
Signed-off-by: Hidde Beydals <[email protected]>
✅ Deploy Preview for docs-kargo-akuity-io ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Signed-off-by: Hidde Beydals <[email protected]>
de0d229
to
6cc2282
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2617 +/- ##
==========================================
- Coverage 51.04% 50.98% -0.07%
==========================================
Files 282 282
Lines 21056 21015 -41
==========================================
- Hits 10748 10714 -34
+ Misses 9635 9630 -5
+ Partials 673 671 -2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Hidde Beydals <[email protected]>
// AnnotationKeyOIDCPrefix is the prefix of an annotation key that can be set on a | ||
// ServiceAccount to associate it with any user authenticated via OIDC and having | ||
// the claim indicated by the full annotation key with any of the values indicated by | ||
// the annotation. The value of the annotation may be either a scalar string value or a | ||
// comma-separated list. | ||
// AnnotationKeyOIDCClaimNamePrefix is the prefix of an annotation key that | ||
// can be set on a ServiceAccount to associate it with any user authenticated | ||
// via OIDC and having the claim indicated by the full annotation key with | ||
// any of the values indicated by the annotation. The value of the annotation | ||
// may be either a scalar string value or a comma-separated list. | ||
AnnotationKeyOIDCClaimNamePrefix = "rbac.kargo.akuity.io/claim." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for fixing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥
…ion (#2617) Signed-off-by: Hidde Beydals <[email protected]> (cherry picked from commit 0e79db7)
Successfully created backport PR for |
Fixes #2593
This addresses the above issue by using the
kargo.akuity.io/authorized-stage
annotation to determine which Stage should be queued for reconciliation when a state transition of the Application occurs.The support for glob expressions in the annotation had to be removed to facilitate this as we require an absolute reference. However, given what people were trying to do with this (see #2540), not allowing this is presumably better to protect people from making this mistake.
I tested this against all the examples in https://github.com/krancour/kargo-examples/tree/for-v0.9.0 (in bulk), and they all eventually reached a healthy state without requiring manual interference.