Expand description
AWS EKS (eks) implementation for FakeCloud.
Modules§
- persistence
- Snapshot save/load for EKS state.
Structs§
- Access
Entry - An EKS access entry, a sub-resource of a cluster keyed by principal ARN. The access policies associated to the entry are a nested list.
- Addon
- An EKS add-on, a sub-resource of a cluster (e.g.
vpc-cni,coredns). - Cluster
- EksService
- EksSnapshot
- EksState
- Fargate
Profile - A Fargate profile, a sub-resource of a cluster.
- Identity
Provider Config - An OIDC identity-provider config associated to a cluster via
AssociateIdentityProviderConfig, keyed byidentityProviderConfigName. Optional OIDC members are stored asOptions so describe only echoes the ones the caller supplied, andrequired_claimskeeps the caller’s map verbatim for a faithful round-trip. - Nodegroup
- A managed node group, a sub-resource of a cluster. Complex members
(scaling config, subnets, labels, taints, …) are stored as the
VpcConfigResponse-style JSON objects echoed back on every describe soDescribeNodegroupround-trips faithfully. - PodIdentity
Association - An EKS Pod Identity association, a sub-resource of a cluster keyed by its
generated
associationId. Binds a Kubernetes service account (in a namespace) to an IAM role.
Constants§
- DEFAULT_
K8S_ VERSION - The default Kubernetes version a cluster is created with when the caller
omits
version. - EKS_
ACTIONS - EKS_
SNAPSHOT_ SCHEMA_ VERSION
Functions§
- access_
entry_ arn - Build the ARN for an access entry. AWS’s access-entry ARN embeds the
principal type (
role/user), the account, the principal’s resource name, and a random UUID:arn:aws:eks:{region}:{account}:access-entry/{cluster}/{type}/{account}/{name}/{uuid}. - addon_
arn - Build the ARN for an add-on. AWS appends a random UUID segment after
addon/{cluster}/{name}so each add-on’s ARN is unique across recreate. - cluster_
arn - Build the ARN for a cluster.
- fargate_
profile_ arn - Build the ARN for a Fargate profile.
- identity_
provider_ config_ arn - Build the ARN for an OIDC identity-provider config. AWS embeds the config
type (
oidc), the config name, and a random UUID. - nodegroup_
arn - Build the ARN for a node group. AWS appends a random UUID segment after
nodegroup/{cluster}/{name}so each node group’s ARN is unique even after a delete/recreate. - pod_
identity_ association_ arn - Build the ARN for a pod identity association attached to an add-on.
Type Aliases§
- Shared
EksState - TagMap
- Tags on a resource, stored by ARN so
TagResource/UntagResource/ListTagsForResourcework uniformly.