deploy

package
v0.0.0-...-a1c22f6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvKeyDeployEnv sets the environment variable name for deoloy env.
	EnvKeyDeployEnv string = "DEPLOY_ENV"
	// EnvKeyE2EVersionString sets the environment variable name for E2E version string.
	EnvKeyE2EVersionString = "E2E_VERSION_STRING"

	// E2EEnv is the const string for the E2E environment.
	E2EEnv string = "e2e"
	// ProdEnv is the const string for the production environment.
	ProdEnv    string = "prod"
	INTEnv     string = "int"
	INTv2Env   string = "intv2"
	StagingEnv string = "staging"
)

Variables

This section is empty.

Functions

func GetLoggingRegion

func GetLoggingRegion(region string) string

GetLoggingRegion returns the aks region for logs (int-eastus; staging-westus2)

func Reset

func Reset()

Reset is used to allow test to reset the context

Types

type DeploymentConfig

type DeploymentConfig struct {
	// DeployEnv should be in [prod,e2e,...]
	DeployEnv string
	E2EConfig E2EConfig
}

DeploymentConfig contains the deployment configurations.

func GetDeploymentConfig

func GetDeploymentConfig() *DeploymentConfig

GetDeploymentConfig returns the singleton of the config.

func (*DeploymentConfig) IsE2E

func (d *DeploymentConfig) IsE2E() bool

IsE2E tells if current deployment environment is E2E.

type E2EConfig

type E2EConfig struct {
	// VersionString is the unique string we are using to separate the different
	// deployments in our E2E environment.
	VersionString string
}

E2EConfig contains the configs for our E2E.

Jump to

Keyboard shortcuts

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