Documentation ¶
Index ¶
- Constants
- Variables
- func DisplayName(entityInfo *storagev1.EntityInfo) string
- func EnsureAdminPassword(ctx context.Context, kubeClient kubernetes.Interface, restConfig *rest.Config, ...) (bool, error)
- func EnsureIngressController(ctx context.Context, kubeClient kubernetes.Interface, kubeContext string, ...) error
- func EnterHostNameQuestion(log log.Logger) (string, error)
- func GetDisplayName(name string, displayName string) string
- func GetLoftDefaultPassword(ctx context.Context, kubeClient kubernetes.Interface, namespace string) (string, error)
- func GetLoftIngressHost(ctx context.Context, kubeClient kubernetes.Interface, namespace string) (string, error)
- func GetLoftManifests(chartName, chartRepo, kubeContext, namespace string, extraArgs []string, ...) (string, error)
- func GetProKubeConfig(options kubeconfig.ContextOptions) (*clientcmdapi.Config, error)
- func GetTableDisplayName(name string, displayName string) string
- func IsLocalCluster(host string, log log.Logger) bool
- func IsLoftAlreadyInstalled(ctx context.Context, kubeClient kubernetes.Interface, namespace string) (bool, error)
- func IsLoftInstalledLocally(ctx context.Context, kubeClient kubernetes.Interface, namespace string) bool
- func IsLoftReachable(ctx context.Context, host string) (bool, error)
- func IsPrivateIP(ip net.IP) bool
- func StartPortForwarding(ctx context.Context, config *rest.Config, client kubernetes.Interface, ...) (chan struct{}, error)
- func Timeout() time.Duration
- func UninstallLoft(ctx context.Context, kubeClient kubernetes.Interface, restConfig *rest.Config, ...) error
- func UpgradeLoft(chartName, chartRepo, kubeContext, namespace string, extraArgs []string, ...) error
- func WaitForReadyLoftPod(ctx context.Context, kubeClient kubernetes.Interface, namespace string, ...) (*corev1.Pod, error)
Constants ¶
View Source
const LoftRouterDomainSecret = "loft-router-domain"
Variables ¶
View Source
var CriticalStatus = map[string]bool{ "Error": true, "Unknown": true, "ImagePullBackOff": true, "CrashLoopBackOff": true, "RunContainerError": true, "ErrImagePull": true, "CreateContainerConfigError": true, "InvalidImageName": true, }
CriticalStatus container status
Functions ¶
func DisplayName ¶
func DisplayName(entityInfo *storagev1.EntityInfo) string
func EnsureAdminPassword ¶
func EnsureAdminPassword(ctx context.Context, kubeClient kubernetes.Interface, restConfig *rest.Config, password string, log log.Logger) (bool, error)
Makes sure that admin user and password secret exists Returns (true, nil) if everything is correct but password is different from parameter `password`
func EnsureIngressController ¶
func GetDisplayName ¶
func GetLoftDefaultPassword ¶
func GetLoftIngressHost ¶
func GetLoftManifests ¶
func GetProKubeConfig ¶
func GetProKubeConfig(options kubeconfig.ContextOptions) (*clientcmdapi.Config, error)
GetProKubeConfig builds a pro kube config from options and client
func GetTableDisplayName ¶
func IsLoftAlreadyInstalled ¶
func IsLoftInstalledLocally ¶
func StartPortForwarding ¶
func UninstallLoft ¶
func UpgradeLoft ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.