constants

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: UPL-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WaitFlag        = "wait"
	WaitFlagHelp    = "Wait for the command to complete and stream the logs to the console. The wait period is controlled by --timeout."
	WaitFlagDefault = true

	TimeoutFlag     = "timeout"
	TimeoutFlagHelp = "Limits the amount of time a command will wait to complete"

	VersionFlag            = "version"
	VersionFlagDefault     = "latest"
	VersionFlagInstallHelp = "The version of Verrazzano to install"
	VersionFlagUpgradeHelp = "The version of Verrazzano to upgrade to"

	DryRunFlag = "dry-run"

	SetFlag          = "set"
	SetFlagShorthand = "s"
	SetFlagHelp      = "Override a Verrazzano resource value (e.g. --set profile=dev).  This flag can be specified multiple times."

	OperatorFileFlag     = "operator-file"
	OperatorFileFlagHelp = "The path to the file for installing the Verrazzano platform operator. The default is derived from the version string."

	LogFormatFlag = "log-format"
	LogFormatHelp = "The format of the log output. Valid output formats are \"simple\" and \"json\"."

	FilenameFlag          = "filename"
	FilenameFlagShorthand = "f"
	FilenameFlagHelp      = "" /* 181-byte string literal not displayed */

	VerboseFlag          = "verbose"
	VerboseFlagShorthand = "v"
	VerboseFlagDefault   = false
	VerboseFlagUsage     = "Enable verbose output."
)

Flags that are common to more than one command

View Source
const (
	DirectoryFlagName  = "capture-dir"
	DirectoryFlagValue = ""
	DirectoryFlagUsage = "Directory holding the captured data."

	ReportFileFlagName  = "report-file"
	ReportFileFlagValue = ""
	ReportFileFlagUsage = "Name of the report output file. (default stdout)"

	ReportFormatFlagName  = "report-format"
	ReportFormatFlagUsage = "The format of the report output. Valid report formats are \"summary\" and \"detailed\"."

	SummaryReport  = "summary"
	DetailedReport = "detailed"
)

Analysis tool flags

View Source
const (
	BugReportLogFlagDefault   = false
	BugReportFileFlagName     = "report-file"
	BugReportFileFlagValue    = ""
	BugReportFileFlagShort    = "r"
	BugReportFileFlagUsage    = "" /* 129-byte string literal not displayed */
	BugReportFileDefaultValue = "bug-report.tar.gz"

	BugReportIncludeNSFlagName  = "include-namespaces"
	BugReportIncludeNSFlagShort = "i"
	BugReportIncludeNSFlagUsage = "" /* 242-byte string literal not displayed */

	BugReportDir = "bug-report"

	// File name for the log captured from the pod
	LogFile = "logs.txt"

	// File containing list of resources captured by the tool
	BugReportOut = "bug-report.out"
	BugReportErr = "bug-report.err"

	BugReportError   = "" /* 129-byte string literal not displayed */
	BugReportWarning = "WARNING: Please examine the contents of the bug report for any sensitive data"

	// File names for the various resources
	VzResource       = "verrazzano-resources.json"
	DeploymentsJSON  = "deployments.json"
	EventsJSON       = "events.json"
	PodsJSON         = "pods.json"
	ServicesJSON     = "services.json"
	ReplicaSetsJSON  = "replicasets.json"
	DaemonSetsJSON   = "daemonsets.json"
	IngressJSON      = "ingress.json"
	StatefulSetsJSON = "statefulsets.json"
	AppConfigJSON    = "application-configurations.json"
	ComponentJSON    = "components.json"
	IngressTraitJSON = "ingress-traits.json"
	MetricsTraitJSON = "metrics-traits.json"
	McAppConfigJSON  = "multicluster-application-configurations.json"
	McComponentJSON  = "multicluster-components.json"
	VzProjectsJSON   = "verrazzano-projects.json"
	VmcJSON          = "verrazzano-managed-clusters.json"

	// Indentation when the resource is marshalled as Json
	JSONIndent = "  "

	// The prefix used for the json.MarshalIndent
	JSONPrefix = ""

	// Top level directory for the bug report, keeping cluster-snapshot for now to support the analyze the command
	BugReportRoot = "cluster-snapshot"

	// Label for application
	AppLabel               = "app"
	K8SAppLabel            = "k8s-app"
	K8sAppLabelExternalDNS = "app.kubernetes.io/name"
	// Message prefix for bug-report and live cluster analysis
	BugReportMsgPrefix = "Capturing "
	AnalysisMsgPrefix  = "Analyzing "

	// Flag for capture pods logs( both additional and system namespaces)
	BugReportLogFlagName         = "include-logs"
	BugReportLogFlagNameShort    = "l"
	BugReportLogFlagNameUsage    = "Include logs from the pods in one or more namespaces; this is specified along with the --include-namespaces flag."
	BugReportTimeFlagName        = "duration"
	BugReportTimeFlagNameShort   = "d"
	BugReportTimeFlagDefaultTime = 0
	BugReportTimeFlagNameUsage   = "The time period during which the logs are collected in seconds, minutes, and hours."
)

