Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2240,6 +2240,108 @@ spec:
description: AWSManagedControlPlaneSpec defines the desired state of an
Amazon EKS Cluster.
properties:
accessConfig:
description: AccessConfig specifies the access configuration information
for the cluster
properties:
accessEntries:
description: |-
AccessEntries specifies the access entries for the cluster
Access entries require AuthenticationMode to be either API or API_AND_CONFIG_MAP
items:
description: AccessEntry represents an AWS EKS access entry
for IAM principals
properties:
accessPolicies:
description: |-
AccessPolicies specifies the policies to associate with this access entry
Cannot be specified if Type is EC2_LINUX or EC2_WINDOWS
items:
description: AccessPolicyReference represents a reference
to an AWS EKS access policy
properties:
accessScope:
description: AccessScope specifies the scope for the
policy
properties:
namespaces:
description: |-
Namespaces are the namespaces for the access scope
Only valid when Type is namespace
items:
type: string
minItems: 1
type: array
type:
default: cluster
description: Type is the type of access scope.
Defaults to "cluster".
enum:
- cluster
- namespace
type: string
required:
- type
type: object
policyARN:
description: PolicyARN is the Amazon Resource Name
(ARN) of the access policy
type: string
required:
- accessScope
- policyARN
type: object
maxItems: 20
type: array
kubernetesGroups:
description: |-
KubernetesGroups represents the Kubernetes groups for the access entry
Cannot be specified if Type is EC2_LINUX or EC2_WINDOWS
items:
type: string
type: array
principalARN:
description: PrincipalARN is the Amazon Resource Name (ARN)
of the IAM principal
type: string
type:
default: STANDARD
description: Type is the type of access entry. Defaults
to STANDARD if not specified.
enum:
- STANDARD
- EC2_LINUX
- EC2_WINDOWS
- FARGATE_LINUX
- EC2
- HYBRID_LINUX
- HYPERPOD_LINUX
type: string
username:
description: Username is the username for the access entry
type: string
required:
- principalARN
type: object
type: array
authenticationMode:
default: CONFIG_MAP
description: |-
AuthenticationMode specifies the desired authentication mode for the cluster
Defaults to CONFIG_MAP
enum:
- CONFIG_MAP
- API
- API_AND_CONFIG_MAP
type: string
bootstrapClusterCreatorAdminPermissions:
default: true
description: |-
BootstrapClusterCreatorAdminPermissions grants cluster admin permissions
to the IAM identity creating the cluster. Only applied during creation,
ignored when updating existing clusters. Defaults to true.
type: boolean
type: object
additionalTags:
additionalProperties:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,28 @@ spec:
description: AWSManagedControlPlaneSpec defines the desired state
of an Amazon EKS Cluster.
properties:
accessConfig:
description: AccessConfig specifies the access configuration
information for the cluster
properties:
authenticationMode:
default: config_map
description: |-
AuthenticationMode specifies the desired authentication mode for the cluster
Defaults to config_map
enum:
- config_map
- api
- api_and_config_map
type: string
bootstrapClusterCreatorAdminPermissions:
default: true
description: |-
BootstrapClusterCreatorAdminPermissions grants cluster admin permissions
to the IAM identity creating the cluster. Only applied during creation,
ignored when updating existing clusters. Defaults to true.
type: boolean
type: object
additionalTags:
additionalProperties:
type: string
Expand Down
2 changes: 2 additions & 0 deletions controlplane/eks/api/v1beta1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,12 @@ func (r *AWSManagedControlPlane) ConvertTo(dstRaw conversion.Hub) error {

dst.Spec.Partition = restored.Spec.Partition
dst.Spec.RestrictPrivateSubnets = restored.Spec.RestrictPrivateSubnets
dst.Spec.AccessConfig = restored.Spec.AccessConfig
dst.Spec.RolePath = restored.Spec.RolePath
dst.Spec.RolePermissionsBoundary = restored.Spec.RolePermissionsBoundary
dst.Status.Version = restored.Status.Version
dst.Spec.BootstrapSelfManagedAddons = restored.Spec.BootstrapSelfManagedAddons

return nil
}

Expand Down
71 changes: 45 additions & 26 deletions controlplane/eks/api/v1beta1/zz_generated.conversion.go

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

Loading