-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include additional keys to adopt identityProviderConfig
This change ensures users are required to provide an identityProviderConfigName when adopting the resource, as it is a required input field. Not sure if we should change that to the primary NameOrID, and make clusterName and additional Key..
- Loading branch information
1 parent
abd09fd
commit eebb52d
Showing
5 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
ack_generate_info: | ||
build_date: "2024-10-10T03:55:41Z" | ||
build_hash: 36c2d234498c2bc4f60773ab8df632af4067f43b | ||
build_date: "2024-10-17T18:18:29Z" | ||
build_hash: ab15f9206796e9660c51695fab0ff07a09ea28e2 | ||
go_version: go1.23.2 | ||
version: v0.39.1 | ||
api_directory_checksum: d736919240d3843865e860f7cb685cec30921bd4 | ||
version: v0.39.1-2-gab15f92 | ||
api_directory_checksum: 4cfe0b6ec81b65719c1f165983b84116135f5e40 | ||
api_version: v1alpha1 | ||
aws_sdk_go_version: v1.55.5 | ||
generator_config_info: | ||
file_checksum: 157f31e5a8ce8e0e922e4e5c2e406841ec1a8136 | ||
file_checksum: 5b5c72cb103e99a0dd19beffb8863f16e4fd163e | ||
original_file_name: generator.yaml | ||
last_modification: | ||
reason: API generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
templates/hooks/identity_provider_config/post_set_resource_identifiers.go.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
if identifier.AdditionalKeys == nil { | ||
return fmt.Errorf("expected additional key `identityProviderConfigName` identifier, found nil") | ||
} | ||
f0, f0ok := identifier.AdditionalKeys["identityProviderConfigName"] | ||
if f0ok { | ||
r.ko.Spec.OIDC = &svcapitypes.OIDCIdentityProviderConfigRequest{ | ||
IdentityProviderConfigName: &f0, | ||
} | ||
} else { | ||
return fmt.Errorf("expected additional key `identityProviderConfigName` identifier, found empty") | ||
} |