Skip to content

Commit 24d29ad

Browse files
committed
run make build-controller (#1790)
1 parent 5536f4e commit 24d29ad

11 files changed

+224
-14
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2023-05-15T23:40:33Z"
3-
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
4-
go_version: go1.19
5-
version: v0.26.1
6-
api_directory_checksum: 62a4051ba2ded255ad270b491703d3c14440b2c7
2+
build_date: "2023-07-19T16:13:01Z"
3+
build_hash: e9b68590da73ce9143ba1e4361cebdc1d876c81e
4+
go_version: go1.20.5
5+
version: v0.26.1-7-ge9b6859
6+
api_directory_checksum: 7d367fcbd95521797ddaf41af226deeac4098ff3
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.93
99
generator_config_info:
10-
file_checksum: 0b7493aa8cdf19370936a973ed31804875d2dfba
10+
file_checksum: ea20b9278b1e6fd3ac21b86489db529358940a2d
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

Diff for: apis/v1alpha1/generator.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ resources:
2323
from:
2424
operation: UpdateTimeToLive
2525
path: TimeToLiveSpecification
26+
ContinuousBackups:
27+
from:
28+
operation: UpdateContinuousBackups
29+
path: PointInTimeRecoverySpecification
2630
AttributeDefinitions:
2731
compare:
2832
is_ignored: true
@@ -134,4 +138,4 @@ resources:
134138
type: string
135139
- name: STATUS
136140
json_path: .status.backupStatus
137-
type: string
141+
type: string

Diff for: apis/v1alpha1/table.go

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

Diff for: apis/v1alpha1/types.go

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

Diff for: apis/v1alpha1/zz_generated.deepcopy.go

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

Diff for: config/crd/bases/dynamodb.services.k8s.aws_tables.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ spec:
7575
workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode
7676
(https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand)."
7777
type: string
78+
continuousBackups:
79+
description: Represents the settings used to enable point in time
80+
recovery.
81+
properties:
82+
pointInTimeRecoveryEnabled:
83+
type: boolean
84+
type: object
7885
globalSecondaryIndexes:
7986
description: "One or more global secondary indexes (the maximum is
8087
20) to be created on the table. Each global secondary index in the

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

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ spec:
7575
workloads. PAY_PER_REQUEST sets the billing mode to On-Demand Mode
7676
(https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand)."
7777
type: string
78+
continuousBackups:
79+
description: Represents the settings used to enable point in time
80+
recovery.
81+
properties:
82+
pointInTimeRecoveryEnabled:
83+
type: boolean
84+
type: object
7885
globalSecondaryIndexes:
7986
description: "One or more global secondary indexes (the maximum is
8087
20) to be created on the table. Each global secondary index in the

Diff for: helm/templates/deployment.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ spec:
1818
app.kubernetes.io/instance: {{ .Release.Name }}
1919
template:
2020
metadata:
21+
{{- if .Values.deployment.annotations }}
2122
annotations:
2223
{{- range $key, $value := .Values.deployment.annotations }}
2324
{{ $key }}: {{ $value | quote }}
2425
{{- end }}
26+
{{- end }}
2527
labels:
2628
app.kubernetes.io/name: {{ include "app.name" . }}
2729
app.kubernetes.io/instance: {{ .Release.Name }}
@@ -104,11 +106,19 @@ spec:
104106
value: {{ include "aws.credentials.path" . }}
105107
- name: AWS_PROFILE
106108
value: {{ .Values.aws.credentials.profile }}
109+
{{- end }}
110+
{{- if .Values.deployment.extraEnvVars -}}
111+
{{ toYaml .Values.deployment.extraEnvVars | nindent 8 }}
112+
{{- end }}
107113
volumeMounts:
114+
{{- if .Values.aws.credentials.secretName }}
108115
- name: {{ .Values.aws.credentials.secretName }}
109116
mountPath: {{ include "aws.credentials.secret_mount_path" . }}
110117
readOnly: true
111118
{{- end }}
119+
{{- if .Values.deployment.extraVolumeMounts -}}
120+
{{ toYaml .Values.deployment.extraVolumeMounts | nindent 12 }}
121+
{{- end }}
112122
securityContext:
113123
allowPrivilegeEscalation: false
114124
privileged: false
@@ -133,9 +143,12 @@ spec:
133143
hostIPC: false
134144
hostNetwork: false
135145
hostPID: false
136-
{{ if .Values.aws.credentials.secretName -}}
137146
volumes:
147+
{{- if .Values.aws.credentials.secretName -}}
138148
- name: {{ .Values.aws.credentials.secretName }}
139149
secret:
140150
secretName: {{ .Values.aws.credentials.secretName }}
141151
{{ end -}}
152+
{{- if .Values.deployment.extraVolumes }}
153+
{{ toYaml .Values.deployment.extraVolumes | indent 8}}
154+
{{- end }}

Diff for: helm/values.schema.json

+9
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@
5858
},
5959
"priorityClassName": {
6060
"type": "string"
61+
},
62+
"extraVolumeMounts": {
63+
"type": "array"
64+
},
65+
"extraVolumes": {
66+
"type": "array"
67+
},
68+
"extraEnvVars": {
69+
"type": "array"
6170
}
6271
},
6372
"required": [

Diff for: helm/values.yaml

+21-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,26 @@ deployment:
2828
# Which priorityClassName to set?
2929
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
3030
priorityClassName: ""
31+
extraVolumes: []
32+
extraVolumeMounts: []
33+
34+
# Additional server container environment variables
35+
#
36+
# You specify this manually like you would a raw deployment manifest.
37+
# This means you can bind in environment variables from secrets.
38+
#
39+
# e.g. static environment variable:
40+
# - name: DEMO_GREETING
41+
# value: "Hello from the environment"
42+
#
43+
# e.g. secret environment variable:
44+
# - name: USERNAME
45+
# valueFrom:
46+
# secretKeyRef:
47+
# name: mysecret
48+
# key: username
49+
extraEnvVars: []
50+
3151

3252
# If "installScope: cluster" then these labels will be applied to ClusterRole
3353
role:
@@ -90,7 +110,7 @@ deletionPolicy: delete
90110
# controller reconciliation configurations
91111
reconcile:
92112
# The default duration, in seconds, to wait before resyncing desired state of custom resources.
93-
defaultResyncPeriod: 0
113+
defaultResyncPeriod: 36000 # 10 Hours
94114
# An object representing the reconcile resync configuration for each specific resource.
95115
resourceResyncPeriods: {}
96116

0 commit comments

Comments
 (0)