Skip to content

Conversation

RedbackThomson
Copy link
Contributor

@RedbackThomson RedbackThomson commented Jul 29, 2021

Description of changes:
Makes setSDKForStruct and setResourceForStruct public, so that they are accessible for other parts of the generator. Exposes SetSDKForStruct as GoCodeSetSDKForStruct and SetResourceForStruct as GoCodeSetResourceForStruct in the generator, and includes SDKAPI as a template variable to allow querying of API shapes to use with parameters in the new template methods.

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

@RedbackThomson RedbackThomson changed the title Expose SetSDKForStruct in templates Expose SetSDKForStruct and SetResourceForStruct in templates Jul 29, 2021
@vijtrip2
Copy link
Contributor

/approve

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.

Teeny renaming request inline, otherwise looks great :)

type templateCRDVars struct {
templateset.MetaVars
CRD *ackmodel.CRD
SDKAPI *ackmodel.SDKAPI
Copy link
Collaborator

Choose a reason for hiding this comment

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

You might consider adding this to the "root" templateset.MetaVars at some point in the future.

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.

👍

@jaypipes
Copy link
Collaborator

jaypipes commented Aug 2, 2021

/lgtm

@ack-bot ack-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 2, 2021
@ack-bot
Copy link
Collaborator

ack-bot commented Aug 2, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jaypipes, RedbackThomson, 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:
  • OWNERS [RedbackThomson,jaypipes,vijtrip2]

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 564da95 into aws-controllers-k8s:main Aug 2, 2021
ack-bot pushed a commit to aws-controllers-k8s/s3-controller that referenced this pull request Aug 2, 2021
Adds custom hooks to detect changes to the `Logging` spec field and optionally calls the `PutBucketLogging` SDK method. Currently errors are not populated into terminal conditions, and updates are not supported.

Uses aws-controllers-k8s/code-generator#139 and aws-controllers-k8s/code-generator#140
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