Skip to content

Commit 5ab3054

Browse files
authored
[create-pull-request] automated change
1 parent 5c18ce7 commit 5ab3054

18 files changed

+1001
-596
lines changed

Diff for: addons/applicationautoscaling-chart/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: applicationautoscaling-chart
33
description: A Helm chart for the ACK service controller for AWS Auto Scaling (AutoScaling)
4-
version: 1.0.8
5-
appVersion: 1.0.8
4+
version: 1.0.13
5+
appVersion: 1.0.13
66
home: https://github.com/aws-controllers-k8s/applicationautoscaling-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

Diff for: addons/applicationautoscaling-chart/crds/applicationautoscaling.services.k8s.aws_scalabletargets.yaml

+258-150
Large diffs are not rendered by default.

Diff for: addons/applicationautoscaling-chart/crds/applicationautoscaling.services.k8s.aws_scalingpolicies.yaml

+310-169
Large diffs are not rendered by default.

Diff for: addons/applicationautoscaling-chart/crds/services.k8s.aws_adoptedresources.yaml

+117-92
Large diffs are not rendered by default.

Diff for: addons/applicationautoscaling-chart/crds/services.k8s.aws_fieldexports.yaml

+32-22
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: fieldexports.services.k8s.aws
98
spec:
109
group: services.k8s.aws
@@ -21,30 +20,37 @@ spec:
2120
description: FieldExport is the schema for the FieldExport 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:
3640
description: FieldExportSpec defines the desired state of the FieldExport.
3741
properties:
3842
from:
39-
description: ResourceFieldSelector provides the values necessary to
40-
identify an individual field on an individual K8s resource.
43+
description: |-
44+
ResourceFieldSelector provides the values necessary to identify an individual
45+
field on an individual K8s resource.
4146
properties:
4247
path:
4348
type: string
4449
resource:
45-
description: NamespacedResource provides all the values necessary
46-
to identify an ACK resource of a given type (within the same
47-
namespace as the custom resource containing this type).
50+
description: |-
51+
NamespacedResource provides all the values necessary to identify an ACK
52+
resource of a given type (within the same namespace as the custom resource
53+
containing this type).
4854
properties:
4955
group:
5056
type: string
@@ -62,16 +68,18 @@ spec:
6268
- resource
6369
type: object
6470
to:
65-
description: FieldExportTarget provides the values necessary to identify
66-
the output path for a field export.
71+
description: |-
72+
FieldExportTarget provides the values necessary to identify the
73+
output path for a field export.
6774
properties:
6875
key:
6976
description: Key overrides the default value (`<namespace>.<FieldExport-resource-name>`)
7077
for the FieldExport target
7178
type: string
7279
kind:
73-
description: FieldExportOutputType represents all types that can
74-
be produced by a field export operation
80+
description: |-
81+
FieldExportOutputType represents all types that can be produced by a field
82+
export operation
7583
enum:
7684
- configmap
7785
- secret
@@ -94,12 +102,14 @@ spec:
94102
description: FieldExportStatus defines the observed status of the FieldExport.
95103
properties:
96104
conditions:
97-
description: A collection of `ackv1alpha1.Condition` objects that
98-
describe the various recoverable states of the field CR
105+
description: |-
106+
A collection of `ackv1alpha1.Condition` objects that describe the various
107+
recoverable states of the field CR
99108
items:
100-
description: Condition is the common struct used by all CRDs managed
101-
by ACK service controllers to indicate terminal states of the
102-
CR and its backend AWS service API resource
109+
description: |-
110+
Condition is the common struct used by all CRDs managed by ACK service
111+
controllers to indicate terminal states of the CR and its backend AWS
112+
service API resource
103113
properties:
104114
lastTransitionTime:
105115
description: Last time the condition transitioned from one status

Diff for: addons/applicationautoscaling-chart/templates/NOTES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ .Chart.Name }} has been installed.
2-
This chart deploys "public.ecr.aws/aws-controllers-k8s/applicationautoscaling-controller:1.0.8".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/applicationautoscaling-controller:1.0.13".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
+120-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{/* The name of the application this chart installs */}}
2-
{{- define "app.name" -}}
2+
{{- define "ack-applicationautoscaling-controller.app.name" -}}
33
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
44
{{- end -}}
55

