Skip to content
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

fix(tagger): tagger fixed for tgw/tgwvpcattachment #1029

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

haarchri
Copy link
Member

Signed-off-by: haarchri [email protected]

Description of your changes

tags not published for

  • transitgateway
  • transitgatewayvpcattachment

Fixes #

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

image

image

@haarchri haarchri requested a review from AaronME December 21, 2021 11:18
Copy link

@AaronME AaronME left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well!

@haarchri haarchri merged commit 688f65f into crossplane-contrib:master Jan 6, 2022
@haarchri haarchri deleted the fix/tgw-tagger branch January 6, 2022 22:39
}
sort.Slice(transitGatewayTags.Tags, func(i, j int) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorting messes up with composition patches where users patch the given index. I'd suggest appending the tag if it's not found, similar to this implementation https://github.com/crossplane/provider-aws/blob/master/pkg/controller/ecr/repository/controller.go#L258

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants