Skip to main content

Crate fakecloud_eks

Crate fakecloud_eks 

Source
Expand description

AWS EKS (eks) implementation for FakeCloud.

Modules§

persistence
Snapshot save/load for EKS state.

Structs§

AccessEntry
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
FargateProfile
A Fargate profile, a sub-resource of a cluster.
IdentityProviderConfig
An OIDC identity-provider config associated to a cluster via AssociateIdentityProviderConfig, keyed by identityProviderConfigName. Optional OIDC members are stored as Options so describe only echoes the ones the caller supplied, and required_claims keeps 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 so DescribeNodegroup round-trips faithfully.
PodIdentityAssociation
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§

SharedEksState
TagMap
Tags on a resource, stored by ARN so TagResource / UntagResource / ListTagsForResource work uniformly.