Skip to content

Conversation

a-hilaly
Copy link
Member

Issue: aws-controllers-k8s/community#1281

Description:

Since all ACK kubernetes resources have a synced condition status,
we need a way to instruct the code generator to generate kubebuilder
marker comments that will append the SYNCED field the kubectl get
response.

This patch extends Resource.PrintConfig to allow configuring the
ack-generate to generate such marker comments.

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

Since all ACK kubernetes resources have a synced condition status,
we need a way to instruct the code generator to generate kubebuilder
marker comments that will append the SYNCED field the kubectl get
response.

This patch extends Resource.PrintConfig to allow configuring the
ack-generate to generate such marker comments.
Copy link
Contributor

@RedbackThomson RedbackThomson left a comment

Choose a reason for hiding this comment

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

Cool. Maybe the generator config is unnecessary, but I'll see what the others think.

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.

Yeah, this is cool for now. I think maybe we should just do AGE and SYNCED always for all resources, though, and not need to be configurable as @RedbackThomson alluded to. But, for now, all good.

@jaypipes
Copy link
Collaborator

/lgtm

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

ack-bot commented Apr 26, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: A-Hilaly, jaypipes, RedbackThomson

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:
  • OWNERS [A-Hilaly,RedbackThomson,jaypipes]

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 92aec8d into aws-controllers-k8s:main Apr 26, 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