Documentation ¶
Index ¶
- Constants
- func ClusterClientSet(config *rest.Config) (*kubernetes.Clientset, error)
- func CreateObjectsFromResourceMap(ctx context.Context, clients *Clients, resourceMap resmap.ResMap, ...) error
- func KustomizeBuild(path string) (resmap.ResMap, error)
- func MountConfigMapAsWorkspaceToPipelineRun(configMapName string, workspaceName string, ...)
- func NewArrayParamValue(value []string) pipelinev1.ParamValue
- func NewObjectParamValue(value map[string]string) pipelinev1.ParamValue
- func NewStringParamValue(value string) pipelinev1.ParamValue
- func ReadFileAsPipelineRun(path string) (pipelinev1.PipelineRun, error)
- func ResourceToType[T any](resource *resource.Resource, t *T) error
- func SetPipelineRunParam(name string, value pipelinev1.ParamValue, pipelineRun *pipelinev1.PipelineRun)
- func WaitFor(duration time.Duration, tickRate time.Duration, f func() (bool, error)) error
- type Clients
- type Options
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 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 SetPipelineRunParam ¶
func SetPipelineRunParam(name string, value pipelinev1.ParamValue, pipelineRun *pipelinev1.PipelineRun)
Types ¶
type Clients ¶
type Clients struct { Kubernetes *kubernetes.Clientset Task pipelinev1.TaskInterface Pipeline pipelinev1.PipelineInterface PipelineRun pipelinev1.PipelineRunInterface }
func CreateClients ¶
Click to show internal directories.
Click to hide internal directories.