Skip to content

Commit 5e55d0e

Browse files
authored
Update to ACK runtime v0.34.0, code-generator v0.34.0 (#98)
### Update to ACK runtime `v0.34.0`, code-generator `v0.34.0` ---------- * ACK code-generator `v0.34.0` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.34.0) * ACK runtime `v0.34.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.34.0) ---------- NOTE: This PR increments the release version of service controller from `v1.0.2` to `v1.0.3` Once this PR is merged, release `v1.0.3` will be automatically created for `memorydb-controller` **Please close this PR, if you do not want the new patch release for `memorydb-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building memorydb-controller ==== Copying common custom resource definitions into memorydb Building Kubernetes API objects for memorydb Generating deepcopy code for memorydb Generating custom resource definitions for memorydb Building service controller for memorydb Generating RBAC manifests for memorydb Running gofmt against generated code for memorydb Updating additional GitHub repository maintenance files ==== building memorydb-controller release artifacts ==== Building release artifacts for memorydb-v1.0.3 Generating common custom resource definitions Generating custom resource definitions for memorydb Generating RBAC manifests for memorydb ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent cdee277 commit 5e55d0e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1945
-1849
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2023-09-19T00:17:28Z"
3-
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
4-
go_version: go1.20.3
5-
version: v0.27.1
2+
build_date: "2024-05-02T20:50:33Z"
3+
build_hash: 14cef51778d471698018b6c38b604181a6948248
4+
go_version: go1.22.0
5+
version: v0.34.0
66
api_directory_checksum: 863961569e4c45d940e482713a85bac302b37d66
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 48 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/controller/deployment.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
- --enable-leader-election=$(ENABLE_LEADER_ELECTION)
4040
- --leader-election-namespace
4141
- "$(LEADER_ELECTION_NAMESPACE)"
42+
- --reconcile-default-max-concurrent-syncs
43+
- "$(RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS)"
4244
image: controller:latest
4345
name: controller
4446
ports:
@@ -72,13 +74,27 @@ spec:
7274
value: "false"
7375
- name: LEADER_ELECTION_NAMESPACE
7476
value: "ack-system"
77+
- name: "RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS"
78+
value: "1"
7579
securityContext:
7680
allowPrivilegeEscalation: false
7781
privileged: false
7882
runAsNonRoot: true
7983
capabilities:
8084
drop:
8185
- ALL
86+
livenessProbe:
87+
httpGet:
88+
path: /healthz
89+
port: 8081
90+
initialDelaySeconds: 15
91+
periodSeconds: 20
92+
readinessProbe:
93+
httpGet:
94+
path: /readyz
95+
port: 8081
96+
initialDelaySeconds: 5
97+
periodSeconds: 10
8298
securityContext:
8399
seccompProfile:
84100
type: RuntimeDefault

config/controller/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/memorydb-controller
9-
newTag: 1.0.2
9+
newTag: 1.0.3

config/crd/bases/memorydb.services.k8s.aws_acls.yaml

Lines changed: 63 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.9.2
7-
creationTimestamp: null
6+
controller-gen.kubebuilder.io/version: v0.14.0
87
name: acls.memorydb.services.k8s.aws
98
spec:
109
group: memorydb.services.k8s.aws
@@ -21,36 +20,44 @@ spec:
2120
description: ACL is the Schema for the ACLS API
2221
properties:
2322
apiVersion:
24-
description: 'APIVersion defines the versioned schema of this representation
25-
of an object. Servers should convert recognized schemas to the latest
26-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2728
type: string
2829
kind:
29-
description: 'Kind is a string value representing the REST resource this
30-
object represents. Servers may infer this from the endpoint the client
31-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
3236
type: string
3337
metadata:
3438
type: object
3539
spec:
36-
description: "ACLSpec defines the desired state of ACL. \n An Access Control
37-
List. You can authenticate users with Access Contol Lists. ACLs enable
38-
you to control cluster access by grouping users. These Access control
39-
lists are designed as a way to organize access to clusters."
40+
description: |-
41+
ACLSpec defines the desired state of ACL.
42+
43+
44+
An Access Control List. You can authenticate users with Access Contol Lists.
45+
ACLs enable you to control cluster access by grouping users. These Access
46+
control lists are designed as a way to organize access to clusters.
4047
properties:
4148
name:
4249
description: The name of the Access Control List.
4350
type: string
4451
tags:
45-
description: A list of tags to be added to this resource. A tag is
46-
a key-value pair. A tag key must be accompanied by a tag value,
47-
although null is accepted.
52+
description: |-
53+
A list of tags to be added to this resource. A tag is a key-value pair. A
54+
tag key must be accompanied by a tag value, although null is accepted.
4855
items:
49-
description: A tag that can be added to an MemoryDB resource. Tags
50-
are composed of a Key/Value pair. You can use tags to categorize
51-
and track all your MemoryDB resources. When you add or remove
52-
tags on clusters, those actions will be replicated to all nodes
53-
in the cluster. A tag with a null Value is permitted. For more
56+
description: |-
57+
A tag that can be added to an MemoryDB resource. Tags are composed of a Key/Value
58+
pair. You can use tags to categorize and track all your MemoryDB resources.
59+
When you add or remove tags on clusters, those actions will be replicated
60+
to all nodes in the cluster. A tag with a null Value is permitted. For more
5461
information, see Tagging your MemoryDB resources (https://docs.aws.amazon.com/MemoryDB/latest/devguide/tagging-resources.html)
5562
properties:
5663
key:
@@ -67,13 +74,14 @@ spec:
6774
userRefs:
6875
items:
6976
description: "AWSResourceReferenceWrapper provides a wrapper around
70-
*AWSResourceReference type to provide more user friendly syntax
71-
for references using 'from' field Ex: APIIDRef: \n from: name:
72-
my-api"
77+
*AWSResourceReference\ntype to provide more user friendly syntax
78+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\n\tfrom:\n\t
79+
\ name: my-api"
7380
properties:
7481
from:
75-
description: AWSResourceReference provides all the values necessary
76-
to reference another k8s resource for finding the identifier(Id/ARN/Name)
82+
description: |-
83+
AWSResourceReference provides all the values necessary to reference another
84+
k8s resource for finding the identifier(Id/ARN/Name)
7785
properties:
7886
name:
7987
type: string
@@ -87,24 +95,26 @@ spec:
8795
description: ACLStatus defines the observed state of ACL
8896
properties:
8997
ackResourceMetadata:
90-
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
91-
member that is used to contain resource sync state, account ownership,
98+
description: |-
99+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
100+
that is used to contain resource sync state, account ownership,
92101
constructed ARN for the resource
93102
properties:
94103
arn:
95-
description: 'ARN is the Amazon Resource Name for the resource.
96-
This is a globally-unique identifier and is set only by the
97-
ACK service controller once the controller has orchestrated
98-
the creation of the resource OR when it has verified that an
99-
"adopted" resource (a resource where the ARN annotation was
100-
set by the Kubernetes user on the CR) exists and matches the
101-
supplied CR''s Spec field values. TODO(vijat@): Find a better
102-
strategy for resources that do not have ARN in CreateOutputResponse
103-
https://github.com/aws/aws-controllers-k8s/issues/270'
104+
description: |-
105+
ARN is the Amazon Resource Name for the resource. This is a
106+
globally-unique identifier and is set only by the ACK service controller
107+
once the controller has orchestrated the creation of the resource OR
108+
when it has verified that an "adopted" resource (a resource where the
109+
ARN annotation was set by the Kubernetes user on the CR) exists and
110+
matches the supplied CR's Spec field values.
111+
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
112+
https://github.com/aws/aws-controllers-k8s/issues/270
104113
type: string
105114
ownerAccountID:
106-
description: OwnerAccountID is the AWS Account ID of the account
107-
that owns the backend AWS service API resource.
115+
description: |-
116+
OwnerAccountID is the AWS Account ID of the account that owns the
117+
backend AWS service API resource.
108118
type: string
109119
region:
110120
description: Region is the AWS region in which the resource exists
@@ -120,14 +130,16 @@ spec:
120130
type: string
121131
type: array
122132
conditions:
123-
description: All CRS managed by ACK have a common `Status.Conditions`
124-
member that contains a collection of `ackv1alpha1.Condition` objects
125-
that describe the various terminal states of the CR and its backend
126-
AWS service API resource
133+
description: |-
134+
All CRS managed by ACK have a common `Status.Conditions` member that
135+
contains a collection of `ackv1alpha1.Condition` objects that describe
136+
the various terminal states of the CR and its backend AWS service API
137+
resource
127138
items:
128-
description: Condition is the common struct used by all CRDs managed
129-
by ACK service controllers to indicate terminal states of the
130-
CR and its backend AWS service API resource
139+
description: |-
140+
Condition is the common struct used by all CRDs managed by ACK service
141+
controllers to indicate terminal states of the CR and its backend AWS
142+
service API resource
131143
properties:
132144
lastTransitionTime:
133145
description: Last time the condition transitioned from one status
@@ -153,12 +165,13 @@ spec:
153165
type: object
154166
type: array
155167
events:
156-
description: A list of events. Each element in the list contains detailed
157-
information about one event.
168+
description: |-
169+
A list of events. Each element in the list contains detailed information
170+
about one event.
158171
items:
159-
description: Represents a single occurrence of something interesting
160-
within the system. Some examples of events are creating a cluster
161-
or adding or removing a node.
172+
description: |-
173+
Represents a single occurrence of something interesting within the system.
174+
Some examples of events are creating a cluster or adding or removing a node.
162175
properties:
163176
date:
164177
format: date-time

0 commit comments

Comments
 (0)