Compare commits

...
9 Commits
Author SHA1 Message Date
github-actions[bot]andGitHub 5eb8bf4b8b chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-12-04 03:20:23 +00:00
1056a36dbf ci(pr): grant actions read and stop using the deprecated Requeue
* ci(pr): grant actions read so the shared PR checks start

go-pr.yaml's CodeQL job asks for actions: read. A reusable workflow cannot ask
for more than its caller grants, so the whole PR run failed at startup with no
jobs. Grant the missing scope.

* refactor(controller): use RequeueAfter instead of the deprecated Requeue

controller-runtime deprecates Result.Requeue (SA1019), which the PR checks now
report because they finally start. Requeue after 30 seconds, the interval the
cluster image controller already uses for its max-parallel wait.

---------

Co-authored-by: Bug Fixer <[email protected]>
2026-12-03 07:29:35 +00:00
github-actions[bot]andGitHub 37e7f71dfb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-12-03 03:26:59 +00:00
github-actions[bot]andGitHub 8c32067412 chore(deps): update module github.com/aws/aws-sdk-go-v2/service/s3 to v1.117.0
Automated dependency update. All tests passed.
2026-12-02 03:19:52 +00:00
github-actions[bot]andGitHub ecf934e33b chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-30 03:19:38 +00:00
github-actions[bot]andGitHub 3b8cc6af5e chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-28 03:15:36 +00:00
github-actions[bot]andGitHub 66e5c856e9 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-27 03:12:55 +00:00
github-actions[bot]andGitHub 4f4efaf2f2 chore(deps): update module go.opentelemetry.io/auto/sdk to v1.2.2
Automated dependency update. All tests passed.
2026-11-23 03:16:43 +00:00
github-actions[bot]andGitHub f6672cfb07 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-22 03:14:22 +00:00
6 changed files with 149 additions and 148 deletions
+1
View File
@@ -10,6 +10,7 @@ concurrency:
cancel-in-progress: true
permissions:
actions: read
contents: read
pull-requests: write
security-events: write
+40 -40
View File
@@ -3,19 +3,19 @@ module github.com/lukaszraczylo/kubernetes-images-sync-operator
go 1.26.0
require (
github.com/aws/aws-sdk-go-v2 v1.48.0
github.com/aws/aws-sdk-go-v2/config v1.33.20
github.com/aws/aws-sdk-go-v2/credentials v1.21.2
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0
github.com/aws/aws-sdk-go-v2/service/sts v1.52.0
github.com/aws/aws-sdk-go-v2 v1.49.0
github.com/aws/aws-sdk-go-v2/config v1.33.25
github.com/aws/aws-sdk-go-v2/credentials v1.21.7
github.com/aws/aws-sdk-go-v2/service/s3 v1.117.1
github.com/aws/aws-sdk-go-v2/service/sts v1.54.0
github.com/go-logr/logr v1.4.4
github.com/onsi/ginkgo/v2 v2.34.0
github.com/onsi/ginkgo/v2 v2.35.0
github.com/onsi/gomega v1.44.0
github.com/spf13/cobra v1.10.2
github.com/stretchr/testify v1.12.1
k8s.io/api v0.37.2
k8s.io/apimachinery v0.37.2
k8s.io/client-go v0.37.2
k8s.io/api v0.37.3
k8s.io/apimachinery v0.37.3
k8s.io/client-go v0.37.3
k8s.io/utils v0.0.0-20261023123148-ca04ba58ecab
sigs.k8s.io/controller-runtime v0.25.3
)
@@ -24,19 +24,19 @@ require (
cel.dev/expr v0.26.0 // indirect
github.com/Masterminds/semver/v3 v3.5.0 // indirect
github.com/antlr4-go/antlr/v4 v4.13.1 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 // indirect
github.com/aws/smithy-go v1.28.9 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.29 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.12 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.15 // indirect
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.15 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.27 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.16 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.15 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.15 // indirect
github.com/aws/aws-sdk-go-v2/service/signin v1.14.3 // indirect
github.com/aws/aws-sdk-go-v2/service/sso v1.39.8 // indirect
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.8 // indirect
github.com/aws/smithy-go v1.28.13 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
@@ -51,18 +51,18 @@ require (
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-openapi/jsonpointer v1.0.3 // indirect
github.com/go-openapi/jsonreference v1.0.3 // indirect
github.com/go-openapi/swag v0.29.2 // indirect
github.com/go-openapi/swag/cmdutils v0.29.2 // indirect
github.com/go-openapi/swag/conv v0.29.2 // indirect
github.com/go-openapi/swag/fileutils v0.29.2 // indirect
github.com/go-openapi/swag/jsonutils v0.29.2 // indirect
github.com/go-openapi/swag/loading v0.29.2 // indirect
github.com/go-openapi/swag/mangling v0.29.2 // indirect
github.com/go-openapi/swag/netutils v0.29.2 // indirect
github.com/go-openapi/swag/pools v0.29.2 // indirect
github.com/go-openapi/swag/stringutils v0.29.2 // indirect
github.com/go-openapi/swag/typeutils v0.29.2 // indirect
github.com/go-openapi/swag/yamlutils v0.29.2 // indirect
github.com/go-openapi/swag v0.29.3 // indirect
github.com/go-openapi/swag/cmdutils v0.29.3 // indirect
github.com/go-openapi/swag/conv v0.29.3 // indirect
github.com/go-openapi/swag/fileutils v0.29.3 // indirect
github.com/go-openapi/swag/jsonutils v0.29.3 // indirect
github.com/go-openapi/swag/loading v0.29.3 // indirect
github.com/go-openapi/swag/mangling v0.29.3 // indirect
github.com/go-openapi/swag/netutils v0.29.3 // indirect
github.com/go-openapi/swag/pools v0.29.3 // indirect
github.com/go-openapi/swag/stringutils v0.29.3 // indirect
github.com/go-openapi/swag/typeutils v0.29.3 // indirect
github.com/go-openapi/swag/yamlutils v0.29.3 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/google/cel-go v0.31.0 // indirect
github.com/google/gnostic-models v0.7.1 // indirect
@@ -83,7 +83,7 @@ require (
github.com/prometheus/procfs v0.23.0 // indirect
github.com/spf13/pflag v1.1.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/auto/sdk v1.2.2 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 // indirect
go.opentelemetry.io/otel v1.47.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect
@@ -114,13 +114,13 @@ require (
google.golang.org/protobuf v1.36.12 // indirect
gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
k8s.io/apiextensions-apiserver v0.37.2 // indirect
k8s.io/apiserver v0.37.2 // indirect
k8s.io/component-base v0.37.2 // indirect
k8s.io/apiextensions-apiserver v0.37.3 // indirect
k8s.io/apiserver v0.37.3 // indirect
k8s.io/component-base v0.37.3 // indirect
k8s.io/klog/v2 v2.140.0 // indirect
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad // indirect
k8s.io/streaming v0.37.2 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.1 // indirect
k8s.io/streaming v0.37.3 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.2 // indirect
sigs.k8s.io/json v0.0.0-20260909141634-11ed52e25bc5 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v6 v6.4.2 // indirect
+84 -84
View File
@@ -4,42 +4,42 @@ github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAw
github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=
github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw=
github.com/aws/aws-sdk-go-v2 v1.48.0 h1:tFU7EJVm7MfyaXLsXdYTZ0Vd6vwt9OljCyqq0gqk0Mc=
github.com/aws/aws-sdk-go-v2 v1.48.0/go.mod h1:oeKU5p+TQBnpeLmU42WZLWvzv+ORLn+74n4QVLnm/Z0=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 h1:3dMP9eEmHVosFN1QiD24IJBKVY8m6iUfVYXqRCT118Q=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27/go.mod h1:KH4PKcqtjy1m0656eqQV2v53xE04ddJzuNloEKqlHkI=
github.com/aws/aws-sdk-go-v2/config v1.33.20 h1:tcppf3ihhY8KsiVN5NJAN4uMlHc9NZrPRhkSuBTkqag=
github.com/aws/aws-sdk-go-v2/config v1.33.20/go.mod h1:WErTFkC327Fgt5x4SZHD2t1L64HTRb2kW42SqzEWxnA=
github.com/aws/aws-sdk-go-v2/credentials v1.21.2 h1:PWB8NaorQv2OzyNjXMy6RjBh+HzneyxY2ECC58jV600=
github.com/aws/aws-sdk-go-v2/credentials v1.21.2/go.mod h1:N/A5a+8LDrdI9pcr4ZjuHuQIHU5km3rtDuVzt+xW2C4=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 h1:oH1E0tjN0g+ZRusbX1dsuat4FJ0z05l8hWaycSbDuNc=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9/go.mod h1:3ZaQGigIoaS45x9HgnLZ4sP475Fs7QoxU3IsZX/J3h4=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 h1:W0yUUzKBA8SofGQ0yZafEUuZq9UxfvijRgdc6vcRQPA=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12/go.mod h1:xwKv6vwBNdpPFOxEm/ld4IODZK2s/1ksHvdBqLfH6Gs=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12 h1:lqSi8qvAnKC1vfosImdmOsuiJLr/jdybZX5299beB6Q=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12/go.mod h1:rqPQE2vqkW9YHx5+Gp55sx1wsTM4xtGQLl+TKMjxxrs=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12 h1:uvX2yaL+aMjkmnrLPPlR/zwjoKFRMoNhhJfeGjfk6qc=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12/go.mod h1:dicT+2eNhHHqGkxHO7LoXw3QghIUGuzgdmFqaSTopgI=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25 h1:rKwkY3Z+fvt2W0msjdNs6uNewPmXzPayQ961oyuWhes=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25/go.mod h1:dBuAadQKd1F4Q4ZOg8gnFmuSHMRE40Pe3IfFwbtC4lE=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13 h1:U5HZ8FpTr6tyvulf1nT11Nw4KG1CAsXkuQGdUrIjZ/E=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13/go.mod h1:dUfvCU1NaE+b3vqNENDiJncUQW7Djl5pmgUlcjesVqk=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12 h1:wzAqMZ2O4+ij9HQqIrk+P9PBGacE0wOTuWB7Mo97//I=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12/go.mod h1:/0TfyruByHsOlphzP26xDTRe2DKD0J1I1Uyy2TyP8EI=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 h1:H0IaQayT3TLiGIHiNnleQZTbndDlx7LGZ0NWZ5mDwjA=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12/go.mod h1:YuJJNxaOjnknLIrscBmkLhIpnmg9LzHd25sQRKUboGU=
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0 h1:0/glEMW6lLpeGOq7tDKn3314ookbLSvzRs71Oknt6gA=
github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0/go.mod h1:8NhAIBVYkVHq0hIbbzujdoou0VkKwMdG+De9e5oX6qI=
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 h1:bIEk1HfTd3MGzvDa5YOQUodGr96D9+UTnmBLBB8ZJ10=
github.com/aws/aws-sdk-go-v2/service/signin v1.14.0/go.mod h1:LdwHjKqPE9VCC7sTlWcOAizZx3ZJYjmfwC/EW2tIIAE=
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 h1:ANAoa+qt3/9kXnvQVgUyxcTzhzZf4DqaBS+M2DQrELU=
github.com/aws/aws-sdk-go-v2/service/sso v1.39.5/go.mod h1:vsMi+SSR7xGQXtV430LVi49qbv/R+U+upHHSp1W/+QI=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 h1:uIOBLMhef4N16WguadoHKuBy9etdz+RKTeqzchXErAI=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5/go.mod h1:NwWmkFLtsTVyXQpbzPOlYLwEoANkdCFjJRtrNcbg/vY=
github.com/aws/aws-sdk-go-v2/service/sts v1.52.0 h1:IaBLmJWiIEtKkjXMgMbYGZk7WKXbYA8148wCMCXq9hU=
github.com/aws/aws-sdk-go-v2/service/sts v1.52.0/go.mod h1:MG6N8U9+lY4LqchrlHPqCOSr7hyxw70XU0Et2YR3eNA=
github.com/aws/smithy-go v1.28.9 h1:zkZ058OpNX0iGTK24b+ZUEQSMc11CBA6oO7xtKZfzkY=
github.com/aws/smithy-go v1.28.9/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
github.com/aws/aws-sdk-go-v2 v1.49.0 h1:nfIScsXPSCz+vXIKz49IjNPHmC4oT72SLPVc8P0OBbU=
github.com/aws/aws-sdk-go-v2 v1.49.0/go.mod h1:XwfdWCjuiyYPbYF4ObLoa5I25KjV0ry6d105smVjNKY=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.29 h1:LfdRwpJ0Dfh+vpqHevmmnFnMoc3/lfB4pdHOfWpLfH4=
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.29/go.mod h1:r6fijnrGRQ4OnSGyHYuFcC7G6wdwB4Ld8WhiIaGZHx0=
github.com/aws/aws-sdk-go-v2/config v1.33.25 h1:dcb1dA3N4ACXRxSIDKNSqplFMwy8wCf+CMLc3UIzxOc=
github.com/aws/aws-sdk-go-v2/config v1.33.25/go.mod h1:r53NM09IWscZ+6CiR0VHDYdSKazgyEQFqeUONVdD3ok=
github.com/aws/aws-sdk-go-v2/credentials v1.21.7 h1:KtckEwHoY6AlldyiX4QAtekiL0S/AITVIYdqZnWWWcA=
github.com/aws/aws-sdk-go-v2/credentials v1.21.7/go.mod h1:YnM7TYbV1J65/yn/4E0Rnj9A/UO2OTeiGNZP8tcYKRw=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.12 h1:iVrZnlJUz886rp/2yOWxK+AbtR8ZwVNVO2kE3//Bgc8=
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.12/go.mod h1:fLzXWXb9TJfRF5BzXeQaX6FInXezaQq8Uz0BRmMGuUE=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.15 h1:Y0fe1Hcly/OSHtSWzuQrXGt3RtRjso063UbwZgyCHyQ=
github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.15/go.mod h1:52lvlO6umU2TRGxZJfCtjOR6xnbJotZD11mmzhJLQzI=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.15 h1:g2qcH0dUfjjigOI+HQB3DLXDq/8c84uH1ii/SDkwatg=
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.15/go.mod h1:yGE7vsxRwTs6YBSYcE1j/KNA7EmAGEgBX+TAH0AAvk0=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.15 h1:XKIkHY7yRHnTJrixMmcA1qIm3qenDe/vmOtf/xiuWYE=
github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.15/go.mod h1:HqYW3gHCQl0tF6dO7kXgc0wFe1Yng0hgCEI7Xa3rK54=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.27 h1:2jIfOe8ZuoStxOkRtVU45zxgvt/qeIRChhm2USOS6g8=
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.27/go.mod h1:LpMjYa8iT3kMkAxsVCGfyXkBDOOKsziY6S2wSpEvY70=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.16 h1:D2smhPZgqVLuc8rmuvb6wrG4sgut9iv1BN8W2twFtfo=
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.16/go.mod h1:HheOgBYcgoZgeKSLVEmk9whxHERlVXAKTVWK3xizKeo=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.15 h1:ds6Pm/S5xYXPmiqyebd0AeK0zHAAO7qHP1+JZauFnpA=
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.15/go.mod h1:WqaHpxUhwzsE+NYp2TQitKclpwhi1XYp6wMsdg+yd/k=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.15 h1:5w2E7ndu7XOt62yvu2vGm/Rv7WDn1oQjrJ7Dt1NTVTM=
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.15/go.mod h1:1WgfBCsJYL6E7T2QkkE8kQvo7uG+5+z2LpaQ9L6pjZs=
github.com/aws/aws-sdk-go-v2/service/s3 v1.117.1 h1:fOeEIKMlgwKbMFSNMM+pLo2NPRJ1dSKbaAuZYGXUVR0=
github.com/aws/aws-sdk-go-v2/service/s3 v1.117.1/go.mod h1:xHaAZkbYuIc9UtLZxdoeyhzmx06g1paDjPkHgljJU/I=
github.com/aws/aws-sdk-go-v2/service/signin v1.14.3 h1:iWgA/aDj99JAb3VO5PWw9iF5weoTQm7wxLEMT0Ex/MY=
github.com/aws/aws-sdk-go-v2/service/signin v1.14.3/go.mod h1:7YfGlRtvWLx6EfPOM89plg0AcIyuFqOHhfK2iMCOI34=
github.com/aws/aws-sdk-go-v2/service/sso v1.39.8 h1:0fKFg9h8VR5qEHNgDn7CRMvYSsZHl0sBsMyeWsF6YXc=
github.com/aws/aws-sdk-go-v2/service/sso v1.39.8/go.mod h1:0zVH+3FrAkRJ7da4EBDyfEGKTsvXK3sgyjw7FnohF3g=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.8 h1:SDuU4vlszzKfTlvNejSjcP1bye5vcrgZF6Ru3hybNsU=
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.8/go.mod h1:Un05dkqLD6qwNJCHqtXiAWkj+2lKJ4aeXaAy/3fdrEA=
github.com/aws/aws-sdk-go-v2/service/sts v1.54.0 h1:DU77JKbCAMbgk/02a25f+TNk+t6PoR3K7bhOXKULeDM=
github.com/aws/aws-sdk-go-v2/service/sts v1.54.0/go.mod h1:3skcGfglqLhKpz95YNfXrpAZAFZz8OYkj/MH5JxDxkI=
github.com/aws/smithy-go v1.28.13 h1:cBdveQH7NJe99gJKArwOKc11/57r17Gjq374TgDs6LY=
github.com/aws/smithy-go v1.28.13/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
@@ -82,34 +82,34 @@ github.com/go-openapi/jsonpointer v1.0.3 h1:iEtrz/inxw+0za5lr10whyxplQdwJruNoQAF
github.com/go-openapi/jsonpointer v1.0.3/go.mod h1:rf2X/7HDNST8NkSpeV5gTOJeCZXwcIHyVbr5CPiWSDU=
github.com/go-openapi/jsonreference v1.0.3 h1:5rDbq+JsjCv6/nUDDJt83nLZoADI4w03uvHXer+4aYQ=
github.com/go-openapi/jsonreference v1.0.3/go.mod h1:OJSlMXHysgH272D9z2tiy2MGe5A9vQLHaCPb6KbYdE4=
github.com/go-openapi/swag v0.29.2 h1:9n8frkcsuQRA0INU31VbxNxt1zBaHxrHYGEf5BUjFi4=
github.com/go-openapi/swag v0.29.2/go.mod h1:RkCiX1gCVXWgLOavDXE3ALJrQ/VO2ziiIzOUs3z10xo=
github.com/go-openapi/swag/cmdutils v0.29.2 h1:cXEzX/nWCODon251f+1HgL75/R4XXML5IZxgLCWMoro=
github.com/go-openapi/swag/cmdutils v0.29.2/go.mod h1:XziaSVzYqkDvpWXzASfWajw2YvJrLscq610O2XiyqJw=
github.com/go-openapi/swag/conv v0.29.2 h1:8c9shoB8l0QRSR6ymq1llHdBWDqpIgJfjTGHx3Vuhm0=
github.com/go-openapi/swag/conv v0.29.2/go.mod h1:AZS0YigTNf8qNtD6WqJz/N4RUNmpr76SyjFGkq4+p6Q=
github.com/go-openapi/swag/fileutils v0.29.2 h1:mdUL+Vw5ah1fO1AvFCoHeIyv7YZsCz2MN3KNqd/lLVI=
github.com/go-openapi/swag/fileutils v0.29.2/go.mod h1:7QKmmodjAebaq61lGVJa8ldLdGeMF4DSgYv8tXOGGo0=
github.com/go-openapi/swag/jsonutils v0.29.2 h1:uZNSD2/rJDYAfvsLYkykTzXuyxM3QpDKV9jhRHrMu6k=
github.com/go-openapi/swag/jsonutils v0.29.2/go.mod h1:ONTdNvj3Y+IXRzfa17E+Rgt2ns/qiSOYjIo2K7v2yDs=
github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.2 h1:w+Fd6EBOMGlC74GYGHqCLGyb3Bpams8TtNrgM/SG4jo=
github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.2/go.mod h1:HC2egPORFzbj/gf05Zrfgz8Mgplx3oW7hgGi7pjZVhM=
github.com/go-openapi/swag/loading v0.29.2 h1:QU1ry24e6r6Shoxe380Nx0X5iKkpRO+hJffsyJ2dVlY=
github.com/go-openapi/swag/loading v0.29.2/go.mod h1:DqilDjuiJKETecsS4TRopWG1acUDsfqN39ZmQhPu6uI=
github.com/go-openapi/swag/mangling v0.29.2 h1:ltdo3K0tTP4P6zWhVVWDU9D37/YYBuMJRdZxiS2Dtog=
github.com/go-openapi/swag/mangling v0.29.2/go.mod h1:RjDi4TnItAenS3cgCXSpIl1kKbjG7il6pnmQVl/8bp8=
github.com/go-openapi/swag/netutils v0.29.2 h1:dBli6jyUa93sDS/XYWShJzf4+nnVfFKfvY9SLUaUzB8=
github.com/go-openapi/swag/netutils v0.29.2/go.mod h1:1pM6Xg/Um8E1eps3umWl8Hme3ByWXOtHsvFC0CULHUE=
github.com/go-openapi/swag/pools v0.29.2 h1:PlGoDRF8WtSyXkedZZkpW3f9wDhFf3u8KtaBcmgmh8c=
github.com/go-openapi/swag/pools v0.29.2/go.mod h1:V3lhxVT4qDYRqc2MRSSbLsTYIYV/2HlHafhyEkmzLIc=
github.com/go-openapi/swag/stringutils v0.29.2 h1:lcnBxwAaysT3bMUVBfn9V/PkfVqkurpqufKU6rTUMGk=
github.com/go-openapi/swag/stringutils v0.29.2/go.mod h1:i9cdh7sGaa0nm3CqIvH5IM5h2QClk1wns2ktKeILvRI=
github.com/go-openapi/swag/typeutils v0.29.2 h1:O7aVvkTs3pXwikgtrPLenigEMdQFgONKRooQA9pgf2I=
github.com/go-openapi/swag/typeutils v0.29.2/go.mod h1:7+GDG+uz9Ke+eVt4rClZg7wklSDp8hT/mKNh/pC26TE=
github.com/go-openapi/swag/yamlutils v0.29.2 h1:IFKFFeDnuIwzfsuWRQU+rI8iL3g4XyAYjV/RlnlxPLM=
github.com/go-openapi/swag/yamlutils v0.29.2/go.mod h1:7MGqtcrK73sxQ4ceiyIf8qiXS/s09JLMdR5esK5euYQ=
github.com/go-openapi/testify/enable/yaml/v2 v2.7.0 h1:wPW6YRgx3+SID1yUy/Xwa17L8kFEaEKod2VRbJDZNUs=
github.com/go-openapi/testify/enable/yaml/v2 v2.7.0/go.mod h1:mI1M88etYbc3PhgHsWQK2kwvNwW5aGFqMPbmib+SGIs=
github.com/go-openapi/swag v0.29.3 h1:SzBuixgab/AJksPECXpV8w0oIkXZr6Z2IC9hx3dMmmI=
github.com/go-openapi/swag v0.29.3/go.mod h1:tAnDRnwrvLV7t+idPU9VK7iJWyQfTEahGO8IQ3vVrik=
github.com/go-openapi/swag/cmdutils v0.29.3 h1:8uVCR5cuRuZ9J+ewkYL7cp4fJETkepb8AOBVHwnoy7M=
github.com/go-openapi/swag/cmdutils v0.29.3/go.mod h1:XziaSVzYqkDvpWXzASfWajw2YvJrLscq610O2XiyqJw=
github.com/go-openapi/swag/conv v0.29.3 h1:/vaxRbi6PfPJ7g6HqvmdJ0IPyKkANeo+HtkJh/QDdrQ=
github.com/go-openapi/swag/conv v0.29.3/go.mod h1:Qd/EJRmzwUilbXMtNR9qh+U7NIH+oCx14TWyC4pzZWM=
github.com/go-openapi/swag/fileutils v0.29.3 h1:p+4vok5vLSAO4D59z2pF/jDTh3cm0QyOjfJ2mzwwh7s=
github.com/go-openapi/swag/fileutils v0.29.3/go.mod h1:QuX/4l/zjt26j94viIATatgVnCCrdxwd7JRBUOm2cyw=
github.com/go-openapi/swag/jsonutils v0.29.3 h1:9vZ8Qvxw61RBnV4k5BAUpRhA4dDXabIGscG3DWOkEgM=
github.com/go-openapi/swag/jsonutils v0.29.3/go.mod h1:RRDDZ0z9hqlhP5hM8/YX1H1FI5wBJn8FZSX0mXR+gzQ=
github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.3 h1:hTWVgH+1bz2YGDZ2JsaZPz4lLcn492ggFR3bwQxFmvE=
github.com/go-openapi/swag/jsonutils/fixtures_test v0.29.3/go.mod h1:/mwNNvXkSpl+PekNdh4LGVhFrwECVqIf+DE4MGbGXHE=
github.com/go-openapi/swag/loading v0.29.3 h1:vQR/DlDXYSTacBh7sDLX8GGKLa34K9XP0ZnIf4znzqg=
github.com/go-openapi/swag/loading v0.29.3/go.mod h1:UTHC1ElgJgd6hyDWLKsQQQ+ctOpbGou9Li0bU6YXWOA=
github.com/go-openapi/swag/mangling v0.29.3 h1:bZYiYi7nn+G1Ou7YFKJi63HL2upZWYaE+2cuUThp6N0=
github.com/go-openapi/swag/mangling v0.29.3/go.mod h1:4QdO0G7O0URCr2YNDE8n243Xn2sQuTUO3BtJDIQHy0k=
github.com/go-openapi/swag/netutils v0.29.3 h1:w5qCxSl4HEoVoMa2pxzr10Y0K5FZ+T5Gyg9bCNXyWE8=
github.com/go-openapi/swag/netutils v0.29.3/go.mod h1:EADoBrxE4M4SGwfe0KIOtBhr7cEbc3Ilm6tOmtND8So=
github.com/go-openapi/swag/pools v0.29.3 h1:EPno+8co2WEVgXxplC1DDLVHKZ5KJIWBVTz2wf7psgc=
github.com/go-openapi/swag/pools v0.29.3/go.mod h1:sha8gSzKH7U9rGlVpkKQzlicApUrxNsCzxGxzcFWpbs=
github.com/go-openapi/swag/stringutils v0.29.3 h1:M3ZYfZ4TjQtWtEqPq6uw1g2N74hb/EnD5SK6Uj1264U=
github.com/go-openapi/swag/stringutils v0.29.3/go.mod h1:xHQlugcQB3hFAt/3nOxOxfo4aogLZScAro76qHyl6Uc=
github.com/go-openapi/swag/typeutils v0.29.3 h1:iNE6NAhIIq0uoTVVrKJO9omcHIiF93Evkwr5PcLN2mk=
github.com/go-openapi/swag/typeutils v0.29.3/go.mod h1:uwx2j8FylxfLFKAfoD/GDfxNMDm6dqeJ+aQzIXVzsgU=
github.com/go-openapi/swag/yamlutils v0.29.3 h1:9BhUEKQ87xMfDo6T9HPIdWW9oa4A6S/SSkvqsz2FwMw=
github.com/go-openapi/swag/yamlutils v0.29.3/go.mod h1:6QCYkEw0MIl5erPgiYKdrr7NDEU5Hvg1DsHBrL/wuA8=
github.com/go-openapi/testify/enable/yaml/v2 v2.8.1 h1:BIMg/qqur4MXPPHLE3nftDfHdXrw5GwZEsNEw7zraYA=
github.com/go-openapi/testify/enable/yaml/v2 v2.8.1/go.mod h1:74sM7nseyEwJFZ9yRNI77kCQAM5h8nZ4TmXI86voDHs=
github.com/go-openapi/testify/v2 v2.8.1 h1:zk3S6KaDY1iQW91vsOJc25Ql1xm5bhPrZKdnL930bRQ=
github.com/go-openapi/testify/v2 v2.8.1/go.mod h1:4gUN8jC+RqOE2qjW/vDmfyTvl5BCht4qL7oca0odrak=
github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=
@@ -159,8 +159,8 @@ github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee h1:W5t00kpgFd
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/onsi/ginkgo/v2 v2.34.0 h1:aN3Us823mHHTSWMIi8WIQTdYuSPhl2lWY46E/w3SiAk=
github.com/onsi/ginkgo/v2 v2.34.0/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44=
github.com/onsi/ginkgo/v2 v2.35.0 h1:bXLYavpuf1yqS7jK8p2ifQ7D9eN8N0DjQhgD24QPNcE=
github.com/onsi/ginkgo/v2 v2.35.0/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44=
github.com/onsi/gomega v1.44.0 h1:eAiGl3Pw5jz5GQdDff0BcxYpAX1JxW8xD7mFUuwNfZQ=
github.com/onsi/gomega v1.44.0/go.mod h1:e/C2HwaZ1DhvjzXXuFhcR7hY7Sh9pl7MmoWKEjzwcdA=
github.com/pandatix/go-abnf v0.5.5 h1:EXex5KkRQx4Dm6GnpAcQnIMBs9KiK0uf8p/wq+4t9PM=
@@ -202,8 +202,8 @@ github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
go.opentelemetry.io/auto/sdk v1.2.2 h1:ErNn7NW2t1F9CFBLb9iyPMyLRbcEd07l5m/StCe9AEE=
go.opentelemetry.io/auto/sdk v1.2.2/go.mod h1:Ca3X8ec6gdTYjAirla//dnp05ECtQPfN4Ut74OJLVsQ=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0 h1:LxwW/9ctSCv+QkE/cLR7M91ZIkXNMqJtEMi1vCw9U8s=
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.72.0/go.mod h1:tOsftB4SslBwwErVEPaenU2RpThXWPIU8DoJHEC4dyw=
go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
@@ -272,28 +272,28 @@ gopkg.in/evanphx/json-patch.v4 v4.13.0 h1:czT3CmqEaQ1aanPc5SdlgQrrEIb8w/wwCvWWnf
gopkg.in/evanphx/json-patch.v4 v4.13.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M=
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
k8s.io/api v0.37.2 h1:PnxqnUFy93jr2GcpWDkKOm8wfy25kT9wa572MuQS8oc=
k8s.io/api v0.37.2/go.mod h1:+NVRLft99kx+Jg9v34GmHw867Dapim89TSyCsn2hK+M=
k8s.io/apiextensions-apiserver v0.37.2 h1:myaUiAlm1NRLYdpAvWYTqdgeiCepFupJiRFVVueMUYw=
k8s.io/apiextensions-apiserver v0.37.2/go.mod h1:BFl1aPC89HsgFgYI+3xpFtckvkAeenDTZP84njA9yw4=
k8s.io/apimachinery v0.37.2 h1:G4t9RGoPDbQML38hz/kQQiltttgd3egg2ODCR8aIc2o=
k8s.io/apimachinery v0.37.2/go.mod h1:qaAvSNvgU2x07wRM95MSHSJTPQ/ob/LeNAGbeDgqQJg=
k8s.io/apiserver v0.37.2 h1:9Jq73PeHAA0RThpW7ou6lBcO2+SxLcPrAgleONSMUNQ=
k8s.io/apiserver v0.37.2/go.mod h1:d0P4WZtt6XMYAo6VN8dDPRnvY3O34quI3pOuxtfgAgM=
k8s.io/client-go v0.37.2 h1:sgFtyRZukGkOrsu+QgS7LYnbFFJ5ut3MchdBNduD//E=
k8s.io/client-go v0.37.2/go.mod h1:bo3LFC8YbCtKFPX21Yj8puMsoJLAv/+SvuOODma0s54=
k8s.io/component-base v0.37.2 h1:Ia9IKTg1yWrUntJU5lVetapkC9pXlLg9L6P3R1IkbcY=
k8s.io/component-base v0.37.2/go.mod h1:qq+ueHZyLfzRJzxyDoyxHWNhF1JPv4zm3hcaddXWDvY=
k8s.io/api v0.37.3 h1:FJiwAdL36Qacogp5Q78ANthlzjGHHOo3cNYsI3p4F7I=
k8s.io/api v0.37.3/go.mod h1:o60SYkL1mnbKTXxr01zf7OaRG6aAErSzdOXEmcjVsNw=
k8s.io/apiextensions-apiserver v0.37.3 h1:U66onuXqgzTNfIhH1v7f/kE7MaChTk4nwefHDK9eILo=
k8s.io/apiextensions-apiserver v0.37.3/go.mod h1:fPIcqp/IUDG9pP1jtj/Hs9cp9+isQS/P/ig7qo7+aks=
k8s.io/apimachinery v0.37.3 h1:0fC5KINyhJo/QZBIkJ2IeqdWtrI+0WGNAFMnTE8HIjI=
k8s.io/apimachinery v0.37.3/go.mod h1:OsyLAd4Zzn4L724/ZEQPnH0a6Kn282D6B4LEh8RZ7EM=
k8s.io/apiserver v0.37.3 h1:8n5UkXHQ13bcIAoNS3jlMqqZXpHevmwpR9HeTDHKvyc=
k8s.io/apiserver v0.37.3/go.mod h1:zkGrArBIDfNBOOcnDdqKA7ONoLxSk21MooEY6KGv4Us=
k8s.io/client-go v0.37.3 h1:lWCiKUqAZ4KRcRyvT0tc4+Z0oZM9mzEjdjvIuw0F+RE=
k8s.io/client-go v0.37.3/go.mod h1:4AMX9QbbAtkVjM+Uq+D6wxcEBKLoDFvoAyXuV5IyWtE=
k8s.io/component-base v0.37.3 h1:65+3BfMXHmKugOX6Obcj/Z22D6bHzCk5J7CUUdvAyaQ=
k8s.io/component-base v0.37.3/go.mod h1:QFmbg3XLOgnvmJYbaO+rPcY/PlPZWcDyJYec2UqferI=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=
k8s.io/klog/v2 v2.140.0/go.mod h1:o+/RWfJ6PwpnFn7OyAG3QnO47BFsymfEfrz6XyYSSp0=
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad h1:oXImqH8mQNk7PmvzKhmN3ddJoY6OnyM225MXwGHPm0A=
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad/go.mod h1:0/mqHCVhlumdJ3BhCfnjSZQE037nAhNodh1/hK0T8/I=
k8s.io/streaming v0.37.2 h1:xmzp9nbqIbjvsRcqrBYa+K5XPQ6Jy/Dm3zZ8mN916AI=
k8s.io/streaming v0.37.2/go.mod h1:APlJR26ZWRcVy5bIEj0QRrKUXROtBHPcxl2NT7EAzPU=
k8s.io/streaming v0.37.3 h1:keJ5eovA+b5g2wLO49PlaaOb9vy4DKK5U+BMYhEBNso=
k8s.io/streaming v0.37.3/go.mod h1:APlJR26ZWRcVy5bIEj0QRrKUXROtBHPcxl2NT7EAzPU=
k8s.io/utils v0.0.0-20261023123148-ca04ba58ecab h1:pjQrNLaF//ytZtWwCAHtW+pqwSKjtWDqzA8+TCX37RI=
k8s.io/utils v0.0.0-20261023123148-ca04ba58ecab/go.mod h1:DdQ0BJxlQtuMlKDqdg7X5IMMQCXIk2b3d1/4M9OhUYo=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.1 h1:Z8IysACZCkfmQSEvnjS02RL289YhiikfVhvZHeQOCTA=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.1/go.mod h1:qiDd08RUV/IZ/Wv0rQzrI0glxB/OcEgzEpdKMwmeng0=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.2 h1:yZmaCveHESCipD6f3cfAhQLqPwtx9TH4IYZfVzLkuOo=
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.37.2/go.mod h1:qiDd08RUV/IZ/Wv0rQzrI0glxB/OcEgzEpdKMwmeng0=
sigs.k8s.io/controller-runtime v0.25.3 h1:b4OcZSY/aKHY8JG+rBlQmQ1xLs574+ZBEjv1dtfLd80=
sigs.k8s.io/controller-runtime v0.25.3/go.mod h1:4QqLdT6z/L6Olj8JJCtvztid4/fnIiYsfaTFScegctc=
sigs.k8s.io/json v0.0.0-20260909141634-11ed52e25bc5 h1:k9jo7ED/fsfOcz3L1P20P5tjTNtsdQNwMOG2aKzHrl8=
@@ -74,12 +74,12 @@ func (r *ClusterImageReconciler) Reconcile(ctx context.Context, req ctrl.Request
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status to PENDING")
return ctrl.Result{}, err
}
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
// If we've reached the maximum number of parallel jobs, requeue
@@ -128,7 +128,7 @@ func (r *ClusterImageReconciler) handlePendingClusterImage(ctx context.Context,
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status")
return ctrl.Result{}, err
@@ -161,7 +161,7 @@ func (r *ClusterImageReconciler) handlePendingClusterImage(ctx context.Context,
r.ActiveJobs++
r.activeJobsMu.Unlock()
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
func (r *ClusterImageReconciler) handleRunningClusterImage(ctx context.Context, clusterImage *raczylocomv1.ClusterImage, l logr.Logger) (ctrl.Result, error) {
@@ -204,13 +204,13 @@ func (r *ClusterImageReconciler) handleRunningClusterImage(ctx context.Context,
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status after job not found")
return ctrl.Result{}, err
}
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to check for existing job")
return ctrl.Result{}, err
@@ -232,7 +232,7 @@ func (r *ClusterImageReconciler) handleRunningClusterImage(ctx context.Context,
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status to SUCCESS")
return ctrl.Result{}, err
@@ -264,14 +264,14 @@ func (r *ClusterImageReconciler) handleRunningClusterImage(ctx context.Context,
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status for retry")
return ctrl.Result{}, err
}
// Requeue immediately to create a new job
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
// Get latest version before updating status
@@ -285,7 +285,7 @@ func (r *ClusterImageReconciler) handleRunningClusterImage(ctx context.Context,
if err := r.Status().Update(ctx, latest); err != nil {
if errors.IsConflict(err) {
// Resource was modified, requeue and try again
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Error(err, "unable to update ClusterImage status to FAILED")
return ctrl.Result{}, err
@@ -481,7 +481,7 @@ func (r *ClusterImageReconciler) updateClusterImageExportStatus(ctx context.Cont
// If there are still pending or running images, requeue
if !allCompleted {
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
return ctrl.Result{}, nil
@@ -251,10 +251,10 @@ func (r *ClusterImageExportReconciler) Reconcile(ctx context.Context, req ctrl.R
// If there are still pending images, requeue
if pendingCount > 0 {
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
// updateStatusWithRetry attempts to update the status of a ClusterImageExport with retries
@@ -351,21 +351,21 @@ func (r *ClusterImageExportReconciler) handleDeletion(ctx context.Context, clust
}
if err := r.Delete(ctx, existingJob, &deleteOptions); err != nil && !errors.IsNotFound(err) {
l.Error(err, "Failed to delete existing cleanup job")
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
l.Info("Successfully deleted existing cleanup job", "job", jobName)
// Requeue to wait for job deletion to complete
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
} else if !errors.IsNotFound(err) {
// Unexpected error
l.Error(err, "Error checking for existing cleanup job")
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
// Create new cleanup job
if err := r.runCleanupJob(ctx, clusterImageExport); err != nil {
l.Error(err, "Failed to create cleanup job")
return ctrl.Result{Requeue: true}, nil
return ctrl.Result{RequeueAfter: time.Second * 30}, nil
}
// Only remove finalizer after cleanup job is created successfully
@@ -162,7 +162,7 @@ func (s *ControllerTestSuite) TestClusterImageReconcile_InitialStatus_Pending()
result, err := reconciler.Reconcile(s.ctx, req)
require.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
// Verify status was updated to PENDING
updatedImage := &raczylocomv1.ClusterImage{}
@@ -529,7 +529,7 @@ func (s *ControllerTestSuite) TestClusterImage_ConcurrentUpdates() {
// First reconciliation should set status to PENDING
result, err := reconciler.Reconcile(s.ctx, req)
assert.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
// Verify status was set
finalImage := &raczylocomv1.ClusterImage{}
@@ -633,7 +633,7 @@ func (s *ControllerTestSuite) TestClusterImage_SHAPinnedImages() {
result, err := reconciler.Reconcile(s.ctx, req)
assert.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
}
func (s *ControllerTestSuite) TestClusterImage_MultipleRegistries() {
@@ -678,7 +678,7 @@ func (s *ControllerTestSuite) TestClusterImage_MultipleRegistries() {
result, err := reconciler.Reconcile(s.ctx, req)
assert.NoError(s.T(), err, "Failed for registry: %s", reg.name)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
}
}
@@ -785,7 +785,7 @@ func (s *ControllerTestSuite) TestClusterImage_EmptySpec() {
result, err := reconciler.Reconcile(s.ctx, req)
// Should not error, just set to pending
assert.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
}
func (s *ControllerTestSuite) TestClusterImageExport_EmptyNamespaces() {
@@ -891,7 +891,7 @@ func (s *ControllerTestSuite) TestClusterImage_WithImagePullSecrets() {
result, err := reconciler.Reconcile(s.ctx, req)
assert.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
}
func (s *ControllerTestSuite) TestClusterImage_WithJobAnnotations() {
@@ -923,7 +923,7 @@ func (s *ControllerTestSuite) TestClusterImage_WithJobAnnotations() {
result, err := reconciler.Reconcile(s.ctx, req)
assert.NoError(s.T(), err)
assert.True(s.T(), result.Requeue) //nolint:staticcheck // testing controller's actual behavior
assert.Positive(s.T(), result.RequeueAfter)
}
// ==================== Job Status Tests ====================