Skip to content

Support Table tags updates #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2021-10-27T21:04:06Z"
build_hash: d2b063806d25cfcae4f2d4eb44f8e3f713b23e8e
go_version: go1.15
build_date: "2021-12-22T13:40:06Z"
build_hash: 6f17f51682dc0d16c36aa456fd22855ce9282fbc
go_version: go1.16.4
version: v0.15.2
api_directory_checksum: c1d144a18336326f141e97e6800b47f64ed992cc
api_version: v1alpha1
aws_sdk_go_version: v1.38.47
generator_config_info:
file_checksum: 3d4ab94742ecf92212b94a5e47bdda8258589718
file_checksum: 2c5f9585b1b0356e601e17efc7f5c47bdabdf4ab
original_file_name: generator.yaml
last_modification:
reason: API generation
10 changes: 8 additions & 2 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ operations:
primary_identifier_field_name: BackupArn
resources:
Table:
fields:
Tags:
compare:
is_ignored: true
exceptions:
errors:
404:
Expand All @@ -15,11 +19,13 @@ resources:
- InternalServerError
- LimitExceededException
- ResourceInUseException
update_operation:
custom_method_name: customUpdateTable
hooks:
delta_pre_compare:
code: customPreCompare(delta, a, b)
sdk_read_one_post_set_output:
template_path: hooks/table/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/table/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/table/sdk_delete_pre_build_request.go.tpl
GlobalTable:
Expand Down
10 changes: 8 additions & 2 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ operations:
primary_identifier_field_name: BackupArn
resources:
Table:
fields:
Tags:
compare:
is_ignored: true
exceptions:
errors:
404:
Expand All @@ -15,11 +19,13 @@ resources:
- InternalServerError
- LimitExceededException
- ResourceInUseException
update_operation:
custom_method_name: customUpdateTable
hooks:
delta_pre_compare:
code: customPreCompare(delta, a, b)
sdk_read_one_post_set_output:
template_path: hooks/table/sdk_read_one_post_set_output.go.tpl
sdk_update_pre_build_request:
template_path: hooks/table/sdk_update_pre_build_request.go.tpl
sdk_delete_pre_build_request:
template_path: hooks/table/sdk_delete_pre_build_request.go.tpl
GlobalTable:
Expand Down
9 changes: 9 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,12 @@ spec:
value: {{ join "," .Values.resourceTags | quote }}
terminationGracePeriodSeconds: 10
nodeSelector: {{ toYaml .Values.deployment.nodeSelector | nindent 8 }}
{{ if .Values.deployment.tolerations -}}
tolerations: {{ toYaml .Values.deployment.tolerations | nindent 8 }}
{{ end -}}
{{ if .Values.deployment.affinity -}}
affinity: {{ toYaml .Values.deployment.affinity | nindent 8 }}
{{ end -}}
{{ if .Values.deployment.priorityClassName -}}
priorityClassName: {{ .Values.deployment.priorityClassName -}}
{{ end -}}
13 changes: 12 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@ deployment:
annotations: {}
labels: {}
containerPort: 8080
# Which nodeSelector to set?
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
nodeSelector:
kubernetes.io/os: linux

# Which tolerations to set?
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
tolerations: {}
# What affinity to set?
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity
affinity: {}
# Which priorityClassName to set?
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
priorityClassName:

metrics:
service:
# Set to true to automatically create a Kubernetes Service resource for the
Expand Down
4 changes: 0 additions & 4 deletions pkg/resource/backup/sdk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pkg/resource/table/delta.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading