Skip to content

Commit 0e9df5d

Browse files
authored
[create-pull-request] automated change
1 parent 9656f21 commit 0e9df5d

17 files changed

+968
-592
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.11
5+
appVersion: 1.0.11
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.11".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
+118-7
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,138 @@ 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" -}}
46+
{{- define "ack-applicationautoscaling-controller.aws.credentials.path" -}}
4747
{{- printf "%s/%s" (include "aws.credentials.secret_mount_path" .) .Values.aws.credentials.secretKey -}}
4848
{{- end -}}
49+
50+
{{/* The rules a of ClusterRole or Role */}}
51+
{{- define "ack-applicationautoscaling-controller.rbac-rules" -}}
52+
rules:
53+
- apiGroups:
54+
- ""
55+
resources:
56+
- configmaps
57+
verbs:
58+
- get
59+
- list
60+
- patch
61+
- watch
62+
- apiGroups:
63+
- ""
64+
resources:
65+
- namespaces
66+
verbs:
67+
- get
68+
- list
69+
- watch
70+
- apiGroups:
71+
- ""
72+
resources:
73+
- secrets
74+
verbs:
75+
- get
76+
- list
77+
- patch
78+
- watch
79+
- apiGroups:
80+
- applicationautoscaling.services.k8s.aws
81+
resources:
82+
- scalabletargets
83+
verbs:
84+
- create
85+
- delete
86+
- get
87+
- list
88+
- patch
89+
- update
90+
- watch
91+
- apiGroups:
92+
- applicationautoscaling.services.k8s.aws
93+
resources:
94+
- scalabletargets/status
95+
verbs:
96+
- get
97+
- patch
98+
- update
99+
- apiGroups:
100+
- applicationautoscaling.services.k8s.aws
101+
resources:
102+
- scalingpolicies
103+
verbs:
104+
- create
105+
- delete
106+
- get
107+
- list
108+
- patch
109+
- update
110+
- watch
111+
- apiGroups:
112+
- applicationautoscaling.services.k8s.aws
113+
resources:
114+
- scalingpolicies/status
115+
verbs:
116+
- get
117+
- patch
118+
- update
119+
- apiGroups:
120+
- services.k8s.aws
121+
resources:
122+
- adoptedresources
123+
verbs:
124+
- create
125+
- delete
126+
- get
127+
- list
128+
- patch
129+
- update
130+
- watch
131+
- apiGroups:
132+
- services.k8s.aws
133+
resources:
134+
- adoptedresources/status
135+
verbs:
136+
- get
137+
- patch
138+
- update
139+
- apiGroups:
140+
- services.k8s.aws
141+
resources:
142+
- fieldexports
143+
verbs:
144+
- create
145+
- delete
146+
- get
147+
- list
148+
- patch
149+
- update
150+
- watch
151+
- apiGroups:
152+
- services.k8s.aws
153+
resources:
154+
- fieldexports/status
155+
verbs:
156+
- get
157+
- patch
158+
- update
159+
{{- 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)