Skip to content

Commit 00de17f

Browse files
authored
Go v2 Controller (#126)
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 48d1782 commit 00de17f

36 files changed

+572
-520
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-01-23T02:34:07Z"
3-
build_hash: 2442aa071c05fcdf54841e63abd5f91d1951e152
4-
go_version: go1.23.5
5-
version: v0.41.0
6-
api_directory_checksum: 761a2c708651b0273bf39d98dddaf029de23d337
2+
build_date: "2025-02-05T17:36:22Z"
3+
build_hash: 3d74f13b9de7134b4c76ab7526a9c578c4857602
4+
go_version: go1.23.4
5+
version: v0.41.0-18-g3d74f13
6+
api_directory_checksum: 0a1f48636957e70cb10b108f9b6ddea1696ebf8b
77
api_version: v1alpha1
8-
aws_sdk_go_version: v1.49.0
8+
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 8f85dee132779d172c0fd19537c3bbd709e079d6
10+
file_checksum: 41d31ed2f36d33ae7877a9cd2c85d1e293f37cfe
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/enums.go

Lines changed: 51 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ resources:
260260
template_path: hooks/open_id_connect_provider/sdk_read_one_post_set_output.go.tpl
261261
exceptions:
262262
terminal_codes:
263-
- InvalidInput
263+
- InvalidInput
264264
- EntityAlreadyExists
265265
renames:
266266
operations:

apis/v1alpha1/open_id_connect_provider.go

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/controller/main.go

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/iam.services.k8s.aws_openidconnectproviders.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,14 @@ spec:
8686
lets you maintain multiple thumbprints if the identity provider is rotating
8787
certificates.
8888
89+
This parameter is optional. If it is not included, IAM will retrieve and
90+
use the top intermediate certificate authority (CA) thumbprint of the OpenID
91+
Connect identity provider server certificate.
92+
8993
The server certificate thumbprint is the hex-encoded SHA-1 hash value of
9094
the X.509 certificate used by the domain where the OpenID Connect provider
9195
makes its keys available. It is always a 40-character string.
9296
93-
You must provide at least one thumbprint when creating an IAM OIDC provider.
9497
For example, assume that the OIDC provider is server.example.com and the
9598
provider stores its keys at https://keys.server.example.com/openid-connect.
9699
In that case, the thumbprint string would be the hex-encoded SHA-1 hash value
@@ -116,7 +119,6 @@ spec:
116119
an error.
117120
type: string
118121
required:
119-
- thumbprints
120122
- url
121123
type: object
122124
status:

generator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ resources:
260260
template_path: hooks/open_id_connect_provider/sdk_read_one_post_set_output.go.tpl
261261
exceptions:
262262
terminal_codes:
263-
- InvalidInput
263+
- InvalidInput
264264
- EntityAlreadyExists
265265
renames:
266266
operations:

go.mod

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ go 1.22.0
55
toolchain go1.22.5
66

77
require (
8-
github.com/aws-controllers-k8s/runtime v0.41.0
8+
github.com/aws-controllers-k8s/runtime v0.41.1-0.20250204215244-e48dd7b2d6d0
99
github.com/aws/aws-sdk-go v1.49.0
10+
github.com/aws/aws-sdk-go-v2 v1.34.0
11+
github.com/aws/aws-sdk-go-v2/service/iam v1.38.8
12+
github.com/aws/smithy-go v1.22.2
1013
github.com/go-logr/logr v1.4.2
1114
github.com/micahhausler/aws-iam-policy v0.4.2
1215
github.com/samber/lo v1.37.0
@@ -22,6 +25,17 @@ require (
2225
replace github.com/micahhausler/aws-iam-policy => github.com/a-hilaly/aws-iam-policy v0.0.0-20231121054900-2c56e839ca53
2326

2427
require (
28+
github.com/aws/aws-sdk-go-v2/config v1.28.6 // indirect
29+
github.com/aws/aws-sdk-go-v2/credentials v1.17.47 // indirect
30+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.21 // indirect
31+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.29 // indirect
32+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.29 // indirect
33+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1 // indirect
35+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.6 // indirect
36+
github.com/aws/aws-sdk-go-v2/service/sso v1.24.7 // indirect
37+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.6 // indirect
38+
github.com/aws/aws-sdk-go-v2/service/sts v1.33.2 // indirect
2539
github.com/beorn7/perks v1.0.1 // indirect
2640
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
2741
github.com/cespare/xxhash/v2 v2.3.0 // indirect

0 commit comments

Comments
 (0)