cmd

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CFG_FILE_DFLT = ".mkactl"
	CFG_PATH_REPO = "repo"

	CFG_KEY_CTX_REPO = "context.repository"
	CFG_KEY_GL_ADRSS = "gitlab.address"
	CFG_KEY_GL_USER  = "gitlab.user"
	CFG_KEY_GL_PASS  = "gitlab.password"
	CFG_KEY_GL_TOKEN = "gitlab.token"

	ENV_VAR_KUBECONFIG = "KUBECONFIG"

	GITLAB_GROUP_BB    = 121
	GITLAB_PRJ_LABEL   = "control-repo"
	GITLAB_PRJ_CI_FILE = ".gitlab-ci.yml"

	GITLAB_PRJ_CI_BASE_TMPL = `
stages:
  - diff
  - deploy

include:
{{- range .Blocks}}
  - /{{.Block}}/.gitlab-ci.yml
{{- end}}
`
	GITLAB_PRJ_CI_BLCK_TMPL = `
include:
  - project: syseleven/building-blocks/helmfiles/{{.Block}}
    file: JobDevelopment.yaml
    ref: {{.Ref}}
`
)

Variables

This section is empty.

Functions

func Execute

func Execute(version string)

Types

type BlockName added in v0.2.0

type BlockName string

type BlockRef added in v0.2.0

type BlockRef struct {
	Block, Ref string
}

type BlockRefs added in v0.2.0

type BlockRefs struct {
	Blocks []*BlockRef
}

func (*BlockRefs) String added in v0.2.0

func (refs *BlockRefs) String() string

Jump to

Keyboard shortcuts

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