-
Notifications
You must be signed in to change notification settings - Fork 98
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(composite): Add support for EnvironmentConfigs #353
Conversation
Signed-off-by: Maximilian Blatt <maximilian.blatt-extern@deutschebahn.com> (external expert on behalf of DB Netz AG)
75c32d0
to
af8e76e
Compare
af8e76e
to
dfd4687
Compare
// TODO(negz): Ask muvaf to explain what this is working around. :) | ||
// TODO(muvaf): temporary workaround. |
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 think @muvaf is on vacation, but I'd still love to know what this is doing. 😄
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 think it was about having empty elements in the array causing problem since the element would be omitted but I'm not 100% sure.
} | ||
filtered = append(filtered, ref) | ||
} | ||
_ = fieldpath.Pave(c.Object).SetValue("spec.resourceRefs", filtered) |
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.
Shouldn't it set spec.environmentConfigRefs
here instead?
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.
Yes --> #365
Description of your changes
Adds interface and mock functions to allow storing references to EnvironmentConfigs in XRs (
spec.environmentConfigRefs
).Ref. design document crossplane/crossplane#3008.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
n.A.