airshipctl/pkg/config/constants.go
Ian Howell 2de4a0f6a3 Remove unused OutputFormat type
Change-Id: Iffb0438e1722acbd52f7f2f083f1c00ad98455b9
2020-03-26 08:22:43 -05:00

68 lines
1.9 KiB
Go

package config
// Constants related to the ClusterType type
const (
Ephemeral = "ephemeral"
Target = "target"
AirshipClusterNameSep = "_"
AirshipClusterDefaultType = Target
)
// Constants related to Phases
const (
Initinfra = "initinfra"
)
// Sorted
var AllClusterTypes = [2]string{Ephemeral, Target}
// Constants defining default values
const (
AirshipConfigGroup = "airshipit.org"
AirshipConfigVersion = "v1alpha1"
AirshipConfigAPIVersion = AirshipConfigGroup + "/" + AirshipConfigVersion
AirshipConfigKind = "Config"
AirshipConfigDir = ".airship"
AirshipConfig = "config"
AirshipKubeConfig = "kubeconfig"
AirshipConfigEnv = "AIRSHIPCONFIG"
AirshipKubeConfigEnv = "AIRSHIP_KUBECONFIG"
AirshipDefaultContext = "default"
AirshipDefaultManifest = "default"
AirshipDefaultManifestRepo = "treasuremap"
AirshipDefaultManifestRepoLocation = "https://opendev.org/airship/" + AirshipDefaultManifestRepo
// Modules
AirshipDefaultBootstrapImage = "quay.io/airshipit/isogen:latest"
AirshipDefaultIsoURL = "http://localhost:8099/debian-custom.iso"
AirshipDefaultRemoteType = "redfish"
)
const (
FlagAPIServer = "server"
FlagAuthInfoName = "user"
FlagBearerToken = "token"
FlagCAFile = "certificate-authority"
FlagCertFile = "client-certificate"
FlagClusterName = "cluster"
FlagClusterType = "cluster-type"
FlagCurrentContext = "current-context"
FlagConfigFilePath = "airshipconf"
FlagEmbedCerts = "embed-certs"
FlagInsecure = "insecure-skip-tls-verify"
FlagKeyFile = "client-key"
FlagManifest = "manifest"
FlagNamespace = "namespace"
FlagPassword = "password"
FlagUsername = "username"
FlagCurrent = "current"
)
// Constants related to filesystem
const (
SiteDirectory = "site"
)