@@ -8,7 +8,7 @@ Create a default fully qualified app name.
88
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
99
If release name contains chart name it will be used as a full name.
1010
*/}}
11-
{{- define "app.fullname" -}}
11+
{{- define "ack-applicationautoscaling-controller.app.fullname" -}}
1212
{{- if .Values.fullnameOverride -}}
1313
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
1414
{{- else -}}
@@ -22,27 +22,139 @@ If release name contains chart name it will be used as a full name.
2222
{{- end -}}
2323

2424
{{/* The name and version as used by the chart label */}}
25-
{{- define "chart.name-version" -}}
25+
{{- define "ack-applicationautoscaling-controller.chart.name-version" -}}
2626
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
2727
{{- end -}}
2828

2929
{{/* The name of the service account to use */}}
30-
{{- define "service-account.name" -}}
30+
{{- define "ack-applicationautoscaling-controller.service-account.name" -}}
3131
{{ default "default" .Values.serviceAccount.name }}
3232
{{- end -}}
3333

34-
{{- define "watch-namespace" -}}
34+
{{- define "ack-applicationautoscaling-controller.watch-namespace" -}}
3535
{{- if eq .Values.installScope "namespace" -}}
3636
{{ .Values.watchNamespace | default .Release.Namespace }}
3737
{{- end -}}
3838
{{- end -}}
3939

4040
{{/* The mount path for the shared credentials file */}}
41-
{{- define "aws.credentials.secret_mount_path" -}}
41+
{{- define "ack-applicationautoscaling-controller.aws.credentials.secret_mount_path" -}}
4242
{{- "/var/run/secrets/aws" -}}
4343
{{- end -}}
4444

