Skip to content
Open
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
10 changes: 10 additions & 0 deletions .github/workflows/postsubmit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Hydrate Go Proxy

on:
push:
branches:
- main

jobs:
call-hydrate-go-proxy:
uses: aws-controllers-k8s/.github/.github/workflows/reusable-postsubmit.yaml@main

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 5 days ago

To fix this issue, add a permissions block to the workflow file .github/workflows/postsubmit.yaml. The block should be placed at the root, above the jobs: key, making the permission settings apply to all jobs unless overridden by the reusable workflow or within specific jobs. As the optimal least-privilege configuration depends on what the invoked workflow and jobs do, a safe starting point is contents: read, which is the most restrictive and recommended by GitHub for workflows that do not require write access; you can add other entries (like pull-requests: write) only if required. Since the shown code doesn't indicate any write operations, using only contents: read is appropriate.

Edit the file .github/workflows/postsubmit.yaml to add:

permissions:
  contents: read

This should be inserted after the name: and before the on: line.

No other methods, imports, or changes are required for this fix.


Suggested changeset 1
.github/workflows/postsubmit.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/postsubmit.yaml b/.github/workflows/postsubmit.yaml
--- a/.github/workflows/postsubmit.yaml
+++ b/.github/workflows/postsubmit.yaml
@@ -1,4 +1,6 @@
 name: Hydrate Go Proxy
+permissions:
+  contents: read
 
 on:
   push:
EOF
@@ -1,4 +1,6 @@
name: Hydrate Go Proxy
permissions:
contents: read

on:
push:
Copilot is powered by AI and may make mistakes. Always verify output.
4 changes: 1 addition & 3 deletions OWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# See the OWNERS docs at https://go.k8s.io/owners

approvers:
- core-ack-team
reviewers:
- sagemaker-ack-team
- core-ack-team
7 changes: 1 addition & 6 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ aliases:
# - mhausenblas
# - RedbackThomson
# - vijtrip2
# - ivelichkovich
sagemaker-ack-team:
- surajkota
- ryansteakley
- ananth102
- sirutBuasai
# - ivelichkovich
6 changes: 3 additions & 3 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ack_generate_info:
build_date: "2025-11-12T22:32:38Z"
build_hash: c833f2d14f4fe8953663ff92f4661ae5fb01b8c8
build_date: "2025-11-23T08:57:57Z"
build_hash: e922bb8587f26eeed72a531e5d92389b81e8b55b
go_version: go1.25.4
version: v0.53.1
version: v0.54.0
api_directory_checksum: cdae97bbaa2ee28d0f130fa6ce3a7dfbf6393d1b
api_version: v1alpha1
aws_sdk_go_version: v1.39.2
Expand Down
2 changes: 1 addition & 1 deletion config/controller/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ kind: Kustomization
images:
- name: controller
newName: public.ecr.aws/aws-controllers-k8s/sagemaker-controller
newTag: 1.5.1
newTag: 1.5.2
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.24.0
toolchain go1.24.1

require (
github.com/aws-controllers-k8s/runtime v0.53.1
github.com/aws-controllers-k8s/runtime v0.54.1
github.com/aws/aws-sdk-go v1.55.6
github.com/aws/aws-sdk-go-v2 v1.39.2
github.com/aws/aws-sdk-go-v2/service/sagemaker v1.215.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/aws-controllers-k8s/runtime v0.53.1 h1:l9MkR1KfZW8H8icT5rrRK3pdnVVA4io/eINVe5aspWs=
github.com/aws-controllers-k8s/runtime v0.53.1/go.mod h1:OkUJN+Ds799JLYZsMJrO2vDJ4snxUeHK2MgrQHbU+Qc=
github.com/aws-controllers-k8s/runtime v0.54.1 h1:0mbCJELz3t7jbG4abNecF0yeRd8YeFZQPr7nnzr8DC8=
github.com/aws-controllers-k8s/runtime v0.54.1/go.mod h1:OkUJN+Ds799JLYZsMJrO2vDJ4snxUeHK2MgrQHbU+Qc=
github.com/aws/aws-sdk-go v1.55.6 h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk=
github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQHfHkpNU=
github.com/aws/aws-sdk-go-v2 v1.39.2 h1:EJLg8IdbzgeD7xgvZ+I8M1e0fL0ptn/M47lianzth0I=
Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
name: sagemaker-chart
description: A Helm chart for the ACK service controller for Amazon SageMaker (SageMaker)
version: 1.5.1
appVersion: 1.5.1
version: 1.5.2
appVersion: 1.5.2
home: https://github.com/aws-controllers-k8s/sagemaker-controller
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
sources:
Expand Down
2 changes: 1 addition & 1 deletion helm/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ .Chart.Name }} has been installed.
This chart deploys "public.ecr.aws/aws-controllers-k8s/sagemaker-controller:1.5.1".
This chart deploys "public.ecr.aws/aws-controllers-k8s/sagemaker-controller:1.5.2".

Check its status by running:
kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
Expand Down
5 changes: 4 additions & 1 deletion helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

image:
repository: public.ecr.aws/aws-controllers-k8s/sagemaker-controller
tag: 1.5.1
tag: 1.5.2
pullPolicy: IfNotPresent
pullSecrets: []

Expand Down Expand Up @@ -120,8 +120,11 @@ watchSelectors: ""
resourceTags:
# Configures the ACK service controller to always set key/value pairs tags on
# resources that it manages.
# Note: Tags with empty values are automatically skipped to keep resources clean.
- services.k8s.aws/controller-version=%CONTROLLER_SERVICE%-%CONTROLLER_VERSION%
- services.k8s.aws/namespace=%K8S_NAMESPACE%
- app.kubernetes.io/managed-by=%MANAGED_BY%
- kro.run/kro-version=%KRO_VERSION%

# Set to "retain" to keep all AWS resources intact even after the K8s resources
# have been deleted. By default, the ACK controller will delete the AWS resource
Expand Down
29 changes: 21 additions & 8 deletions pkg/resource/app/manager.go

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

12 changes: 6 additions & 6 deletions pkg/resource/app/tags.go

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

29 changes: 21 additions & 8 deletions pkg/resource/data_quality_job_definition/manager.go

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

12 changes: 6 additions & 6 deletions pkg/resource/data_quality_job_definition/tags.go

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

29 changes: 21 additions & 8 deletions pkg/resource/domain/manager.go

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

12 changes: 6 additions & 6 deletions pkg/resource/domain/tags.go

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

29 changes: 21 additions & 8 deletions pkg/resource/endpoint/manager.go

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

12 changes: 6 additions & 6 deletions pkg/resource/endpoint/tags.go

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

Loading
Loading