Skip to content

Commit 1f1f095

Browse files
authored
Support identity-provider-config for EKS (#115)
This change adds support for configuring identity-provider-config to an EKS cluster. Associated apis: https://docs.aws.amazon.com/eks/latest/APIReference/API_AssociateIdentityProviderConfig.html , https://docs.aws.amazon.com/eks/latest/APIReference/API_DescribeIdentityProviderConfig.html , https://docs.aws.amazon.com/eks/latest/APIReference/API_DisassociateIdentityProviderConfig.html By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 25dcca8 commit 1f1f095

32 files changed

+2625
-22
lines changed

Diff for: apis/v1alpha1/ack-generate-metadata.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2024-05-02T20:47:39Z"
2+
build_date: "2024-05-28T22:22:45Z"
33
build_hash: 14cef51778d471698018b6c38b604181a6948248
4-
go_version: go1.22.0
4+
go_version: go1.21.1
55
version: v0.34.0
6-
api_directory_checksum: 9026ab1865c6ec4c29670dd2f0805151f437fc92
6+
api_directory_checksum: 626700f8799840e0470b1ff7ef3dbb32665b9f9d
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.49.13
99
generator_config_info:
10-
file_checksum: 9b6fc7e4c1d20a7c22de2a47af371279c26ee490
10+
file_checksum: 3e2332beafd7d7b5898a51082c0e96d9594775bb
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

Diff for: apis/v1alpha1/generator.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
operations:
2+
AssociateIdentityProviderConfig:
3+
operation_type:
4+
- Create
5+
resource_name:
6+
IdentityProviderConfig
7+
DisassociateIdentityProviderConfig:
8+
operation_type:
9+
- Delete
10+
resource_name:
11+
IdentityProviderConfig
12+
DescribeIdentityProviderConfig:
13+
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
114
resources:
215
Addon:
316
hooks:
@@ -71,6 +84,34 @@ resources:
7184
type: string
7285
index: 50
7386
priority: 1
87+
IdentityProviderConfig:
88+
fields:
89+
ClusterName:
90+
references:
91+
resource: Cluster
92+
path: Spec.Name
93+
is_primary_key: true
94+
is_immutable: true
95+
OIDC:
96+
is_immutable: true
97+
Status:
98+
is_read_only: true
99+
from:
100+
operation: DescribeIdentityProviderConfig
101+
path: IdentityProviderConfig.Oidc.Status
102+
Tags:
103+
is_immutable: true
104+
hooks:
105+
sdk_delete_post_build_request:
106+
template_path: hooks/identity_provider_config/sdk_delete_post_build_request.go.tpl
107+
sdk_read_one_post_build_request:
108+
template_path: hooks/identity_provider_config/sdk_read_one_post_build_request.go.tpl
109+
sdk_create_post_set_output:
110+
template_path: hooks/identity_provider_config/sdk_create_post_set_output.go.tpl
111+
sdk_read_one_post_set_output:
112+
template_path: hooks/identity_provider_config/sdk_read_one_post_set_output.go.tpl
113+
update_operation:
114+
custom_method_name: customUpdate
74115
Cluster:
75116
fields:
76117
EncryptionConfig.Provider.KeyArn:
@@ -435,5 +476,7 @@ ignore:
435476
- EksAnywhereSubscription
436477
field_paths:
437478
- CreateAccessEntryInput.ClientRequestToken
479+
- AssociateIdentityProviderConfigInput.ClientRequestToken
480+
- AssociateIdentityProviderConfigOutput.Update
438481
- AssociateAccessPolicyInput.PrincipalArn
439482
- AssociateAccessPolicyInput.ClusterName

Diff for: apis/v1alpha1/identity_provider_config.go

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

Diff for: apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)