Skip to content

Commit 0ffabf4

Browse files
committed
Update Runtime to v0.12.0
1 parent 804f233 commit 0ffabf4

Some content is hidden

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

41 files changed

+704
-242
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ack_generate_info:
2+
build_date: "2021-08-25T06:21:22Z"
3+
build_hash: be9e3abf09e334d8585d14404a99d8adae0daec7
4+
go_version: go1.14.14 darwin/amd64
5+
version: v0.12.0
6+
api_directory_checksum: 296192e73300914bbbc07917d207bd725e78ca69
7+
api_version: v1alpha1
8+
aws_sdk_go_version: v1.37.10
9+
generator_config_info:
10+
file_checksum: c7e5f39c1278b0b0061103439a4075073bf19403
11+
original_file_name: generator.yaml
12+
last_modification:
13+
reason: API generation
14+
timestamp: 2021-08-25 06:21:32.066638 +0000 UTC

apis/v1alpha1/generator.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
operations:
2+
PutScalingPolicy:
3+
operation_type: Create
4+
resource_name: ScalingPolicy
5+
RegisterScalableTarget:
6+
operation_type: Create
7+
resource_name: ScalableTarget
8+
DeregisterScalableTarget:
9+
operation_type: Delete
10+
resource_name: ScalableTarget
11+
DescribeScalableTargets:
12+
primary_identifier_field_name: ResourceID
13+
DescribeScalingPolicies:
14+
primary_identifier_field_name: ResourceID
15+
resources:
16+
ScalableTarget:
17+
is_adoptable: false
18+
hooks:
19+
sdk_read_many_post_build_request:
20+
code: rm.customDescribeScalableTarget(ctx, r, input)
21+
delta_pre_compare:
22+
code: customSetDefaults(a, b)
23+
fields:
24+
ResourceID:
25+
is_name: true
26+
ScalingPolicy:
27+
is_adoptable: false
28+
fields:
29+
ResourceID:
30+
is_name: true
31+
PolicyARN:
32+
is_arn: true
33+
ignore:
34+
resource_names:
35+
- ScheduledAction
36+

apis/v1alpha1/scalable_target.go

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

apis/v1alpha1/scaling_policy.go

Lines changed: 10 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: 35 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/applicationautoscaling.services.k8s.aws_scalabletargets.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: scalabletargets.applicationautoscaling.services.k8s.aws
1010
spec:
@@ -34,7 +34,8 @@ spec:
3434
metadata:
3535
type: object
3636
spec:
37-
description: ScalableTargetSpec defines the desired state of ScalableTarget
37+
description: "ScalableTargetSpec defines the desired state of ScalableTarget.
38+
\n Represents a scalable target."
3839
properties:
3940
maxCapacity:
4041
description: "The maximum value that you plan to scale out to. When
@@ -237,9 +238,6 @@ spec:
237238
- type
238239
type: object
239240
type: array
240-
required:
241-
- ackResourceMetadata
242-
- conditions
243241
type: object
244242
type: object
245243
served: true

config/crd/bases/applicationautoscaling.services.k8s.aws_scalingpolicies.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.4.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: scalingpolicies.applicationautoscaling.services.k8s.aws
1010
spec:
@@ -34,7 +34,11 @@ spec:
3434
metadata:
3535
type: object
3636
spec:
37-
description: ScalingPolicySpec defines the desired state of ScalingPolicy
37+
description: "ScalingPolicySpec defines the desired state of ScalingPolicy.
38+
\n Represents a scaling policy to use with Application Auto Scaling.
39+
\n For more information about configuring scaling policies for a specific
40+
service, see Getting started with Application Auto Scaling (https://docs.aws.amazon.com/autoscaling/application/userguide/getting-started.html)
41+
in the Application Auto Scaling User Guide."
3842
properties:
3943
policyName:
4044
description: The name of the scaling policy.
@@ -325,9 +329,6 @@ spec:
325329
- type
326330
type: object
327331
type: array
328-
required:
329-
- ackResourceMetadata
330-
- conditions
331332
type: object
332333
type: object
333334
served: true

config/crd/common/bases/services.k8s.aws_adoptedresources.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ spec:
4040
description: AWSIdentifiers provide all unique ways to reference an
4141
AWS resource.
4242
properties:
43+
additionalKeys:
44+
additionalProperties:
45+
type: string
46+
description: AdditionalKeys represents any additional arbitrary
47+
identifiers used when describing the target resource.
48+
type: object
4349
arn:
4450
description: ARN is the AWS Resource Name for the resource. It
4551
is a globally unique identifier.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
resources:
2+
- ../../default
3+
patches:
4+
- path: role.json
5+
target:
6+
group: rbac.authorization.k8s.io
7+
version: v1
8+
kind: ClusterRole
9+
name: ack-applicationautoscaling-controller
10+
- path: role-binding.json
11+
target:
12+
group: rbac.authorization.k8s.io
13+
version: v1
14+
kind: ClusterRoleBinding
15+
name: ack-applicationautoscaling-controller-rolebinding
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[{"op": "replace", "path": "/kind", "value": "RoleBinding"},
2+
{"op": "add", "path": "/metadata/namespace", "value": "ack-system"},
3+
{"op": "replace", "path": "/roleRef/kind", "value": "Role"}]

0 commit comments

Comments
 (0)