reviewapps

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

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