package
0.0.1-alpha.1
Repository: https://github.com/cloudoperators/greenhouse.git
Documentation: pkg.go.dev
# Functions
CreateOrPatch creates or patches the given object using the mutate function.
Delete deletes the object if it exists, otherwise it does nothing.
EnsureFinalizer ensures a finalizer is present on the object.
Searches for a directory upwards starting from the given path.
GetEnvOrDefault returns the value of the environment variable or the default value.
No description provided by the author
GetKubernetesVersion returns the kubernetes git version using the discovery client.
GetOwnerReference returns the OwnerReference if found else nil.
GetSecretKeyFromSecretKeyReference returns the value of the secret identified by SecretKeyReference or an error.
IgnoreAlreadyExists returns nil on IsAlreadyExists errors.
IsSecretContainsKey checks whether the given secret contains a key.
LabelSelectorPredicate constructs a Predicate from a LabelSelector.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewHeadscaleGRPCClient returns a new gRPC client for the Headscale API.
No description provided by the author
No description provided by the author
NewK8sClient returns a Kubernetes client with registered schemes for the given config or an error.
NewK8sClientFromCluster returns a client.Client based on the given clusters kubeconfig secret.
NewK8sClientFromRestClientGetter returns a Kubernetes client with registered schemes for the given RESTClientGetter or an error.
No description provided by the author
NewRestClientGetterFromBytes returns a RestClientGetter from a []bytes containing a Kube Config.
NewRestClientGetterFromRestConfig returns a RestClientGetter from a in-memory kube config.
NewRestClientGetterFromSecret returns a RestClientGetter from a secret containing a Kube Config.
Patch uses a PATCH operation on an object.
PatchStatus uses a PATCH operation on an object status.
No description provided by the author
No description provided by the author
PredicateFilterBySecretType filters secrets by the given type.
PredicateSecretContainsKey filters secrets by the given key.
RemoveFinalizer removes a finalizer from an object.
No description provided by the author
WithDiscoveryOpts allows overwriting the discovery QPS and Burst.
No description provided by the author
No description provided by the author
WithRuntimeOptions allows overwriting client QPS and Burst.
# Constants
DeletionResultDeleted means that the resource has been deleted.
DeletionResultNone means that the resource has not been changed.
DeletionResultNotFound means that the resource was not found.
OperationResultCreated means that a new resource is created.
OperationResultNone means that the resource has not been changed.
OperationResultUpdated means that an existing resource is updated.
No description provided by the author
# Variables
PredicatePluginWithHelmSpec filters PluginDefinitions without an HelmChart specification.
No description provided by the author
# Structs
ClientConfigGetter implements the clientcmd.ClientConfigLoader interface.
Implements the genericclioptions.RESTClientGetter interface and additionally allows to access the KubeConfig from Bytes/Secret.
RuntimeOptions contains the runtime options for the Kubernetes client.
# Type aliases
DeletionResult is the action result of a Delete call.
No description provided by the author
OperationResult is the action result of a CreateOrUpdate call.