Skip to content

Releases: aws-controllers-k8s/code-generator

v0.9.0

03 Aug 17:22
0427c5e
Compare
Choose a tag to compare
  • Expose SetSDKForStruct and SetResourceForStruct in templates (#140)
  • Add CORS to initialisms (#144)
  • Remove loops from GetWrapperOutputShape (#145)
  • aws-sdk-go version bump, 1.37.4 -> 1.37.10 (#143) …

v0.8.0

02 Aug 10:11
cf45416
Compare
Choose a tag to compare

Aligns the code-generator with the ACK runtime v0.8.0

New features

  • Load metadata in release script (#134)
  • Update required controller-gen to v0.6.1 (#135)
  • Update for helm charts to use latest ecr-public repository. (#136)
  • Default AWS_SDK_GO_VERSION to go.mod version (#137)
  • Allow member fields from other operations in spec (#139)

Bug fixes

  • release script and helm bug fixes (#141)

v0.7.0

22 Jul 13:36
18a2a64
Compare
Choose a tag to compare

Aligns the code-generator with the ACK runtime v0.7.0

New features:

  • Add sdk addon hook (#94)
  • Mark status fields as optional (#129)
  • Add script and Github workflow for ensuring version in sync (#130)
  • Secret errors to be terminal code (#131)
  • Add AWS_ENDPOINT_URL to Helm chart templates (#133)
  • Remove performSpecUpdate(boolean) from SetOutput. (#132)

v0.6.0

19 Jul 07:33
c77aa9c
Compare
Choose a tag to compare

New features

  • Add service metadata configuration file (#126)
  • Add WithSDKVersion and WithAPIVersion methods to ackmodel.SDKHelper (#121)
  • Add a new CRD method to list all the renames observed in generator.yaml (#121)
  • Introduce pkg/generate/multiversion package to help interracting with (#121)

Bug fixes

  • Recursively build a clean GoType for nested maps and arrays (#127)

v0.5.0

13 Jul 09:51
1423dc8
Compare
Choose a tag to compare

Aligns the code-generator with the ACK runtime v0.5.0
NOTE: This release contains some breaking changes ⚠️

New features

  • Returning the latest resource from the Delete() call (#114)
  • Graceful cancellation for ack-generate subcommands (#123)
  • Add a new sort option for kubebuilder:printcolumns marker comments (#124)

Refactoring and migrations

  • Migrate build scripts from community (#125)
  • Migrate release Dockerfiles from community (#125)
  • ⚠️ BREAKING CHANGE: Move pkg/generate.Generator to pkg/model.Model (#120)
  • ⚠️ BREAKING CHANGE: Move pkg/generate unit tests to pkg/model (#120)

v0.4.0

05 Jul 17:14
1f3c922
Compare
Choose a tag to compare

Aligns the code-generator with the ACK runtime v0.4.0

New features

  • Generate resource identifiers from ReadOne or ReadMany (#105)
  • Setup webhooks on controller startup (#111)

Fixes

  • Add OIDC and identity to initialisms (#107)
  • Use go-git functionalities for common git operations (#108)
  • Fix required fields for renamed ReadOne input (#113)
  • Correct type mismatch errors in SetResourceIdentifiers generated code (#115)
  • Add primary identifiers for ReadMany operations (#116)
  • handle renamed fields for resource identifiers (#117)

v0.3.1

24 Jun 14:32
9c35918
Compare
Choose a tag to compare

Breaking changes

  • Aligns the code-generator with the ACK runtime v0.3.0, which introduced two breaking changes to the ACK core types, including a new RequeueOnSuccessSeconds method on AWSResourceManagerFactory and a ReplacesConditions method on AWSResource via the new ConditionManager interface (#106, #104, #95 )

New features

  • All CRD variables and functions within hook templates (#91)
  • Add CRD method to get OutputShape

Fixes

  • Prevent unused variable error (#101)
  • Fix broken template for custom code (#100)
  • Remove duplicate aws-sdk-go $service import (#102)

v0.2.3

21 Jun 19:02
d579746
Compare
Choose a tag to compare

NOTE: This release contain some breaking changes ⚠️

Features

  • Add a new config to override kubebuilder printcolumn:name (#79)
  • ⚠️ Move printer column options under the same generator config struct (#82).
    Actions to take: Rename all is_printable parameters in generator configurations to print: { name: $FIELD_NAME } (example aws-controllers-k8s/sagemaker-controller#44)
  • Add a new generator config to change PrinterColumn sort function (#83)
  • Add a new generator config to append an Age printcolumn (#84)
  • Add base CRD documentation (#89)
  • Add a cobra PostRunE to save generation metadata (#90)
  • Support suffix exception (#97)

Bug fixes

  • Update ElastiCache CodeGen test based on new SDK (#75)
  • Patch the correct observed state after a rm.ReadOne call (#76)
  • Add a new operation config to override the SetOutput wrapper field (#78)
  • Add metrics-service.yaml to helm template files. (#80)
  • crossplane: Mark spec as required, status.atProvider as optional (#81)
  • crossplane: remove unnecessary error handling in Update (#85)
  • Add a new config to override kubebuilder:printcolumn priority (#86)
  • Extend ack-generate to generate slice with elements of type K8s Secret (#87)
  • Remove unnecessary homedir module (#88)
  • fix: use deterministic sort for identifier field (#93)
  • Conditionally allow view secrets on ClusterRole (#96)
  • ⚠️ trace sdk.go resource manager methods (#95 )
    Actions to take: Upgrade github.com/aws-controllers/runtime to v0.2.3

v0.2.2

03 Jun 05:08
3aa29a0
Compare
Choose a tag to compare

Features

  • Immutable fields advisory feature (#70)

Bug fixes

  • Add missing sdk_delete_post_build_request hook in sdk.go.tpl (#74)
  • Explicitly mentioning 'metrics' for the ACK controller service. (#77)
  • crossplane: fix the controller template for attribute-based APIs (#31)

v0.2.1

28 May 15:43
8f9a108
Compare
Choose a tag to compare

Features

  • Add pre/post compare hooks for newResourceDelta function (#72)
  • Adding ClusterIP service in helm chart to expose controller metrics (#73)
  • Add log and accountid parameters in helm charts (#69)

Bug fixes

  • panic if matchFieldName config contains an element that is not part of Spec or Status fields (#67)
  • Panic if input field renames are not part of a resource spec/status fields (#66)