Skip to content

Commit e76fca8

Browse files
authored
Update ACK runtime to 'v0.13.2' (#13)
### Update ACK runtime to 'v0.13.2' #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building dynamodb-controller ==== Copying common custom resource definitions into dynamodb Building Kubernetes API objects for dynamodb Generating deepcopy code for dynamodb Generating custom resource definitions for dynamodb Building service controller for dynamodb Generating RBAC manifests for dynamodb Running gofmt against generated code for dynamodb ==== building dynamodb-controller release artifacts ==== Building release artifacts for dynamodb-v0.0.5 Generating common custom resource definitions Generating custom resource definitions for dynamodb Generating RBAC manifests for dynamodb ``` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent d25c74a commit e76fca8

25 files changed

+246
-75
lines changed

Diff for: apis/v1alpha1/ack-generate-metadata.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2021-08-20T14:19:51Z"
3-
build_hash: 821a0daf362fdda8148046310c3eb478b96366ac
4-
go_version: go1.16.4 linux/amd64
5-
version: v0.12.0
2+
build_date: "2021-09-08T23:04:58Z"
3+
build_hash: 394e8294aabf0b221c35f7a5c7bc7e4e43bc6f10
4+
go_version: go1.15 linux/amd64
5+
version: v0.13.2
66
api_directory_checksum: c1d144a18336326f141e97e6800b47f64ed992cc
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.38.47
@@ -11,4 +11,4 @@ generator_config_info:
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-08-20 14:20:10.007364776 +0000 UTC
14+
timestamp: 2021-09-08 23:05:04.710045865 +0000 UTC

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/aws-controllers-k8s/dynamodb-controller
33
go 1.14
44

55
require (
6-
github.com/aws-controllers-k8s/runtime v0.12.0
6+
github.com/aws-controllers-k8s/runtime v0.13.2
77
github.com/aws/aws-sdk-go v1.38.47
88
github.com/go-logr/logr v0.1.0
99
github.com/spf13/pflag v1.0.5

Diff for: go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo
2323
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
2424
github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
2525
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
26-
github.com/aws-controllers-k8s/runtime v0.12.0 h1:G/lCEozh4Brsv1Ojqyl9D/whpq/YvcFtDZBWXf6YIgI=
27-
github.com/aws-controllers-k8s/runtime v0.12.0/go.mod h1:kG2WM4JAmLgf67cgZV9IZUkY2DsrUzsaNbmhFMfb05c=
26+
github.com/aws-controllers-k8s/runtime v0.13.2 h1:+gVwW4dTndPb4lB0WNLdHeiP7AGBOV+wBHGjpQUOh+w=
27+
github.com/aws-controllers-k8s/runtime v0.13.2/go.mod h1:kG2WM4JAmLgf67cgZV9IZUkY2DsrUzsaNbmhFMfb05c=
2828
github.com/aws/aws-sdk-go v1.37.10/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
2929
github.com/aws/aws-sdk-go v1.38.47 h1:yWOz6zlDCiY3zvebYOZrI1LqCq6zWPWC5Cfe+mBcPos=
3030
github.com/aws/aws-sdk-go v1.38.47/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=

Diff for: helm/Chart.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
apiVersion: v1
2-
name: ack-dynamodb-controller
3-
description: A Helm chart for the ACK service controller for dynamodb
4-
version: v0.0.4
5-
appVersion: v0.0.4
2+
name: dynamodb-chart
3+
description: A Helm chart for the ACK service controller for Amazon DynamoDB (DynamoDB)
4+
version: v0.0.5
5+
appVersion: v0.0.5
66
home: https://github.com/aws-controllers-k8s/dynamodb-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:
99
- https://github.com/aws-controllers-k8s/dynamodb-controller
1010
maintainers:
1111
- name: ACK Admins
1212
url: https://github.com/orgs/aws-controllers-k8s/teams/ack-admin
13-
- name: dynamodb Admins
13+
- name: DynamoDB Admins
1414
url: https://github.com/orgs/aws-controllers-k8s/teams/dynamodb-maintainer
1515
keywords:
1616
- aws

Diff for: helm/crds/dynamodb.services.k8s.aws_backups.yaml

+1-1
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: backups.dynamodb.services.k8s.aws
1010
spec:

Diff for: helm/crds/dynamodb.services.k8s.aws_globaltables.yaml

+1-1
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: globaltables.dynamodb.services.k8s.aws
1010
spec:

Diff for: helm/crds/dynamodb.services.k8s.aws_tables.yaml

+1-1
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: tables.dynamodb.services.k8s.aws
1010
spec:

Diff for: helm/crds/services.k8s.aws_adoptedresources.yaml

+1-1
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: adoptedresources.services.k8s.aws
1010
spec:

Diff for: helm/templates/_helpers.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ If release name contains chart name it will be used as a full name.
3030
{{- define "service-account.name" -}}
3131
{{ default "default" .Values.serviceAccount.name }}
3232
{{- end -}}
33+
34+
{{- define "watch-namespace" -}}
35+
{{- if eq .Values.installScope "namespace" -}}
36+
{{- .Release.Namespace -}}
37+
{{- end -}}
38+
{{- end -}}

Diff for: helm/templates/cluster-role-binding.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
apiVersion: rbac.authorization.k8s.io/v1
2+
{{ if eq .Values.installScope "cluster" }}
23
kind: ClusterRoleBinding
34
metadata:
45
name: {{ include "app.fullname" . }}
56
roleRef:
6-
apiGroup: rbac.authorization.k8s.io
77
kind: ClusterRole
8-
name: {{ include "app.name" . }}
8+
{{ else }}
9+
kind: RoleBinding
10+
metadata:
11+
name: {{ include "app.fullname" . }}
12+
namespace: {{ .Release.Namespace }}
13+
roleRef:
14+
kind: Role
15+
{{ end }}
16+
apiGroup: rbac.authorization.k8s.io
17+
name: ack-dynamodb-controller
918
subjects:
1019
- kind: ServiceAccount
1120
name: {{ include "service-account.name" . }}

Diff for: helm/templates/cluster-role-controller.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
2-
---
31
apiVersion: rbac.authorization.k8s.io/v1
2+
{{ if eq .Values.installScope "cluster" }}
43
kind: ClusterRole
54
metadata:
65
creationTimestamp: null
76
name: ack-dynamodb-controller
7+
{{ else }}
8+
kind: Role
9+
metadata:
10+
creationTimestamp: null
11+
name: ack-dynamodb-controller
12+
namespace: {{ .Release.Namespace }}
13+
{{ end }}
814
rules:
915
- apiGroups:
1016
- ""

Diff for: helm/templates/deployment.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ spec:
4141
- "$(AWS_ACCOUNT_ID)"
4242
- --aws-region
4343
- "$(AWS_REGION)"
44+
- --aws-endpoint-url
45+
- "$(AWS_ENDPOINT_URL)"
4446
- --enable-development-logging
4547
- "$(ACK_ENABLE_DEVELOPMENT_LOGGING)"
4648
- --log-level
@@ -64,8 +66,10 @@ spec:
6466
value: {{ .Values.aws.account_id | quote }}
6567
- name: AWS_REGION
6668
value: {{ .Values.aws.region }}
69+
- name: AWS_ENDPOINT_URL
70+
value: {{ .Values.aws.endpoint_url | quote }}
6771
- name: ACK_WATCH_NAMESPACE
68-
value: {{ .Values.watchNamespace }}
72+
value: {{ include "watch-namespace" . }}
6973
- name: ACK_ENABLE_DEVELOPMENT_LOGGING
7074
value: {{ .Values.log.enable_development_logging | quote }}
7175
- name: ACK_LOG_LEVEL

Diff for: helm/values.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Declare variables to be passed into your templates.
44

55
image:
6-
repository: public.ecr.aws/aws-controllers-k8s/controller
7-
tag: dynamodb-v0.0.4
6+
repository: public.ecr.aws/aws-controllers-k8s/dynamodb-controller
7+
tag: v0.0.5
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

@@ -37,17 +37,21 @@ aws:
3737
# If specified, use the AWS region for AWS API calls
3838
region: ""
3939
account_id: ""
40+
endpoint_url: ""
4041

4142
# log level for the controller
4243
log:
4344
enable_development_logging: false
4445
level: info
4546

46-
# If specified, the service controller will watch for object creation only in the provided namespace
47-
watchNamespace: ""
47+
# Set to "namespace" to install the controller in a namespaced scope, will only
48+
# watch for object creation in the namespace. By default installScope is
49+
# cluster wide.
50+
installScope: cluster
4851

4952
resourceTags:
50-
# Configures the ACK service controller to always set key/value pairs tags on resources that it manages.
53+
# Configures the ACK service controller to always set key/value pairs tags on
54+
# resources that it manages.
5155
- services.k8s.aws/managed=true
5256
- services.k8s.aws/created=%UTCNOW%
5357
- services.k8s.aws/namespace=%KUBERNETES_NAMESPACE%

Diff for: pkg/resource/backup/delta.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pkg/resource/backup/manager.go

+27-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pkg/resource/backup/resource.go

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pkg/resource/backup/sdk.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pkg/resource/global_table/delta.go

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)