Skip to content
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
12 changes: 6 additions & 6 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: "2023-05-15T23:45:27Z"
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
go_version: go1.19
version: v0.26.1
api_directory_checksum: e2bcdcfd015dd5528e4df8745ede3ffccfd4e683
build_date: "2023-07-17T18:30:35Z"
build_hash: e9b68590da73ce9143ba1e4361cebdc1d876c81e
go_version: go1.20.3
version: v0.26.1-7-ge9b6859
api_directory_checksum: 2f681761d3417cd3c65709b6dc71d9853bdf0481
api_version: v1alpha1
aws_sdk_go_version: v1.44.93
generator_config_info:
file_checksum: 554ef2519945f32ea8788a1add7a3c496c944d88
file_checksum: e4f89494b4e355fb756095b55c95050a23efa0b3
original_file_name: generator.yaml
last_modification:
reason: API generation
20 changes: 20 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,28 @@ resources:
- InvalidDomainName
- InvalidInput
- InvalidVPCId
fields:
Tags:
from:
operation: ChangeTagsForResource
path: AddTags
compare:
is_ignored: True
hooks:
delta_pre_compare:
code: compareTags(delta, a, b)
sdk_read_one_post_set_output:
template_path: hooks/hosted_zone/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/hosted_zone/sdk_create_post_set_output.go.tpl
sdk_create_post_build_request:
template_path: hooks/hosted_zone/sdk_create_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/hosted_zone/sdk_file_end.go.tpl
ensure_tags:
template_path: hooks/hosted_zone/sdk_ensure_tags.go.tpl

tags:
ignore: true
update_operation:
custom_method_name: customUpdateHostedZone
6 changes: 6 additions & 0 deletions apis/v1alpha1/hosted_zone.go

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

12 changes: 12 additions & 0 deletions apis/v1alpha1/types.go

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

62 changes: 62 additions & 0 deletions apis/v1alpha1/zz_generated.deepcopy.go

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

16 changes: 16 additions & 0 deletions config/crd/bases/route53.services.k8s.aws_hostedzones.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ spec:
your domain to the set of NameServers that CreateHostedZone returns
in DelegationSet."
type: string
tags:
description: "A complex type that contains a list of the tags that
you want to add to the specified health check or hosted zone and/or
the tags that you want to edit Value for. \n You can add a maximum
of 10 tags to a health check or a hosted zone."
items:
description: A complex type that contains information about a tag
that you want to add or edit for the specified health check or
hosted zone.
properties:
key:
type: string
value:
type: string
type: object
type: array
vpc:
description: "(Private hosted zones only) A complex type that contains
information about the Amazon VPC that you're associating with this
Expand Down
20 changes: 20 additions & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,28 @@ resources:
- InvalidDomainName
- InvalidInput
- InvalidVPCId
fields:
Tags:
from:
operation: ChangeTagsForResource
path: AddTags
compare:
is_ignored: True
hooks:
delta_pre_compare:
code: compareTags(delta, a, b)
sdk_read_one_post_set_output:
template_path: hooks/hosted_zone/sdk_read_one_post_set_output.go.tpl
sdk_create_post_set_output:
template_path: hooks/hosted_zone/sdk_create_post_set_output.go.tpl
sdk_create_post_build_request:
template_path: hooks/hosted_zone/sdk_create_post_build_request.go.tpl
sdk_file_end:
template_path: hooks/hosted_zone/sdk_file_end.go.tpl
ensure_tags:
template_path: hooks/hosted_zone/sdk_ensure_tags.go.tpl

tags:
ignore: true
update_operation:
custom_method_name: customUpdateHostedZone
16 changes: 16 additions & 0 deletions helm/crds/route53.services.k8s.aws_hostedzones.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ spec:
your domain to the set of NameServers that CreateHostedZone returns
in DelegationSet."
type: string
tags:
description: "A complex type that contains a list of the tags that
you want to add to the specified health check or hosted zone and/or
the tags that you want to edit Value for. \n You can add a maximum
of 10 tags to a health check or a hosted zone."
items:
description: A complex type that contains information about a tag
that you want to add or edit for the specified health check or
hosted zone.
properties:
key:
type: string
value:
type: string
type: object
type: array
vpc:
description: "(Private hosted zones only) A complex type that contains
information about the Amazon VPC that you're associating with this
Expand Down
15 changes: 14 additions & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
{{- if .Values.deployment.annotations }}
annotations:
{{- range $key, $value := .Values.deployment.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "app.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down Expand Up @@ -104,11 +106,19 @@ spec:
value: {{ include "aws.credentials.path" . }}
- name: AWS_PROFILE
value: {{ .Values.aws.credentials.profile }}
{{- end }}
{{- if .Values.deployment.extraEnvVars -}}
{{ toYaml .Values.deployment.extraEnvVars | nindent 8 }}
{{- end }}
volumeMounts:
{{- if .Values.aws.credentials.secretName }}
- name: {{ .Values.aws.credentials.secretName }}
mountPath: {{ include "aws.credentials.secret_mount_path" . }}
readOnly: true
{{- end }}
{{- if .Values.deployment.extraVolumeMounts -}}
{{ toYaml .Values.deployment.extraVolumeMounts | nindent 12 }}
{{- end }}
securityContext:
allowPrivilegeEscalation: false
privileged: false
Expand All @@ -133,9 +143,12 @@ spec:
hostIPC: false
hostNetwork: false
hostPID: false
{{ if .Values.aws.credentials.secretName -}}
volumes:
{{- if .Values.aws.credentials.secretName -}}
- name: {{ .Values.aws.credentials.secretName }}
secret:
secretName: {{ .Values.aws.credentials.secretName }}
{{ end -}}
{{- if .Values.deployment.extraVolumes }}
{{ toYaml .Values.deployment.extraVolumes | indent 8}}
{{- end }}
9 changes: 9 additions & 0 deletions helm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@
},
"priorityClassName": {
"type": "string"
},
"extraVolumeMounts": {
"type": "array"
},
"extraVolumes": {
"type": "array"
},
"extraEnvVars": {
"type": "array"
}
},
"required": [
Expand Down
22 changes: 21 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,26 @@ deployment:
# Which priorityClassName to set?
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
priorityClassName: ""
extraVolumes: []
extraVolumeMounts: []

# Additional server container environment variables
#
# You specify this manually like you would a raw deployment manifest.
# This means you can bind in environment variables from secrets.
#
# e.g. static environment variable:
# - name: DEMO_GREETING
# value: "Hello from the environment"
#
# e.g. secret environment variable:
# - name: USERNAME
# valueFrom:
# secretKeyRef:
# name: mysecret
# key: username
extraEnvVars: []


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

Expand Down
1 change: 1 addition & 0 deletions pkg/resource/hosted_zone/delta.go

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

Loading