package
0.0.0-20241104161355-939959eb3a81
Repository: https://github.com/uyuni-project/uyuni-tools.git
Documentation: pkg.go.dev

# Functions

AddSccSecret creates a secret holding the SCC credentials and adds it to the helm args.
CheckCluster return cluster information.
DeletePod deletes a kubernetes pod named podname.
GenerateOverrideDeployment generate a JSON files represents the deployment information.
GetConfigMap returns the value of a given config map.
GetDeploymentImagePullSecret returns the name of the image pull secret of a deployment.
GetDeploymentStatus returns the replicas status of the deployment.
GetNode return the node where the app is running.
GetPods return the list of the pod given a filter.
GetPullPolicy return pullpolicy in lower case, if exists.
GetSecret returns the value of a given secret.
HasHelmRelease returns whether a helm release is installed or not, even if it failed.
HelmUninstall runs the helm uninstall command to remove a deployment.
HelmUpgrade runs the helm upgrade command.
InspectKubernetes check values on a given image and deploy.
InstallK3sTraefikConfig install K3s Traefik configuration.
InstallRke2NginxConfig install Rke2 Nginx configuration.
IsDeploymentReady returns true if a kubernetes deployment has at least one ready replica.
ReplicasTo set the replica for an app to the given value.
Restart restarts the pod.
RunPod runs a pod, waiting for its execution and deleting it.
RunSupportConfigOnKubernetesHost will run supportconfig command on kubernetes machine.
Start starts the pod.
Stop stop the pod.
UninstallHelp returns the message appended in the uninstall commands for kubernetes.
UninstallK3sTraefikConfig uninstall K3s Traefik configuration.
UninstallRke2NginxConfig uninstall Rke2 Nginx configuration.
WaitForDeployment waits at most 60s for a kubernetes deployment to have at least one replica.
WaitForPulledImage wait that image is pulled.

# Constants

ProxyApp represnet the proxy app name.
ProxyFilter represents filter used to check proxy app.
ServerApp represent the server app name.
ServerFilter represents filter used to check server app.

# Structs

ClusterInfos represent cluster information.
DeploymentStatus represents the kubernetes deployment status.
K3sTraefikConfigTemplateData represents information used to create K3s Traefik helm chart.
Rke2NginxConfigTemplateData represents information used to create Rke2 Ngix helm chart.