collectinfo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 30 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",
		internal.AerospikeBackupServiceKind: "aerospikebackupservices",
		internal.AerospikeBackupKind:        "aerospikebackups",
		internal.AerospikeRestoreKind:       "aerospikerestores",
		internal.PodDisruptionBudgetKind:    "poddisruptionbudgets",
		internal.ConfigMapKind:              "configmaps",
	}
)
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