package
0.116.0
Repository: https://github.com/gardener/landscaper.git
Documentation: pkg.go.dev

# Packages

Package mock_client is a generated GoMock package.

# Functions

AddServiceAccountAuth adds the authentication information of a service account to a rest config.
AddServiceAccountToken adds the authentication information of a service account to a rest config.
ConvertToRawExtension converts a object to a raw extension.
CoreObjectReferenceFromUnstructuredObject creates a core object reference from an unstructured object.
CreateOrUpdate creates or updates the given object in the Kubernetes cluster.
No description provided by the author
DecodeObjects decodes raw data that can be a multiyaml file into unstructured kubernetes objects.
DecodeObjectsToRawExtension decodes raw data that can be a multiyaml file into unstructured kubernetes objects.
DeleteAndWaitForObjectDeleted deletes an object and waits for the object to be deleted.
GenerateDeleteObjectConditionFunc creates a condition function to validate the deletion of objects.
GenerateKubeconfig generates a kubernetes kubeconfig config object from a rest config.
GenerateKubeconfigBytes generates a kubernetes kubeconfig config object from a rest config and encodes it as yaml.
GenerateKubeconfigJSONBytes generates a kubernetes kubeconfig config object from a rest config and encodes it as json.
GetMainOwnerFromOwnerReferences returns the main owner from a list of owner references.
GetOwner returns the owner reference of a object.
GetSecretsForServiceAccount returns the list of secrets of type "kubernetes.io/service-account-token" which belong to the given service account.
GetStatusForContainer returns the container status for a specific container.
HasAnnotation checks if the objects has a annotation.
HasAnnotationWithValue checks if the objects has a annotation with a value.
HasFinalizer checks if the object constains a finalizer with the given name.
HasLabel checks if the objects has a label.
HasLabelWithValue checks if the objects has a label with a value.
HasOwnerReference returns the index of the owner reference if the 'owned' object has a owner reference pointing to the 'owner' object.
InjectTypeInformation injects the group version kind into a runtime object.
Mutate wraps a MutateFn and applies validation to its result.
ObjectFromCoreObjectReference creates an unstructured object from a core object reference.
ObjectFromTypedObjectReference creates an unstructured object from a typed object reference.
ObjectKey creates a namespaced name (client.ObjectKey) for a given name and namespace.
ObjectKeyFromObject creates a namespaced name for a given object.
OwnerOfGVK validates whether a instance of the given gvk is referenced.
ParseFiles parses a map of filename->data into unstructured yaml objects.
ParseFilesToRawExtension parseslogging.Loggerilename->data into unstructured yaml objects.
ReconcileRequestFromObject creates a namespaced name for a given object.
ResolveSecrets finds and returns the secrets referenced by secretRefs.
SetMetaDataLabel sets the label and value.
SetRequiredNestedFieldsFromObj sets the immutable or the fields that are required when updating un object.
TypedObjectReferenceFromObject creates a typed object reference from a object.
TypedObjectReferenceFromUnstructuredObject creates a typed object reference from an unstructured object.
No description provided by the author

# Constants

ErrImageNeverPull - Required Image is absent on host and PullPolicy is NeverPullImage.
ErrImagePull - General image pull error.
ErrImagePullBackOff - Container image pull failed, kubelet is backing off image pull.
ErrInvalidImageName - Unable to parse the image name.
ErrRegistryUnavailable - Get http error when pulling image from registry.