report

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package report implements the kubectl-cnpg report command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cluster

func Cluster(ctx context.Context, clusterName, namespace string, format plugin.OutputFormat,
	file string, includeLogs bool,
) error

Cluster implements the "report cluster" subcommand Produces a zip file containing

  • cluster pod and job definitions
  • cluster resource (same content as `kubectl get cluster -o yaml`)
  • events in the cluster namespace
  • logs from the cluster pods (optional - activated with `includeLogs`)
  • logs from the cluster jobs (optional - activated with `includeLogs`)

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates the new "report" command

func Operator

func Operator(ctx context.Context, format plugin.OutputFormat,
	file string, stopRedaction, includeLogs bool,
) error

Operator implements the "report operator" subcommand Produces a zip file containing

  • operator deployment
  • operator pod definition
  • operator configuration Configmap and Secret key (if any)
  • events in the operator namespace
  • operator's Validating/MutatingWebhookConfiguration and their associated services
  • operator pod's logs (if `includeLogs` is true)

Types

This section is empty.

Directories

Path Synopsis
Package deployments contains code to get operator deployment
Package deployments contains code to get operator deployment

Jump to

Keyboard shortcuts

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