plugin

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package plugin contains the common behaviors of the kubectl-cnpg subcommand

Index

Constants

View Source
const (
	// OutputFormatText means just use a human-readable output
	OutputFormatText = "text"

	// OutputFormatJSON means use machine-readable JSON output
	OutputFormatJSON = "json"

	// OutputFormatYAML means use machine-readable JSON output
	OutputFormatYAML = "yaml"
)

Variables

View Source
var (
	// Namespace to operate in
	Namespace string

	// Config is the Kubernetes configuration used
	Config *rest.Config

	// Client is the controller-runtime client
	Client client.Client
)

Functions

func CreateKubernetesClient

func CreateKubernetesClient(configFlags *genericclioptions.ConfigFlags) error

CreateKubernetesClient creates a k8s client to be used inside the kubectl-cnpg utility

func Print

func Print(o interface{}, format OutputFormat, writer io.Writer) error

Print output an object via an io.Writer in a machine-readable way

Types

type OutputFormat

type OutputFormat string

OutputFormat represent the output format supported by this command

Directories

Path Synopsis
Package certificate implement the kubectl-cnpg certificate command
Package certificate implement the kubectl-cnpg certificate command
Package destroy implements a command to destroy an instances of a cluster and its associated PVC
Package destroy implements a command to destroy an instances of a cluster and its associated PVC
Package fence implements a command to fence instances in a cluster
Package fence implements a command to fence instances in a cluster
Package maintenance implements the kubectl-cnpg maintenance sub-command
Package maintenance implements the kubectl-cnpg maintenance sub-command
Package promote implement the kubectl-cnpg promote command
Package promote implement the kubectl-cnpg promote command
Package reload implements a command to trigger a reconciliation loop for a cluster
Package reload implements a command to trigger a reconciliation loop for a cluster
Package report implements the kubectl-cnpg report command
Package report implements the kubectl-cnpg report command
Package restart implements a command to rollout restart a cluster or restart a single instance
Package restart implements a command to rollout restart a cluster or restart a single instance
Package status implements the kubectl-cnpg status command
Package status implements the kubectl-cnpg status command

Jump to

Keyboard shortcuts

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