Skip to content

Commit

Permalink
Update to ACK runtime v0.35.0, code-generator v0.35.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-robot committed Jul 19, 2024
1 parent cdee277 commit 09723f4
Show file tree
Hide file tree
Showing 42 changed files with 1,927 additions and 1,848 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: "2023-09-19T00:17:28Z"
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d
go_version: go1.20.3
version: v0.27.1
build_date: "2024-07-19T22:54:21Z"
build_hash: f0a0f42d507c550c2b063a192b3b43e4522bdd9c
go_version: go1.22.5
version: v0.35.0
api_directory_checksum: 863961569e4c45d940e482713a85bac302b37d66
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
Expand Down
1 change: 0 additions & 1 deletion apis/v1alpha1/zz_generated.deepcopy.go

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

55 changes: 48 additions & 7 deletions cmd/controller/main.go

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

16 changes: 16 additions & 0 deletions config/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ spec:
- --enable-leader-election=$(ENABLE_LEADER_ELECTION)
- --leader-election-namespace
- "$(LEADER_ELECTION_NAMESPACE)"
- --reconcile-default-max-concurrent-syncs
- "$(RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS)"
image: controller:latest
name: controller
ports:
Expand Down Expand Up @@ -72,13 +74,27 @@ spec:
value: "false"
- name: LEADER_ELECTION_NAMESPACE
value: "ack-system"
- name: "RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS"
value: "1"
securityContext:
allowPrivilegeEscalation: false
privileged: false
runAsNonRoot: true
capabilities:
drop:
- ALL
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
seccompProfile:
type: RuntimeDefault
Expand Down
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/memorydb-controller
newTag: 1.0.2
newTag: 1.0.3
113 changes: 63 additions & 50 deletions config/crd/bases/memorydb.services.k8s.aws_acls.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: acls.memorydb.services.k8s.aws
spec:
group: memorydb.services.k8s.aws
Expand All @@ -21,36 +20,44 @@ spec:
description: ACL is the Schema for the ACLS 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: "ACLSpec defines the desired state of ACL. \n An Access Control
List. You can authenticate users with Access Contol Lists. ACLs enable
you to control cluster access by grouping users. These Access control
lists are designed as a way to organize access to clusters."
description: |-
ACLSpec defines the desired state of ACL.
An Access Control List. You can authenticate users with Access Contol Lists.
ACLs enable you to control cluster access by grouping users. These Access
control lists are designed as a way to organize access to clusters.
properties:
name:
description: The name of the Access Control List.
type: string
tags:
description: A list of tags to be added to this resource. A tag is
a key-value pair. A tag key must be accompanied by a tag value,
although null is accepted.
description: |-
A list of tags to be added to this resource. A tag is a key-value pair. A
tag key must be accompanied by a tag value, although null is accepted.
items:
description: A tag that can be added to an MemoryDB resource. Tags
are composed of a Key/Value pair. You can use tags to categorize
and track all your MemoryDB resources. When you add or remove
tags on clusters, those actions will be replicated to all nodes
in the cluster. A tag with a null Value is permitted. For more
description: |-
A tag that can be added to an MemoryDB resource. Tags are composed of a Key/Value
pair. You can use tags to categorize and track all your MemoryDB resources.
When you add or remove tags on clusters, those actions will be replicated
to all nodes in the cluster. A tag with a null Value is permitted. For more
information, see Tagging your MemoryDB resources (https://docs.aws.amazon.com/MemoryDB/latest/devguide/tagging-resources.html)
properties:
key:
Expand All @@ -67,13 +74,14 @@ spec:
userRefs:
items:
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 @@ -87,24 +95,26 @@ spec:
description: ACLStatus defines the observed state of ACL
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 @@ -120,14 +130,16 @@ spec:
type: string
type: array
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 All @@ -153,12 +165,13 @@ spec:
type: object
type: array
events:
description: A list of events. Each element in the list contains detailed
information about one event.
description: |-
A list of events. Each element in the list contains detailed information
about one event.
items:
description: Represents a single occurrence of something interesting
within the system. Some examples of events are creating a cluster
or adding or removing a node.
description: |-
Represents a single occurrence of something interesting within the system.
Some examples of events are creating a cluster or adding or removing a node.
properties:
date:
format: date-time
Expand Down
Loading

0 comments on commit 09723f4

Please sign in to comment.