Skip to content

Commit aa7d7af

Browse files
authored
Update to ACK runtime v0.26.0, code-generator v0.26.1 (#245)
### Update to ACK runtime `v0.26.0`, code-generator `v0.26.1` ---------- * ACK code-generator `v0.26.1` [release notes](https://github.com/aws-controllers-k8s/code-generator/releases/tag/v0.26.1) * ACK runtime `v0.26.0` [release notes](https://github.com/aws-controllers-k8s/runtime/releases/tag/v0.26.0) ---------- NOTE: This PR increments the release version of service controller from `v1.2.1` to `v1.2.2` Once this PR is merged, release `v1.2.2` will be automatically created for `sagemaker-controller` **Please close this PR, if you do not want the new patch release for `sagemaker-controller`** ---------- #### stdout for `make build-controller`: ``` building ack-generate ... ok. ==== building sagemaker-controller ==== Copying common custom resource definitions into sagemaker Building Kubernetes API objects for sagemaker Generating deepcopy code for sagemaker Generating custom resource definitions for sagemaker Building service controller for sagemaker Generating RBAC manifests for sagemaker Running gofmt against generated code for sagemaker Updating additional GitHub repository maintenance files ==== building sagemaker-controller release artifacts ==== Building release artifacts for sagemaker-v1.2.2 Generating common custom resource definitions Generating custom resource definitions for sagemaker Generating RBAC manifests for sagemaker ``` ---------- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent be0096d commit aa7d7af

File tree

56 files changed

+452
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+452
-344
lines changed

apis/v1alpha1/ack-generate-metadata.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ack_generate_info:
2-
build_date: "2023-03-22T22:11:35Z"
3-
build_hash: fa24753ea8b657d8815ae3eac7accd0958f5f9fb
2+
build_date: "2023-05-15T23:30:46Z"
3+
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3
44
go_version: go1.19
5-
version: v0.25.0
5+
version: v0.26.1
66
api_directory_checksum: 62a1b01c505efd55545d306c2353b9673ce344fb
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.44.218

cmd/controller/main.go

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

config/controller/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ spec:
7373
capabilities:
7474
drop:
7575
- ALL
76+
securityContext:
77+
seccompProfile:
78+
type: RuntimeDefault
7679
terminationGracePeriodSeconds: 10
7780
serviceAccountName: ack-sagemaker-controller
7881
hostIPC: false

config/controller/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ kind: Kustomization
66
images:
77
- name: controller
88
newName: public.ecr.aws/aws-controllers-k8s/sagemaker-controller
9-
newTag: v1.2.1
9+
newTag: 1.2.2

go.mod

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

55
require (
6-
github.com/aws-controllers-k8s/runtime v0.25.0
6+
github.com/aws-controllers-k8s/runtime v0.26.0
77
github.com/aws/aws-sdk-go v1.44.218
88
github.com/ghodss/yaml v1.0.0
99
github.com/go-logr/logr v1.2.3

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy
3838
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
3939
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
4040
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
41-
github.com/aws-controllers-k8s/runtime v0.25.0 h1:6SYa8qmbw+Yil5/LodF7LmIGxBhpjz4QEIvNjpeRuoc=
42-
github.com/aws-controllers-k8s/runtime v0.25.0/go.mod h1:jizDzKikL09cueIuA9ZxoZ+4pfn5U7oKW5s/ZAqOA6E=
41+
github.com/aws-controllers-k8s/runtime v0.26.0 h1:XKqygFzHSBtM74Ov9IroZbyCVeYei9Eskp4aKbJ2SFw=
42+
github.com/aws-controllers-k8s/runtime v0.26.0/go.mod h1:jizDzKikL09cueIuA9ZxoZ+4pfn5U7oKW5s/ZAqOA6E=
4343
github.com/aws/aws-sdk-go v1.44.218 h1:p707+xOCazWhkSpZOeyhtTcg7Z+asxxvueGgYPSitn4=
4444
github.com/aws/aws-sdk-go v1.44.218/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
4545
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=

helm/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v1
22
name: sagemaker-chart
33
description: A Helm chart for the ACK service controller for Amazon SageMaker (SageMaker)
4-
version: v1.2.1
5-
appVersion: v1.2.1
4+
version: 1.2.2
5+
appVersion: 1.2.2
66
home: https://github.com/aws-controllers-k8s/sagemaker-controller
77
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
88
sources:

helm/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/sagemaker-controller:v1.2.1".
2+
This chart deploys "public.ecr.aws/aws-controllers-k8s/sagemaker-controller:1.2.2".
33

44
Check its status by running:
55
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"

helm/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ If release name contains chart name it will be used as a full name.
3333

3434
{{- define "watch-namespace" -}}
3535
{{- if eq .Values.installScope "namespace" -}}
36-
{{- .Release.Namespace -}}
36+
{{ .Values.watchNamespace | default .Release.Namespace }}
3737
{{- end -}}
3838
{{- end -}}
3939

helm/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ spec:
116116
capabilities:
117117
drop:
118118
- ALL
119+
securityContext:
120+
seccompProfile:
121+
type: RuntimeDefault
119122
terminationGracePeriodSeconds: 10
120123
nodeSelector: {{ toYaml .Values.deployment.nodeSelector | nindent 8 }}
121124
{{ if .Values.deployment.tolerations -}}

helm/values.schema.json

+3
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@
196196
"type": "string",
197197
"enum": ["cluster", "namespace"]
198198
},
199+
"watchNamespace": {
200+
"type": "string"
201+
},
199202
"resourceTags": {
200203
"type": "array",
201204
"items": {

helm/values.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
image:
66
repository: public.ecr.aws/aws-controllers-k8s/sagemaker-controller
7-
tag: v1.2.1
7+
tag: 1.2.2
88
pullPolicy: IfNotPresent
99
pullSecrets: []
1010

@@ -31,7 +31,7 @@ deployment:
3131

3232
# If "installScope: cluster" then these labels will be applied to ClusterRole
3333
role:
34-
labels: {}
34+
labels: {}
3535

3636
metrics:
3737
service:
@@ -72,6 +72,10 @@ log:
7272
# cluster wide.
7373
installScope: cluster
7474

75+
# Set the value of the "namespace" to be watched by the controller
76+
# This value is only used when the `installScope` is set to "namespace". If left empty, the default value is the release namespace for the chart.
77+
watchNamespace: ""
78+
7579
resourceTags:
7680
# Configures the ACK service controller to always set key/value pairs tags on
7781
# resources that it manages.

pkg/resource/app/references.go

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

pkg/resource/app/resource.go

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

pkg/resource/data_quality_job_definition/references.go

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

pkg/resource/data_quality_job_definition/resource.go

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

pkg/resource/domain/references.go

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

pkg/resource/domain/resource.go

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

pkg/resource/endpoint/references.go

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

pkg/resource/endpoint/resource.go

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

0 commit comments

Comments
 (0)