Skip to content

Commit

Permalink
Support identity-provider-config for EKS (#115)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nnbu authored Jun 4, 2024
1 parent 25dcca8 commit 1f1f095
Show file tree
Hide file tree
Showing 32 changed files with 2,625 additions and 22 deletions.
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2024-05-02T20:47:39Z"
build_date: "2024-05-28T22:22:45Z"
build_hash: 14cef51778d471698018b6c38b604181a6948248
go_version: go1.22.0
go_version: go1.21.1
version: v0.34.0
api_directory_checksum: 9026ab1865c6ec4c29670dd2f0805151f437fc92
api_directory_checksum: 626700f8799840e0470b1ff7ef3dbb32665b9f9d
api_version: v1alpha1
aws_sdk_go_version: v1.49.13
generator_config_info:
file_checksum: 9b6fc7e4c1d20a7c22de2a47af371279c26ee490
file_checksum: 3e2332beafd7d7b5898a51082c0e96d9594775bb
original_file_name: generator.yaml
last_modification:
reason: API generation
43 changes: 43 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
operations:
AssociateIdentityProviderConfig:
operation_type:
- Create
resource_name:
IdentityProviderConfig
DisassociateIdentityProviderConfig:
operation_type:
- Delete
resource_name:
IdentityProviderConfig
DescribeIdentityProviderConfig:
custom_check_required_fields_missing_method: customCheckRequiredFieldsMissing
resources:
Addon:
hooks:
Expand Down Expand Up @@ -71,6 +84,34 @@ resources:
type: string
index: 50
priority: 1
IdentityProviderConfig:
fields:
ClusterName:
references:
resource: Cluster
path: Spec.Name
is_primary_key: true
is_immutable: true
OIDC:
is_immutable: true
Status:
is_read_only: true
from:
operation: DescribeIdentityProviderConfig
path: IdentityProviderConfig.Oidc.Status
Tags:
is_immutable: true
hooks:
sdk_delete_post_build_request:
template_path: hooks/identity_provider_config/sdk_delete_post_build_request.go.tpl
sdk_read_one_post_build_request:
template_path: hooks/identity_provider_config/sdk_read_one_post_build_request.go.tpl
sdk_create_post_set_output:
template_path: hooks/identity_provider_config/sdk_create_post_set_output.go.tpl
sdk_read_one_post_set_output:
template_path: hooks/identity_provider_config/sdk_read_one_post_set_output.go.tpl
update_operation:
custom_method_name: customUpdate
Cluster:
fields:
EncryptionConfig.Provider.KeyArn:
Expand Down Expand Up @@ -435,5 +476,7 @@ ignore:
- EksAnywhereSubscription
field_paths:
- CreateAccessEntryInput.ClientRequestToken
- AssociateIdentityProviderConfigInput.ClientRequestToken
- AssociateIdentityProviderConfigOutput.Update
- AssociateAccessPolicyInput.PrincipalArn
- AssociateAccessPolicyInput.ClusterName
78 changes: 78 additions & 0 deletions apis/v1alpha1/identity_provider_config.go

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

40 changes: 25 additions & 15 deletions apis/v1alpha1/types.go

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

Loading

0 comments on commit 1f1f095

Please sign in to comment.