collectinfo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootOutputDir           = "akoctl_collectinfo"
	NamespaceScopedDir      = "k8s_namespaces"
	ClusterScopedDir        = "k8s_cluster"
	LogFileName             = "akoctl.log"
	FileSuffix              = ".yaml"
	MutatingWebhookPrefix   = "maerospikecluster.kb.io"
	ValidatingWebhookPrefix = "vaerospikecluster.kb.io"
	MutatingWebhookName     = "aerospike-operator-mutating-webhook-configuration"
	ValidatingWebhookName   = "aerospike-operator-validating-webhook-configuration"
	SummaryDir              = "summary"
	SummaryFile             = "summary.txt"
	EventsFile              = "events.txt"
)

Variables

View Source
var (
	KindDirNames = map[string]string{
		internal.NodeKind:              "nodes",
		internal.PVCKind:               "persistentvolumeclaims",
		internal.PVKind:                "persistentvolumes",
		internal.STSKind:               "statefulsets",
		internal.DeployKind:            "deployments",
		internal.SCKind:                "storageclasses",
		internal.AerospikeClusterKind:  "aerospikeclusters",
		internal.PodKind:               "pods",
		internal.EventKind:             "events",
		internal.MutatingWebhookKind:   "mutatingwebhookconfigurations",
		internal.ValidatingWebhookKind: "validatingwebhookconfigurations",
		internal.ServiceKind:           "services",
	}
)
View Source
var (
	TarName = RootOutputDir + "_" + currentTime + ".tar.gzip"
)

Functions

func AttachFileLogger

func AttachFileLogger(logger *zap.Logger, path string) *zap.Logger

func CollectInfo

func CollectInfo(ctx context.Context, params *configuration.Parameters, path string) error

func RunCollectInfo

func RunCollectInfo(ctx context.Context, params *configuration.Parameters, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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