support

package
v0.0.0-...-92b7072 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3BucketNameEnvKey      = "S3_BUCKET"
	TargetImageTagsEnvKey   = "TARGET_IMAGE_TAGS_JSON"
	ClusterNamespaceEnvKey  = "NAMESPACE"
	GitSelfSignedCertEnvKey = "GIT_SELF_SIGNED_CERT"
	S3SelfSignedCertEnvKey  = "S3_SELF_SIGNED_CERT"
)

Variables

This section is empty.

Functions

func ClusterClientSet

func ClusterClientSet(config *rest.Config) (*kubernetes.Clientset, error)

func CreateObjectsFromResourceMap

func CreateObjectsFromResourceMap(ctx context.Context, clients *Clients, resourceMap resmap.ResMap, namespace string) error

func KustomizeBuild

func KustomizeBuild(path string) (resmap.ResMap, error)

func MountConfigMapAsWorkspaceToPipelineRun

func MountConfigMapAsWorkspaceToPipelineRun(configMapName string, workspaceName string, pipelineRun *pipelinev1.PipelineRun)

func NewArrayParamValue

func NewArrayParamValue(value []string) pipelinev1.ParamValue

func NewObjectParamValue

func NewObjectParamValue(value map[string]string) pipelinev1.ParamValue

func NewStringParamValue

func NewStringParamValue(value string) pipelinev1.ParamValue

func ReadFileAsPipelineRun

func ReadFileAsPipelineRun(path string) (pipelinev1.PipelineRun, error)

func ResourceToType

func ResourceToType[T any](resource *resource.Resource, t *T) error

func SetPipelineRunParam

func SetPipelineRunParam(name string, value pipelinev1.ParamValue, pipelineRun *pipelinev1.PipelineRun)

func WaitFor

func WaitFor(duration time.Duration, tickRate time.Duration, f func() (bool, error)) error

Types

type Clients

type Clients struct {
	Kubernetes  *kubernetes.Clientset
	Task        pipelinev1.TaskInterface
	Pipeline    pipelinev1.PipelineInterface
	PipelineRun pipelinev1.PipelineRunInterface
}

func CreateClients

func CreateClients(namespace string) (Clients, error)

type Options

type Options struct {
	S3BucketName             string   // required
	ClusterNamespace         string   // required
	TargetImageTagReferences []string // required
	GitSelfSignedCert        string   // optional
	S3SelfSignedCert         string   // optional
}

func GetOptions

func GetOptions() (*Options, error)

Jump to

Keyboard shortcuts

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