Skip to content

Commit

Permalink
Update to ACK runtime v0.30.0, code-generator v0.30.0 (#41)
Browse files Browse the repository at this point in the history
### Update to ACK runtime `v0.30.0`, code-generator `v0.30.0`

----------

* ACK code-generator `v0.30.0` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.30.0)
* ACK runtime `v0.30.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.30.0)

----------

NOTE:
This PR increments the release version of service controller from `v1.0.7` to `v1.0.8`

Once this PR is merged, release `v1.0.8` will be automatically created for `eventbridge-controller`

**Please close this PR, if you do not want the new patch release for `eventbridge-controller`**

----------

#### stdout for `make build-controller`:

```
building ack-generate ... ok.
==== building eventbridge-controller ====
Copying common custom resource definitions into eventbridge
Building Kubernetes API objects for eventbridge
Generating deepcopy code for eventbridge
Generating custom resource definitions for eventbridge
Building service controller for eventbridge
Generating RBAC manifests for eventbridge
Running gofmt against generated code for eventbridge
Updating additional GitHub repository maintenance files
==== building eventbridge-controller release artifacts ====
Building release artifacts for eventbridge-v1.0.8
Generating common custom resource definitions
Generating custom resource definitions for eventbridge
Generating RBAC manifests for eventbridge
```

----------

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
ack-bot authored Feb 14, 2024
1 parent 6153a29 commit de8a586
Show file tree
Hide file tree
Showing 28 changed files with 1,130 additions and 912 deletions.
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ack_generate_info:
build_date: "2024-01-29T07:02:26Z"
build_hash: 92f531cde5631865cfc3dfa778cbc9611f3a64c3
go_version: go1.21.5
version: v0.29.2
build_date: "2024-02-14T04:01:21Z"
build_hash: 947081ffebdeefcf2c61c4ca6d7e68810bdf9d08
go_version: go1.22.0
version: v0.30.0
api_directory_checksum: 2f1b4315ca163085aac81e9834ec3cc8e670ceaa
api_version: v1alpha1
aws_sdk_go_version: v1.49.0
Expand Down
10 changes: 6 additions & 4 deletions apis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kind: Kustomization
images:
- name: controller
newName: public.ecr.aws/aws-controllers-k8s/eventbridge-controller
newTag: 1.0.7
newTag: 1.0.8
86 changes: 50 additions & 36 deletions config/crd/bases/eventbridge.services.k8s.aws_archives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.14.0
name: archives.eventbridge.services.k8s.aws
spec:
group: eventbridge.services.k8s.aws
Expand Down Expand Up @@ -35,20 +34,28 @@ spec:
description: Archive is the Schema for the Archives API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: "ArchiveSpec defines the desired state of Archive. \n An
Archive object that contains details about an archive."
description: |-
ArchiveSpec defines the desired state of Archive.
An Archive object that contains details about an archive.
properties:
description:
description: A description for the archive.
Expand All @@ -62,12 +69,14 @@ spec:
type: string
eventSourceRef:
description: "AWSResourceReferenceWrapper provides a wrapper around
*AWSResourceReference type to provide more user friendly syntax
for references using 'from' field Ex: APIIDRef: \n from: name: my-api"
*AWSResourceReference\ntype to provide more user friendly syntax
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
\ name: my-api"
properties:
from:
description: AWSResourceReference provides all the values necessary
to reference another k8s resource for finding the identifier(Id/ARN/Name)
description: |-
AWSResourceReference provides all the values necessary to reference another
k8s resource for finding the identifier(Id/ARN/Name)
properties:
name:
type: string
Expand All @@ -77,8 +86,9 @@ spec:
description: The name for the archive to create.
type: string
retentionDays:
description: The number of days to retain events for. Default value
is 0. If set to 0, events are retained indefinitely
description: |-
The number of days to retain events for. Default value is 0. If set to 0,
events are retained indefinitely
format: int64
type: integer
required:
Expand All @@ -88,24 +98,26 @@ spec:
description: ArchiveStatus defines the observed state of Archive
properties:
ackResourceMetadata:
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
member that is used to contain resource sync state, account ownership,
description: |-
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
properties:
arn:
description: 'ARN is the Amazon Resource Name for the resource.
This is a globally-unique identifier and is set only by the
ACK service controller once the controller has orchestrated
the creation of the resource OR when it has verified that an
"adopted" resource (a resource where the ARN annotation was
set by the Kubernetes user on the CR) exists and matches the
supplied CR''s Spec field values. TODO(vijat@): Find a better
strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270'
description: |-
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
description: OwnerAccountID is the AWS Account ID of the account
that owns the backend AWS service API resource.
description: |-
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
type: string
region:
description: Region is the AWS region in which the resource exists
Expand All @@ -116,14 +128,16 @@ spec:
- region
type: object
conditions:
description: All CRS managed by ACK have a common `Status.Conditions`
member that contains a collection of `ackv1alpha1.Condition` objects
that describe the various terminal states of the CR and its backend
AWS service API resource
description: |-
All CRS managed by ACK have a common `Status.Conditions` member that
contains a collection of `ackv1alpha1.Condition` objects that describe
the various terminal states of the CR and its backend AWS service API
resource
items:
description: Condition is the common struct used by all CRDs managed
by ACK service controllers to indicate terminal states of the
CR and its backend AWS service API resource
description: |-
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
Expand Down
107 changes: 62 additions & 45 deletions config/crd/bases/eventbridge.services.k8s.aws_endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.14.0
name: endpoints.eventbridge.services.k8s.aws
spec:
group: eventbridge.services.k8s.aws
Expand Down Expand Up @@ -35,31 +34,42 @@ spec:
description: Endpoint is the Schema for the Endpoints API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: "EndpointSpec defines the desired state of Endpoint. \n A
global endpoint used to improve your application's availability by making
description: |-
EndpointSpec defines the desired state of Endpoint.
A global endpoint used to improve your application's availability by making
it regional-fault tolerant. For more information about global endpoints,
see Making applications Regional-fault tolerant with global endpoints
and event replication (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html)
in the Amazon EventBridge User Guide."
see Making applications Regional-fault tolerant with global endpoints and
event replication (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-global-endpoints.html)
in the Amazon EventBridge User Guide.
properties:
description:
description: A description of the global endpoint.
type: string
eventBuses:
description: "Define the event buses used. \n The names of the event
buses must be identical in each Region."
description: |-
Define the event buses used.
The names of the event buses must be identical in each Region.
items:
description: The event buses the endpoint is associated with.
properties:
Expand All @@ -71,10 +81,10 @@ spec:
description: The name of the global endpoint. For example, "Name":"us-east-2-custom_bus_A-endpoint".
type: string
replicationConfig:
description: Enable or disable event replication. The default state
is ENABLED which means you must supply a RoleArn. If you don't have
a RoleArn or you don't want event replication enabled, set the state
to DISABLED.
description: |-
Enable or disable event replication. The default state is ENABLED which means
you must supply a RoleArn. If you don't have a RoleArn or you don't want
event replication enabled, set the state to DISABLED.
properties:
state:
type: string
Expand All @@ -87,8 +97,9 @@ spec:
and secondary Region..
properties:
failoverConfig:
description: The failover configuration for an endpoint. This
includes what triggers failover and what happens when it's triggered.
description: |-
The failover configuration for an endpoint. This includes what triggers failover
and what happens when it's triggered.
properties:
primary:
description: The primary Region of the endpoint.
Expand All @@ -97,8 +108,9 @@ spec:
type: string
type: object
secondary:
description: The secondary Region that processes events when
failover is triggered or replication is enabled.
description: |-
The secondary Region that processes events when failover is triggered or
replication is enabled.
properties:
route:
type: string
Expand All @@ -114,24 +126,26 @@ spec:
description: EndpointStatus defines the observed state of Endpoint
properties:
ackResourceMetadata:
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
member that is used to contain resource sync state, account ownership,
description: |-
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
that is used to contain resource sync state, account ownership,
constructed ARN for the resource
properties:
arn:
description: 'ARN is the Amazon Resource Name for the resource.
This is a globally-unique identifier and is set only by the
ACK service controller once the controller has orchestrated
the creation of the resource OR when it has verified that an
"adopted" resource (a resource where the ARN annotation was
set by the Kubernetes user on the CR) exists and matches the
supplied CR''s Spec field values. TODO(vijat@): Find a better
strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270'
description: |-
ARN is the Amazon Resource Name for the resource. This is a
globally-unique identifier and is set only by the ACK service controller
once the controller has orchestrated the creation of the resource OR
when it has verified that an "adopted" resource (a resource where the
ARN annotation was set by the Kubernetes user on the CR) exists and
matches the supplied CR's Spec field values.
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
https://github.com/aws/aws-controllers-k8s/issues/270
type: string
ownerAccountID:
description: OwnerAccountID is the AWS Account ID of the account
that owns the backend AWS service API resource.
description: |-
OwnerAccountID is the AWS Account ID of the account that owns the
backend AWS service API resource.
type: string
region:
description: Region is the AWS region in which the resource exists
Expand All @@ -142,14 +156,16 @@ spec:
- region
type: object
conditions:
description: All CRS managed by ACK have a common `Status.Conditions`
member that contains a collection of `ackv1alpha1.Condition` objects
that describe the various terminal states of the CR and its backend
AWS service API resource
description: |-
All CRS managed by ACK have a common `Status.Conditions` member that
contains a collection of `ackv1alpha1.Condition` objects that describe
the various terminal states of the CR and its backend AWS service API
resource
items:
description: Condition is the common struct used by all CRDs managed
by ACK service controllers to indicate terminal states of the
CR and its backend AWS service API resource
description: |-
Condition is the common struct used by all CRDs managed by ACK service
controllers to indicate terminal states of the CR and its backend AWS
service API resource
properties:
lastTransitionTime:
description: Last time the condition transitioned from one status
Expand Down Expand Up @@ -178,8 +194,9 @@ spec:
description: The state of the endpoint that was created by this request.
type: string
stateReason:
description: The reason the endpoint you asked for information about
is in its current state.
description: |-
The reason the endpoint you asked for information about is in its current
state.
type: string
type: object
type: object
Expand Down
Loading

0 comments on commit de8a586

Please sign in to comment.