4545
{{/* The path the shared credentials file is mounted */}}
46-
{{- define "aws.credentials.path" -}}
47-
{{- printf "%s/%s" (include "aws.credentials.secret_mount_path" .) .Values.aws.credentials.secretKey -}}
46+
{{- define "ack-applicationautoscaling-controller.aws.credentials.path" -}}
47+
{{ $secret_mount_path := include "ack-applicationautoscaling-controller.aws.credentials.secret_mount_path" . }}
48+
{{- printf "%s/%s" $secret_mount_path .Values.aws.credentials.secretKey -}}
4849
{{- end -}}
50+
51+
{{/* The rules a of ClusterRole or Role */}}
52+
{{- define "ack-applicationautoscaling-controller.rbac-rules" -}}
53+
rules:
54+
- apiGroups:
55+
- ""
56+
resources:
57+
- configmaps
58+
verbs:
59+
- get
60+
- list
61+
- patch
62+
- watch
63+
- apiGroups:
64+
- ""
65+
resources:
66+
- namespaces
67+
verbs:
68+
- get
69+
- list
70+
- watch
71+
- apiGroups:
72+
- ""
73+
resources:
74+
- secrets
75+
verbs:
76+
- get
77+
- list
78+
- patch
79+
- watch
80+
- apiGroups:
81+
- applicationautoscaling.services.k8s.aws
82+
resources:
83+
- scalabletargets
84+
verbs:
85+
- create
86+
- delete
87+
- get
88+
- list
89+
- patch
90+
- update
91+
- watch
92+
- apiGroups:
93+
- applicationautoscaling.services.k8s.aws
94+
resources:
95+
- scalabletargets/status
96+
verbs:
97+
- get
98+
- patch
99+
- update
100+
- apiGroups:
101+
- applicationautoscaling.services.k8s.aws
102+
resources:
103+
- scalingpolicies
104+
verbs:
105+
- create
106+
- delete
107+
- get
108+
- list
109+
- patch
110+
- update
111+
- watch
112+
- apiGroups:
113+
- applicationautoscaling.services.k8s.aws
114+
resources:
115+
- scalingpolicies/status
116+
verbs:
117+
- get
118+
- patch
119+
- update
120+
- apiGroups:
121+
- services.k8s.aws
122+
resources:
123+
- adoptedresources
124+
verbs:
125+
- create
126+
- delete
127+
- get
128+
- list
129+
- patch
130+
- update
131+
- watch
132+
- apiGroups:
133+
- services.k8s.aws
134+
resources:
135+
- adoptedresources/status
136+
verbs:
137+
- get
138+
- patch
139+
- update
140+
- apiGroups:
141+
- services.k8s.aws
142+
resources:
143+
- fieldexports
144+
verbs:
145+
- create
146+
- delete
147+
- get
148+
- list
149+
- patch
150+
- update
151+
- watch
152+
- apiGroups:
153+
- services.k8s.aws
154+
resources:
155+
- fieldexports/status
156+
verbs:
157+
- get
158+
- patch
159+
- update
160+
{{- end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRoleBinding
3+
metadata:
4+
name: ack-namespaces-cache-applicationautoscaling-controller
5+
roleRef:
6+
kind: ClusterRole
7+
apiGroup: rbac.authorization.k8s.io
8+
name: ack-namespaces-cache-applicationautoscaling-controller
9+
subjects:
10+
- kind: ServiceAccount
11+
name: ack-applicationautoscaling-controller
12+
namespace: {{ .Release.Namespace }}
13+
---
14+
apiVersion: rbac.authorization.k8s.io/v1
15+
kind: RoleBinding
16+
metadata:
17+
name: ack-configmaps-cache-applicationautoscaling-controller
18+
namespace: {{ .Release.Namespace }}
19+
roleRef:
20+
kind: Role
21+
apiGroup: rbac.authorization.k8s.io
22+
name: ack-configmaps-cache-applicationautoscaling-controller
23+
subjects:
24+
- kind: ServiceAccount
25+
name: ack-applicationautoscaling-controller
26+
namespace: {{ .Release.Namespace }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: ClusterRole
3+
metadata:
4+
name: ack-namespaces-cache-applicationautoscaling-controller
5+
rules:
6+
- apiGroups:
7+
- ""
8+
resources:
9+
- namespaces
10+
verbs:
11+
- get
12+
- list
13+
- watch
14+
---
15+
apiVersion: rbac.authorization.k8s.io/v1
16+
kind: Role
17+
metadata:
18+
name: ack-configmaps-cache-applicationautoscaling-controller
19+
namespace: {{ .Release.Namespace }}
20+
rules:
21+
- apiGroups:
22+
- ""
23+
resources:
24+
- configmaps
25+
verbs:
26+
- get
27+
- list
28+
- watch
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,36 @@
1-
apiVersion: rbac.authorization.k8s.io/v1
21
{{ if eq .Values.installScope "cluster" }}
2+
apiVersion: rbac.authorization.k8s.io/v1
33
kind: ClusterRoleBinding
44
metadata:
5-
name: {{ include "app.fullname" . }}
5+
name: {{ include "ack-applicationautoscaling-controller.app.fullname" . }}
66
roleRef:
77
kind: ClusterRole
8-
{{ else }}
8+
apiGroup: rbac.authorization.k8s.io
9+
name: ack-applicationautoscaling-controller
10+
subjects:
11+
- kind: ServiceAccount
12+
name: {{ include "ack-applicationautoscaling-controller.service-account.name" . }}
13+
namespace: {{ .Release.Namespace }}
14+
{{ else if eq .Values.installScope "namespace" }}
15+
{{ $wn := include "ack-applicationautoscaling-controller.watch-namespace" . }}
16+
{{ $namespaces := split "," $wn }}
17+
{{ $fullname := include "ack-applicationautoscaling-controller.app.fullname" . }}
18+
{{ $releaseNamespace := .Release.Namespace }}
19+
{{ $serviceAccountName := include "ack-applicationautoscaling-controller.service-account.name" . }}
20+
{{ range $namespaces }}
21+
---
22+
apiVersion: rbac.authorization.k8s.io/v1
923
kind: RoleBinding
1024
metadata:
11-
name: {{ include "app.fullname" . }}
12-
namespace: {{ .Release.Namespace }}
25+
name: {{ $fullname }}
26+
namespace: {{ . }}
1327
roleRef:
1428
kind: Role
15-
{{ end }}
1629
apiGroup: rbac.authorization.k8s.io
1730
name: ack-applicationautoscaling-controller
1831
subjects:
1932
- kind: ServiceAccount
20-
name: {{ include "service-account.name" . }}
21-
namespace: {{ .Release.Namespace }}
33+
name: {{ $serviceAccountName }}
34+
namespace: {{ $releaseNamespace }}
35+
{{ end }}
36+
{{ end }}

0 commit comments

Comments
 (0)