Documentation ¶
Index ¶
- func ConstructContainerProvider(options ...Option) *apistructs.ContainerInstanceProvider
- func DealJobAndClusterInfo(job *apistructs.JobFromUser, clusterInfo apistructs.ClusterInfoData)
- func DealPipelineProviderBeforeRun(p *spec.Pipeline, clusterInfo apistructs.ClusterInfoData)
- func DealTaskRuntimeResource(task *spec.PipelineTask)
- func GenNamespaceByJob(job *apistructs.JobFromUser) *corev1.Namespace
- func GenNamespaceByProviderAndClusterInfo(name string, clusterInfo map[string]string, ...) *corev1.Namespace
- type Option
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 ¶
Click to show internal directories.
Click to hide internal directories.