github.com/verrazzano/verrazzano@v1.7.1/tools/psr/psrctl/cmd/constants/constants.go (about) 1 // Copyright (c) 2022, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 4 package constants 5 6 const ( 7 FlagScenario = "scenario" 8 FlagsScenarioShort = "s" 9 FlagScenarioHelp = "the scenario ID" 10 11 FlagNamespace = "namespace" 12 FlagNamespaceShort = "n" 13 FlagNamespaceHelp = "the namespace for the scenario" 14 15 FlagVerbose = "verbose" 16 FlagVerboseShort = "v" 17 FlagVerboseHelp = "verbose output" 18 19 FlagAll = "all-namespaces" 20 FlagAllShort = "A" 21 FlagAllHelp = "all namespaces" 22 23 FlagScenarioDir = "scenario-directory" 24 FlagScenarioDirShort = "d" 25 FlagScenarioDirHelp = `a directory that contains a scenario directory at any level in the directory tree. This allows you to run scenarios that are not compiled into the psrctl binary.` 26 27 WorkerImageName = "worker-image" 28 WorkerImageNameShort = "w" 29 WorkerImageNameHelp = `The full PSR image name and tag to use for executing scenarios` 30 31 ImagePullSecretName = "pull-secret" 32 ImagePullSecretNameShort = "p" 33 ImagePullSecretNameHelp = `The name of the imagePullSecret for the PSR worker image` 34 35 ImageNameKey = "imageName" 36 ImagePullSecKey = "imagePullSecrets[0].name" 37 ImagePullSecDefault = "verrazzano-container-registry" 38 39 OutputFormatName = "output" 40 OutputFormatNameShort = "o" 41 OutputFormatHelp = "Output format, can be one of \"json\" or \"text\", defaults to \"text\"" 42 ) 43 44 var defaultWorkerImage string 45 46 func GetDefaultWorkerImage() string { 47 return defaultWorkerImage 48 }