package
2.1.3+incompatible
Repository: https://github.com/kaiso/kom-operator.git
Documentation: pkg.go.dev
# Functions
ContainsString Helper functions to check string from a slice of strings.
Equals checks object equality.
GetGVKsFromAddToScheme takes in the runtime scheme and filters out all generic apimachinery meta types.
GetLoadbalancerPublishedService returns the the loadbalancer service in format namespace/service used to update the Ingresses with its endpoint.
GetLoadbalancerReplicaCount returns the the loadbalancer number of replicas.
GetOperatorName return the operator name.
GetOperatorNamespace returns the namespace the operator should be running in.
No description provided by the author
GetPod returns a Pod object that corresponds to the pod in which the code is currently running.
GetWatchNamespace returns the namespace the operator should be watching for changes.
No description provided by the author
PrettyPrint print a struct in json with indentation.
RemoveString Helper functions to remove string from a slice of strings.
No description provided by the author
ResourceExists returns true if the given resource kind exists in the given api groupversion.
# Constants
ClusterRunMode cluster run mode.
No description provided by the author
KubeConfigEnvVar defines the env variable KUBECONFIG which contains the kubeconfig file path.
LoadbalancerPublishedService is the loadbalancer service in format namespace/service used to update the Ingresses with its endpoint.
LoadbalancerReplicaCountVar is the loadbalancer number of replicas.
LocalRunMode local run mode.
OperatorNameEnvVar is the constant for env variable OPERATOR_NAME which is the name of the current operator.
PodNameEnvVar is the constant for env variable POD_NAME which is the name of the current pod.
WatchNamespaceEnvVar is the constant for env variable WATCH_NAMESPACE which is the namespace where the watch activity happens.
# Variables
ErrNoNamespace indicates that a namespace could not be found for the current environment.
# Type aliases
RunModeType operator run mode.