You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defined an IAM Policy with a patched document attribute. Crossplane won't create the policy because it sees the unpatched spec.forProvider which expects the document attribute to be defined via patching:
defined/compositeresourcedefinition.apiextensions.crossplane.io
cannot render composed resource from resource template ...
cannot use dry-run create to name composed resource: Policy.iam.aws.crossplane.io ...
is invalid: spec.forProvider.document: Required value
Also, encountered by others who filed an issue in the crossplane/crossplane repo: crossplane/crossplane#3009
Sorry. It was bad indentation levels (almost like YAML isn't a great format for complex documents like these 🤷♂️ ).
For anyone who follows, patches should be on the same level as base. It should not be at the same level as spec.
What happened?
Defined an IAM Policy with a patched
document
attribute. Crossplane won't create the policy because it sees the unpatched spec.forProvider which expects the document attribute to be defined via patching:Also, encountered by others who filed an issue in the crossplane/crossplane repo:
crossplane/crossplane#3009
How can we reproduce it?
Composition snippet:
What environment did it happen in?
Crossplane version: 1.12
OpenShift.
The text was updated successfully, but these errors were encountered: