Documentation ¶
Index ¶
- Constants
- func MustGatherNamespace(term ioutils.Terminal, kubeconfig *restclient.Config, ...) error
- func NewAdmCmd() *cobra.Command
- func NewInstallOperatorCmd() *cobra.Command
- func NewMustGatherNamespaceCmd() *cobra.Command
- func NewRegisterMemberCmd() *cobra.Command
- func NewRestartCmd() *cobra.Command
- func NewUnregisterMemberCmd() *cobra.Command
- func UnregisterMemberCluster(ctx *clicontext.CommandContext, clusterName string, restart restartFunc) error
- type RolloutRestartFunc
- type RolloutStatusCheckerFunc
Constants ¶
View Source
const (
TokenExpirationDays = 3650
)
Variables ¶
This section is empty.
Functions ¶
func MustGatherNamespace ¶
func NewInstallOperatorCmd ¶
func NewRegisterMemberCmd ¶
func NewRestartCmd ¶
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 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
Click to show internal directories.
Click to hide internal directories.