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 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.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package deployments contains code to get operator deployment
|
Package deployments contains code to get operator deployment |
Click to show internal directories.
Click to hide internal directories.