container_provider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructContainerProvider

func ConstructContainerProvider(options ...Option) *apistructs.ContainerInstanceProvider

ConstructContainerProvider try to construct container instance provider like eci

func DealJobAndClusterInfo

func DealJobAndClusterInfo(job *apistructs.JobFromUser, clusterInfo apistructs.ClusterInfoData)

func DealPipelineProviderBeforeRun

func DealPipelineProviderBeforeRun(p *spec.Pipeline, clusterInfo apistructs.ClusterInfoData)

func DealTaskRuntimeResource

func DealTaskRuntimeResource(task *spec.PipelineTask)

func GenNamespaceByJob

func GenNamespaceByJob(job *apistructs.JobFromUser) *corev1.Namespace

func GenNamespaceByProviderAndClusterInfo

func GenNamespaceByProviderAndClusterInfo(name string, clusterInfo map[string]string, provider *apistructs.ContainerInstanceProvider) *corev1.Namespace

Types

type Option

type Option func(provider *apistructs.ContainerInstanceProvider)

func WithExtensions

func WithExtensions(extensions map[string]*apistructs.ActionSpec) Option

WithExtensions if the stages contain custom-type action, then it will make a disabled container instance provider todo judge the container instance type in task-level

func WithLabels

func WithLabels(labels map[string]string) Option

Jump to

Keyboard shortcuts

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