collectinfo

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 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"
)
View Source
const (
	NodeKind              = "Node"
	PVCKind               = "PersistentVolumeClaim"
	STSKind               = "StatefulSet"
	SCKind                = "StorageClass"
	AerospikeClusterKind  = "AerospikeCluster"
	PodKind               = "Pod"
	EventKind             = "Event"
	MutatingWebhookKind   = "MutatingWebhookConfiguration"
	ValidatingWebhookKind = "ValidatingWebhookConfiguration"
)

Variables

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

Functions

func CollectInfo

func CollectInfo(logger *zap.Logger, k8sClient client.Client, clientSet *kubernetes.Clientset, namespaces []string,
	path string, allNamespaces, clusterScope bool) error

func InitializeLogger

func InitializeLogger(logFilePath string) *zap.Logger

func RunCollectInfo

func RunCollectInfo(namespaces []string, path string, allNamespaces, clusterScope bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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