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

add new AWSResourceManager.EnsureControllerTags() method #90

Merged
merged 5 commits into from
Jun 1, 2022

Conversation

vijtrip2
Copy link
Contributor

@vijtrip2 vijtrip2 commented May 25, 2022

Issue #, if available: aws-controllers-k8s/community#1261

Description of changes:

  • Adds new AWSResourceManager.EnsureTags() method
  • EnsureTags method will be called before invoking reconcile method to update the desired resource with the ACK controller tags
  • This change also introduces a new Tags shape, which will be used as mediator/hub to merge AWS tags represented using different go types.
  • code-generator will generate the logic of conversion to/from Tags

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

pkg/runtime/reconciler.go Outdated Show resolved Hide resolved
pkg/tags/resource_tags.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

Agree with @RedbackThomson's suggestion. Also another naming suggestion inline from me...

pkg/tags/resource_tags.go Outdated Show resolved Hide resolved
pkg/runtime/reconciler.go Outdated Show resolved Hide resolved
pkg/types/aws_resource_manager.go Outdated Show resolved Hide resolved
@vijtrip2 vijtrip2 requested a review from jaypipes June 1, 2022 18:28
Copy link
Collaborator

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

thanks for that explanation (again :) ), @vijtrip2!

@jaypipes
Copy link
Collaborator

jaypipes commented Jun 1, 2022

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 1, 2022
@ack-bot
Copy link
Collaborator

ack-bot commented Jun 1, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypipes, vijtrip2

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-bot ack-bot merged commit fb55374 into aws-controllers-k8s:main Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants