reviewapps

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DNS1123NameMaximumLength         = 63
	DNS1123NotAllowedCharacters      = "[^-a-z0-9]"
	DNS1123NotAllowedStartCharacters = "^[^a-z0-9]+"
)

yoinked from https://gitlab.com/gitlab-org/gitlab-runner/-/blob/0e2ae0001684f681ff901baa85e0d63ec7838568/executors/kubernetes/util.go#L23

Variables

This section is empty.

Functions

func CreateAndRunTrigger

func CreateAndRunTrigger(ctx context.Context, logger *zap.Logger, creds []byte, project string, branch string, cloudSourceRepo string, reviewAppName string) (string, error)

CreateAndRunTrigger creates a cloud build trigger for the review app

func CreateReviewApp

func CreateReviewApp(ctx context.Context, db *core.DB, l *zap.Logger, branch string, appName string, credentials []byte, projectName string) (string, error)

func DeleteReviewApp

func DeleteReviewApp(ctx context.Context, db *core.DB, reviewAppName string, credentials []byte, projectName string) error

func NewReviewAppSetup

func NewReviewAppSetup(sourceApp string, reviewApp string) error

NewReviewAppSetup replicates a namespace and its roles, rolebindings, and opaque secrets after removing their non-generic metadata. Also renames source app name matches across all relevant resources.

func ReviewAppName

func ReviewAppName(appName string, branch string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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