Skip to content

Commit f51fc67

Browse files
authored
Update to ACK runtime v0.30.0, code-generator v0.30.0 (#28)
### 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 `v0.0.6` to `v0.0.7` Once this PR is merged, release `v0.0.7` will be automatically created for `cloudfront-controller` **Please close this PR, if you do not want the new patch release for `cloudfront-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building cloudfront-controller ==== Copying common custom resource definitions into cloudfront Building Kubernetes API objects for cloudfront Generating deepcopy code for cloudfront Generating custom resource definitions for cloudfront Building service controller for cloudfront Generating RBAC manifests for cloudfront Running gofmt against generated code for cloudfront Updating additional GitHub repository maintenance files ==== building cloudfront-controller release artifacts ==== Building release artifacts for cloudfront-v0.0.7 Generating common custom resource definitions Generating custom resource definitions for cloudfront Generating RBAC manifests for cloudfront ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 6ac6ff0 commit f51fc67

30 files changed

+2192
-1675
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: "2024-01-29T07:02:50Z"
3-
build_hash: 92f531cde5631865cfc3dfa778cbc9611f3a64c3
4-
go_version: go1.21.5
5-
version: v0.29.2
2+
build_date: "2024-02-14T04:03:15Z"
3+
build_hash: 947081ffebdeefcf2c61c4ca6d7e68810bdf9d08
4+
go_version: go1.22.0
5+
version: v0.30.0
66
api_directory_checksum: 0772737bbcb79c3ab3ac8aa6b8d0e723ee28c401
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.214

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.

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/cloudfront-controller
9-
newTag: 0.0.6
9+
newTag: 0.0.7

config/crd/bases/cloudfront.services.k8s.aws_cachepolicies.yaml

Lines changed: 85 additions & 62 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: cachepolicies.cloudfront.services.k8s.aws
98
spec:
109
group: cloudfront.services.k8s.aws
@@ -21,31 +20,48 @@ spec:
2120
description: CachePolicy is the Schema for the CachePolicies 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: "CachePolicySpec defines the desired state of CachePolicy.
37-
\n A cache policy. \n When it's attached to a cache behavior, the cache
38-
policy determines the following: \n * The values that CloudFront includes
39-
in the cache key. These values can include HTTP headers, cookies, and
40-
URL query strings. CloudFront uses the cache key to find an object in
41-
its cache that it can return to the viewer. \n * The default, minimum,
42-
and maximum time to live (TTL) values that you want objects to stay
43-
in the CloudFront cache. \n The headers, cookies, and query strings
44-
that are included in the cache key are also included in requests that
45-
CloudFront sends to the origin. CloudFront sends a request when it can't
46-
find a valid object in its cache that matches the request's cache key.
47-
If you want to send values to the origin but not include them in the
48-
cache key, use OriginRequestPolicy."
40+
description: |-
41+
CachePolicySpec defines the desired state of CachePolicy.
42+
43+
44+
A cache policy.
45+
46+
47+
When it's attached to a cache behavior, the cache policy determines the following:
48+
49+
50+
* The values that CloudFront includes in the cache key. These values can
51+
include HTTP headers, cookies, and URL query strings. CloudFront uses
52+
the cache key to find an object in its cache that it can return to the
53+
viewer.
54+
55+
56+
* The default, minimum, and maximum time to live (TTL) values that you
57+
want objects to stay in the CloudFront cache.
58+
59+
60+
The headers, cookies, and query strings that are included in the cache key
61+
are also included in requests that CloudFront sends to the origin. CloudFront
62+
sends a request when it can't find a valid object in its cache that matches
63+
the request's cache key. If you want to send values to the origin but not
64+
include them in the cache key, use OriginRequestPolicy.
4965
properties:
5066
cachePolicyConfig:
5167
description: A cache policy configuration.
@@ -64,22 +80,24 @@ spec:
6480
name:
6581
type: string
6682
parametersInCacheKeyAndForwardedToOrigin:
67-
description: "This object determines the values that CloudFront
68-
includes in the cache key. These values can include HTTP headers,
69-
cookies, and URL query strings. CloudFront uses the cache key
70-
to find an object in its cache that it can return to the viewer.
71-
\n The headers, cookies, and query strings that are included
72-
in the cache key are also included in requests that CloudFront
73-
sends to the origin. CloudFront sends a request when it can't
74-
find an object in its cache that matches the request's cache
75-
key. If you want to send values to the origin but not include
76-
them in the cache key, use OriginRequestPolicy."
83+
description: |-
84+
This object determines the values that CloudFront includes in the cache key.
85+
These values can include HTTP headers, cookies, and URL query strings. CloudFront
86+
uses the cache key to find an object in its cache that it can return to the
87+
viewer.
88+
89+
90+
The headers, cookies, and query strings that are included in the cache key
91+
are also included in requests that CloudFront sends to the origin. CloudFront
92+
sends a request when it can't find an object in its cache that matches the
93+
request's cache key. If you want to send values to the origin but not include
94+
them in the cache key, use OriginRequestPolicy.
7795
properties:
7896
cookiesConfig:
79-
description: An object that determines whether any cookies
80-
in viewer requests (and if so, which cookies) are included
81-
in the cache key and in requests that CloudFront sends to
82-
the origin.
97+
description: |-
98+
An object that determines whether any cookies in viewer requests (and if
99+
so, which cookies) are included in the cache key and in requests that CloudFront
100+
sends to the origin.
83101
properties:
84102
cookieBehavior:
85103
type: string
@@ -97,9 +115,10 @@ spec:
97115
enableAcceptEncodingGzip:
98116
type: boolean
99117
headersConfig:
100-
description: An object that determines whether any HTTP headers
101-
(and if so, which headers) are included in the cache key
102-
and in requests that CloudFront sends to the origin.
118+
description: |-
119+
An object that determines whether any HTTP headers (and if so, which headers)
120+
are included in the cache key and in requests that CloudFront sends to the
121+
origin.
103122
properties:
104123
headerBehavior:
105124
type: string
@@ -113,10 +132,10 @@ spec:
113132
type: object
114133
type: object
115134
queryStringsConfig:
116-
description: An object that determines whether any URL query
117-
strings in viewer requests (and if so, which query strings)
118-
are included in the cache key and in requests that CloudFront
119-
sends to the origin.
135+
description: |-
136+
An object that determines whether any URL query strings in viewer requests
137+
(and if so, which query strings) are included in the cache key and in requests
138+
that CloudFront sends to the origin.
120139
properties:
121140
queryStringBehavior:
122141
type: string
@@ -138,24 +157,26 @@ spec:
138157
description: CachePolicyStatus defines the observed state of CachePolicy
139158
properties:
140159
ackResourceMetadata:
141-
description: All CRs managed by ACK have a common `Status.ACKResourceMetadata`
142-
member that is used to contain resource sync state, account ownership,
160+
description: |-
161+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
162+
that is used to contain resource sync state, account ownership,
143163
constructed ARN for the resource
144164
properties:
145165
arn:
146-
description: 'ARN is the Amazon Resource Name for the resource.
147-
This is a globally-unique identifier and is set only by the
148-
ACK service controller once the controller has orchestrated
149-
the creation of the resource OR when it has verified that an
150-
"adopted" resource (a resource where the ARN annotation was
151-
set by the Kubernetes user on the CR) exists and matches the
152-
supplied CR''s Spec field values. TODO(vijat@): Find a better
153-
strategy for resources that do not have ARN in CreateOutputResponse
154-
https://github.com/aws/aws-controllers-k8s/issues/270'
166+
description: |-
167+
ARN is the Amazon Resource Name for the resource. This is a
168+
globally-unique identifier and is set only by the ACK service controller
169+
once the controller has orchestrated the creation of the resource OR
170+
when it has verified that an "adopted" resource (a resource where the
171+
ARN annotation was set by the Kubernetes user on the CR) exists and
172+
matches the supplied CR's Spec field values.
173+
TODO(vijat@): Find a better strategy for resources that do not have ARN in CreateOutputResponse
174+
https://github.com/aws/aws-controllers-k8s/issues/270
155175
type: string
156176
ownerAccountID:
157-
description: OwnerAccountID is the AWS Account ID of the account
158-
that owns the backend AWS service API resource.
177+
description: |-
178+
OwnerAccountID is the AWS Account ID of the account that owns the
179+
backend AWS service API resource.
159180
type: string
160181
region:
161182
description: Region is the AWS region in which the resource exists
@@ -166,14 +187,16 @@ spec:
166187
- region
167188
type: object
168189
conditions:
169-
description: All CRS managed by ACK have a common `Status.Conditions`
170-
member that contains a collection of `ackv1alpha1.Condition` objects
171-
that describe the various terminal states of the CR and its backend
172-
AWS service API resource
190+
description: |-
191+
All CRS managed by ACK have a common `Status.Conditions` member that
192+
contains a collection of `ackv1alpha1.Condition` objects that describe
193+
the various terminal states of the CR and its backend AWS service API
194+
resource
173195
items:
174-
description: Condition is the common struct used by all CRDs managed
175-
by ACK service controllers to indicate terminal states of the
176-
CR and its backend AWS service API resource
196+
description: |-
197+
Condition is the common struct used by all CRDs managed by ACK service
198+
controllers to indicate terminal states of the CR and its backend AWS
199+
service API resource
177200
properties:
178201
lastTransitionTime:
179202
description: Last time the condition transitioned from one status

0 commit comments

Comments
 (0)