-
Notifications
You must be signed in to change notification settings - Fork 209
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
Design document for reading status properties of other resources #2489
Design document for reading status properties of other resources #2489
Conversation
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
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.
I've made comments reflecting all my notes; many of these overlap our discussion in the review meeting.
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
The idea here is that `UserManagedIdentity` would allow exporting a Secret or ConfigMap value, and then the `RoleAssignment` resource would support (optionally) sourcing from that store instead of having the value hardcoded. | ||
The main difference between this and what we have now is for references we can't replace the entire reference with a `SecretReference`, we need a new type like `OptionalSecretReference`: | ||
|
||
We would only opt a select few resource properties into this `OptionalSecretReference` structure. We could (via serialization magic) support new properties adopting this shape in a nonbreaking way, in case there are properties we didn't think |
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.
Task does this kind of serialization magic in a number of places - one example is around variables where they can be directly defined:
vars:
VAR: Hello!
or dynamically defined:
vars:
GIT_COMMIT:
sh: git log -n 1 --format=%h
We can reference the Task implementation for an approach.
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Show resolved
Hide resolved
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.
LGTM. Would poll in for option 3 too.
8c36087
to
4ef1cf7
Compare
/ok-to-test sha=4ef1cf7 |
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
docs/hugo/content/design/ADR-2022-09-Reading-Status-Properties-Of-Resources.md
Outdated
Show resolved
Hide resolved
4ef1cf7
to
dbf7e96
Compare
/ok-to-test sha=dbf7e96 |
/ok-to-test sha=fac33ae |
If applicable: