tekton

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PipelineDeployTaskName is a name for ProductPipelineSyncer if it need a name to record this deploy,
	// such as argocd app name for argocd
	PipelineDeployTaskName = "tekton-pipeline"
)

Variables

This section is empty.

Functions

func CreateOrUpdateResource

func CreateOrUpdateResource(ctx context.Context, client client.Client, obj client.Object) error

CreateOrUpdateResource create or update k8s resource in one function

func DeleteResource

func DeleteResource(ctx context.Context, k8sClient client.Client, obj client.Object, productName string) error

DeleteResource check resource is belongs to product, if yes, delete resource

func NewSyncer

func NewSyncer(client client.Client) interfaces.Pipeline

Types

type NewProductPipelineSyncer

type NewProductPipelineSyncer func(client.Client, interfaces.SecretClient, interfaces.RuntimeSyncTask, destClusterOptions) ProductPipelineSyncer

NewProductPipelineSyncer is used to return a productPipelineSyncer object

type ProductPipelineSyncer

type ProductPipelineSyncer interface {
	// contains filtered or unexported methods
}

ProductPipelineSyncer is a object use to sync tekton pipeline from git repo to k8s

func NewProductPipelineSyncerArgoCD

func NewProductPipelineSyncerArgoCD(k8sClient client.Client, secClient interfaces.SecretClient, task interfaces.RuntimeSyncTask, opts destClusterOptions) ProductPipelineSyncer

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

func (Syncer) DeployPipelineRuntime

func (s Syncer) DeployPipelineRuntime(ctx context.Context, task interfaces.RuntimeSyncTask) error

func (Syncer) UnDeployPipelineRuntime

func (s Syncer) UnDeployPipelineRuntime(ctx context.Context, task interfaces.RuntimeSyncTask) error

Jump to

Keyboard shortcuts

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