util

package
v1.35.0-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02_15-04-05"

TimeFormat is used to name log files generated by deploy step

Variables

This section is empty.

Functions

func AddTagsToPodSelector added in v1.27.0

func AddTagsToPodSelector(artifacts []graph.Artifact, deployerArtifacts []graph.Artifact, podSelector *kubernetes.ImageList)

Update which images are logged, if the image is present in the provided deployer's artifacts.

func ApplyDefaultRepo

func ApplyDefaultRepo(globalConfig string, defaultRepo *string, tag string) (string, error)

ApplyDefaultRepo applies the default repo to a given image tag.

func ConsolidateNamespaces added in v1.28.0

func ConsolidateNamespaces(original, new []string) []string

func GetAllPodNamespaces added in v1.28.1

func GetAllPodNamespaces(configNamespace string, pipelines []latestV1.Pipeline) ([]string, error)

GetAllPodNamespaces lists the namespaces that should be watched. + The namespace passed on the command line + Current kube context's namespace + Namespaces referenced in Helm releases

func GroupVersionResource added in v1.34.1

GroupVersionResource returns the first `GroupVersionResource` for the given `GroupVersionKind`.

func MockK8sClient added in v1.28.0

func MockK8sClient(string) (k8s.Interface, error)

func WithLogFile

func WithLogFile(filename string, out io.Writer, muted Muted) (io.Writer, func(), error)

WithLogFile returns a file to write the deploy output to, and a function to be executed after the deploy step is complete.

func WithStatusCheckLogFile

func WithStatusCheckLogFile(filename string, out io.Writer, muted Muted) (io.Writer, func(), error)

WithStatusCheckLogFile returns a file to write the status-check output to, and a function to be executed after the status-check step is complete.

Types

type Muted

type Muted interface {
	MuteStatusCheck() bool
	MuteDeploy() bool
}

Jump to

Keyboard shortcuts

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