Constants for bug report

View Source
const (
	ClusterNameFlagName    = "name"
	ClusterNameFlagDefault = "vz-capi"
	ClusterNameFlagHelp    = "The name of the cluster"

	ClusterTypeFlagName    = "type"
	ClusterTypeFlagDefault = "ocne"
	ClusterTypeFlagHelp    = "The type of the cluster"

	ClusterImageFlagName    = "image"
	ClusterImageFlagDefault = ""
	ClusterImageFlagHelp    = "DEVELOPMENT ONLY - the image to use for the cluster"

	KubeconfigPathFlagName    = "path"
	KubeconfigPathFlagDefault = ""
	KubeconfigPathFlagHelp    = "Path to the file where the kubeconfig should be saved - defaults to your current kubeconfig"
)

Constants for cluster operations

View Source
const GlobalFlagContext = "context"

GlobalFlagContext - global flag for specifying which kube config context to use

View Source
const GlobalFlagContextHelp = "The name of the kubeconfig context to use"
View Source
const GlobalFlagHelp = "help"

GlobalFlagHelp - global help flag

View Source
const GlobalFlagKubeConfig = "kubeconfig"

GlobalFlagKubeConfig - global flag for specifying the location of the kube config

View Source
const GlobalFlagKubeConfigHelp = "Path to the kubeconfig file to use"
View Source
const LineSeparator = "-"
View Source
const OAMAppConfigurations = "applicationconfigurations"
View Source
const OAMComponents = "components"
View Source
const OAMIngressTraits = "ingresstraits"
View Source
const OAMMCAppConfigurations = "multiclusterapplicationconfigurations"
View Source
const OAMMCCompConfigurations = "multiclustercomponents"
View Source
const OAMManagedClusters = "verrazzanomanagedclusters"
View Source
const OAMMetricsTraits = "metricstraits"
View Source
const OAMProjects = "verrazzanoprojects"
View Source
const VerrazzanoApplicationOperator = "verrazzano-application-operator"
View Source
const VerrazzanoInstall = "verrazzano-install"
View Source
const VerrazzanoManagedCluster = "verrazzano-managed-cluster"
View Source
const VerrazzanoManagedLabel = "verrazzano-managed=true"
View Source
const VerrazzanoMonitoringOperator = "verrazzano-monitoring-operator"
View Source
const VerrazzanoOperatorURL = "https://github.com/verrazzano/verrazzano/releases/download/%s/operator.yaml"

VerrazzanoOperatorURL - URL for downloading Verrazzano operator.yaml

View Source
const VerrazzanoPlatformOperator = "verrazzano-platform-operator"
View Source
const VerrazzanoPlatformOperatorURL = "https://github.com/verrazzano/verrazzano/releases/download/%s/verrazzano-platform-operator.yaml"

VerrazzanoPlatformOperatorURL - URL for downloading verrazzano-platform-operator.yaml

View Source
const VerrazzanoPlatformOperatorWait = 1
View Source
const VerrazzanoReleaseList = "https://api.github.com/repos/verrazzano/verrazzano/releases"

VerrazzanoReleaseList - API for getting the list of Verrazzano releases

View Source
const VerrazzanoUninstall = "verrazzano-uninstall"

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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