constants

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: UPL-1.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GlobalFlagHelp - global help flag
	GlobalFlagHelp           = "help"
	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"
	VPOTimeoutFlag           = "platform-operator-timeout"
	VPOTimeoutFlagHelp       = "Limits the amount of time a command will wait for the Verrazzano Platform Operator to be ready"
	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" // an alias for the manifests flag
	OperatorFileDeprecateMsg = "Use --manifests instead"
	ManifestsFlag            = "manifests"
	ManifestsShorthand       = "m"
	ManifestsFlagHelp        = "" /* 230-byte string literal not displayed */
	ImageRegistryFlag        = "image-registry"
	ImageRegistryFlagHelp    = "" /* 136-byte string literal not displayed */
	ImageRegistryFlagDefault = ""
	ImagePrefixFlag          = "image-prefix"
	ImagePrefixFlagHelp      = "" /* 173-byte string literal not displayed */
	ImagePrefixFlagDefault   = ""
	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 */
	SkipConfirmationFlagHelp = "Non-interactive mode - assumes the answers to all interactive questions to be 'Y'."
	SkipConfirmationFlag     = "skip-confirmation"
	SkipConfirmationShort    = "y"
	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 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 MysqlBackupMutatingWebhookName = "verrazzano-mysql-backup"

MysqlBackupMutatingWebhookName specifies the name of mysql webhook.

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 VerrazzanoMysqlInstallValuesWebhook = "verrazzano-platform-mysqlinstalloverrides"
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 VerrazzanoPlatformOperatorWebhook = "verrazzano-platform-operator-webhook"
View Source
const VerrazzanoReleaseList = "https://api.github.com/repos/verrazzano/verrazzano/releases"

VerrazzanoReleaseList - API for getting the list of Verrazzano releases

View Source
const VerrazzanoRequirementsValidatorWebhook = "verrazzano-platform-requirements-validator"
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