adm

package
v0.0.0-...-f99bb4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenExpirationDays = 3650
)

Variables

This section is empty.

Functions

func MustGatherNamespace

func MustGatherNamespace(term ioutils.Terminal, kubeconfig *restclient.Config, namespace, destDir string) error

func NewAdmCmd

func NewAdmCmd() *cobra.Command

func NewInstallOperatorCmd

func NewInstallOperatorCmd() *cobra.Command

func NewMustGatherNamespaceCmd

func NewMustGatherNamespaceCmd() *cobra.Command

func NewRegisterMemberCmd

func NewRegisterMemberCmd() *cobra.Command

func NewRestartCmd

func NewRestartCmd() *cobra.Command

NewRestartCmd() is a function to restart the whole operator, it relies on the target cluster and fetches the cluster config 1. If the command is run for host operator, it restart the whole host operator.(it deletes olm based pods(host-operator pods), waits for the new pods to come up, then uses rollout-restart command for non-olm based - registration-service) 2. If the command is run for member operator, it restart the whole member operator.(it deletes olm based pods(member-operator pods), waits for the new pods to come up, then uses rollout-restart command for non-olm based deployments - webhooks)

func NewUnregisterMemberCmd

func NewUnregisterMemberCmd() *cobra.Command

func UnregisterMemberCluster

func UnregisterMemberCluster(ctx *clicontext.CommandContext, clusterName string, restart restartFunc) error

Types

type RolloutRestartFunc

type RolloutRestartFunc func(ctx *clicontext.CommandContext, deployment appsv1.Deployment) error

type RolloutStatusCheckerFunc

type RolloutStatusCheckerFunc func(ctx *clicontext.CommandContext, deployment appsv1.Deployment) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL