Documentation ¶
Index ¶
- Constants
- func CreateOrUpdateResource(ctx context.Context, client client.Client, obj client.Object) error
- func DeleteResource(ctx context.Context, k8sClient client.Client, obj client.Object, ...) error
- func NewSyncer(client client.Client) interfaces.Pipeline
- type NewProductPipelineSyncer
- type ProductPipelineSyncer
- type Syncer
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 ¶
CreateOrUpdateResource create or update k8s resource in one function
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
Click to show internal directories.
Click to hide internal directories.