package
0.205.0
Repository: https://github.com/weaveworks/eksctl.git
Documentation: pkg.go.dev

# Functions

AppendFlattened will append newItem to list; making sure that raw newItem is decoded and flattened with another list.
CheckNamespaceExists check if a namespace with a given name already exists, and returns boolean or an error.
CheckServiceAccountExists check if a serviceaccount with a given name already exists, and if it is managed by eksctl.
ConcatManifests joins the provided manifests (as byte arrays) into one single manifest.
No description provided by the author
MaybeCreateNamespace will only create namespace with the given name if it doesn't already exist.
MaybeCreateServiceAccountOrUpdateMetadata will only create serviceaccount with the given name if it doesn't already exist, it will also create namespace if needed; if serviceaccount exists, new labels and annotations will get added, all user-set label and annotation keys that are not set in meta will be retained.
MaybeDeleteServiceAccount will only delete the serviceaccount if it exists.
NewCachedClientSet constructs a new CachedClientSet.
NewList decodes data into a list of Kubernetes resources, ignoring any whitespace and comment nodes.
NewNamespace creates a corev1.Namespace object using the provided name.
NewNamespaceYAML returns a YAML string for a Kubernetes Namespace object.
NewRawClient creates a new raw REST client.
NewRawExtension decodes the provided manifest into runtime.RawExtension.
NewRawExtensions decodes the provided manifest's bytes into "raw extension" Kubernetes objects.
No description provided by the author
NewServiceAccount creates a corev1.ServiceAccount object using the provided meta.
RefreshSecrets updates all secrets to apply KMS encryption.

# Structs

APIServerUnreachableError represents an error reaching the API server.
CachedClientSet provides a basic implementation of ClientSetGetter where the client is a field of a struct.
CallbackClientSet provides an implementation of ClientSetGetter where the client is provided via a callback.
RawClient stores information about the client config.
RawResource holds info about a resource along with a type-specific raw client instance.
Credit https://github.com/helm/helm/issues/6910#issuecomment-601277026.

# Interfaces

ClientSetGetter is an interface used for anything that requires to obtain Kubernetes client whe it's not possible to pass the client directly.
RawClientInterface defines high level abstraction for RawClient for testing.

# Type aliases

Interface is an alias to avoid having to import k8s.io/client-go/kubernetes along with this package, so that most of our packages only care to import our kubernetes package.