-
Notifications
You must be signed in to change notification settings - Fork 372
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
SecurityGroup in Composition is created twice #378
Comments
There may be a second part to this that affects how it works with compositions, but we've noticed that unlike the |
It's possible this could be due to crossplane/crossplane#1910. |
Not propagating the annotations solves this issue. E.g. removing the following from the composition: - fromFieldPath: "metadata.annotations"
toFieldPath: "metadata.annotations" |
Is there an action item for this? We can't prevent patching the external name annotation since it's valid for other use cases. Also copying the full annotations is kind of fine to some extent if your composition has only one base. So, I'm not sure what we can do here. Feel free to reopen. |
@mf-lit The problem happens only when you do the full copy of the annotations. It'd work if you specify the certain keys you want to patch like the following: - fromFieldPath: "metadata.annotations[crossplane.io/external-name]"
toFieldPath: "metadata.annotations[crossplane.io/external-name]" |
@muvaf Ah ok, good tip, thanks. 👍 I'm still curious though, to me it seems like the inability to pass full annotations would be useful, but since the issue was closed I'm guessing there's a reason not to allow it - what is that? |
It's about the operation itself. When you give the full |
What happened?
A security group in a crossplane composition is created twice:
Manual creation works fine (outside of a composition).
How can we reproduce it?
composition.yaml:
xrd.yaml
xrc.yaml
What environment did it happen in?
Crossplane version: v0.13.0
provider-aws: v0.12.0
The text was updated successfully, but these errors were encountered: