environment

package
v1.12.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceYamlFile = "00-namespace.yaml"

Variables

This section is empty.

Functions

func CreateTemplateEcr

func CreateTemplateEcr(cmd *cobra.Command, args []string) error

func CreateTemplateNamespace

func CreateTemplateNamespace(cmd *cobra.Command, args []string) error

func CreateTemplatePrototype

func CreateTemplatePrototype() error

func CreateTemplateRds

func CreateTemplateRds(cmd *cobra.Command, args []string) error

CreateTemplateRds creates the terraform files from environment's template folder

func CreateTemplateS3

func CreateTemplateS3(cmd *cobra.Command, args []string) error

CreateTemplateRds creates the terraform files from environment's template folder

func CreateTemplateServiceAccount

func CreateTemplateServiceAccount() error

CreateTemplateServiceAccount sets and creates a template file containing all the necessary values to create a serviceaccount resource in Kubernetes. It will only execute in a directory with a namespace resource i.e. 00-namespace.yaml.

func Migrate

func Migrate(skipWarning bool) error

Migrate subcommand copy a namespace folder from live-1 -> live directory. It also performs some basic checks (IAM roles & and ElasticSearch) to ensure the namespace will not have problem during the migration

func MigrateCheck

func MigrateCheck(ns string) error

MigrateCheck check the namespace has the correct externalDNS annotations

Types

type Namespace

type Namespace struct {
	Application           string
	BusinessUnit          string
	Environment           string
	GithubTeam            string
	InfrastructureSupport string
	IsProduction          string
	Namespace             string
	Owner                 string
	OwnerEmail            string
	SlackChannel          string
	SourceCode            string
	ReviewAfter           string
}

func (*Namespace) ReadYaml

func (ns *Namespace) ReadYaml() error

This is a public function so that we can use it in our tests

type Prototype

type Prototype struct {
	Namespace         Namespace
	BasicAuthUsername string
	BasicAuthPassword string
}

Prototype represents a gov.uk prototype kit hosted on the cloud platform. Under the hood, this is a namespace and a github repository of the same name, connected via a github actions continuous deployment workflow and github actions secrets containing the namespace details, ecr & serviceaccount credentials.

type RepoEnvironment

type RepoEnvironment struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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