Documentation ¶
Index ¶
- Constants
- func CreateTemplateEcr(cmd *cobra.Command, args []string) error
- func CreateTemplateNamespace(cmd *cobra.Command, args []string) error
- func CreateTemplatePrototype() error
- func CreateTemplateRds(cmd *cobra.Command, args []string) error
- func CreateTemplateS3(cmd *cobra.Command, args []string) error
- func CreateTemplateServiceAccount() error
- func Migrate(skipWarning bool) error
- func MigrateCheck(ns string) error
- type Namespace
- type Prototype
- type RepoEnvironment
Constants ¶
const NamespaceYamlFile = "00-namespace.yaml"
Variables ¶
This section is empty.
Functions ¶
func CreateTemplateNamespace ¶
func CreateTemplatePrototype ¶
func CreateTemplatePrototype() error
func CreateTemplateRds ¶
CreateTemplateRds creates the terraform files from environment's template folder
func CreateTemplateS3 ¶
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 ¶
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 ¶
MigrateCheck check the namespace has the correct externalDNS annotations
Types ¶
type Namespace ¶
type Prototype ¶
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
}
Source Files ¶
- businessUnitValidator.go
- common.go
- githubTeamNameValidator.go
- githubUrlValidator.go
- inListValidator.go
- lowercaseStringValidator.go
- migrate.go
- migrateCheck.go
- namespace.go
- namespaceNameValidator.go
- notEmptyValidator.go
- prototype.go
- questionValidator.go
- regexValidator.go
- repoEnvironment.go
- slackChannelValidator.go
- teamEmailValidator.go
- templateEnvironment.go
- templatePrototype.go
- templateServiceacount.go
- templatesEcr.go
- templatesRds.go
- templatesS3.go
- testutils.go
- trueFalseValidator.go
- userQuestion.go
- yesNoValidator.go