Documentation ¶
Index ¶
- Constants
- Variables
- func AddTemplatesForGlobalSecretsInWorkflowTemplate(globalCmCsConfigs []*bean.GlobalCMCSDto, steps *[]v1alpha1.ParallelSteps, ...) error
- func CheckIfReTriggerRequired(status, message, workflowRunnerStatus string) bool
- func ExtractVolumesFromCmCs(configMaps []bean2.ConfigSecretMap, secrets []bean2.ConfigSecretMap) []v12.Volume
- func GetClientInstance(config *rest.Config, namespace string) (v1alpha12.WorkflowInterface, error)
- func GetConfigMapBody(configMapSecretDto types.ConfigMapSecretDto) v12.ConfigMap
- func GetConfigMapJson(configMapSecretDto types.ConfigMapSecretDto) (string, error)
- func GetFromGlobalCmCsDtos(globalCmCsConfigs []*bean.GlobalCMCSDto) ([]bean2.ConfigSecretMap, []bean2.ConfigSecretMap, error)
- func GetSecretBody(configMapSecretDto types.ConfigMapSecretDto) v12.Secret
- func GetSecretJson(configMapSecretDto types.ConfigMapSecretDto) (string, error)
- type ArgoWorkflowExecutor
- type ArgoWorkflowExecutorImpl
- func (impl *ArgoWorkflowExecutorImpl) ExecuteWorkflow(workflowTemplate bean.WorkflowTemplate) (*unstructured.UnstructuredList, error)
- func (impl *ArgoWorkflowExecutorImpl) GetWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) (*unstructured.UnstructuredList, error)
- func (impl *ArgoWorkflowExecutorImpl) GetWorkflowStatus(workflowName string, namespace string, clusterConfig *rest.Config) (*types.WorkflowStatus, error)
- func (impl *ArgoWorkflowExecutorImpl) TerminateWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) error
- type SystemWorkflowExecutor
- type SystemWorkflowExecutorImpl
- func (impl *SystemWorkflowExecutorImpl) ExecuteWorkflow(workflowTemplate bean.WorkflowTemplate) (*unstructured.UnstructuredList, error)
- func (impl *SystemWorkflowExecutorImpl) GetWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) (*unstructured.UnstructuredList, error)
- func (impl *SystemWorkflowExecutorImpl) GetWorkflowStatus(workflowName string, namespace string, clusterConfig *rest.Config) (*types2.WorkflowStatus, error)
- func (impl *SystemWorkflowExecutorImpl) TerminateWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) error
- type WorkflowExecutor
Constants ¶
View Source
const ( STEP_NAME_REGEX = "create-env-%s-gb-%d" TEMPLATE_NAME_REGEX = "%s-gb-%d" WORKFLOW_MINIO_CRED = "workflow-minio-cred" CRED_ACCESS_KEY = "accessKey" CRED_SECRET_KEY = "secretKey" S3_ENDPOINT_URL = "s3.amazonaws.com" DEVTRON_WORKFLOW_LABEL_KEY = "devtron.ai/workflow-purpose" DEVTRON_WORKFLOW_LABEL_VALUE = "cd" WORKFLOW_GENERATE_NAME_REGEX = "%s-" RESOURCE_CREATE_ACTION = "create" )
View Source
const ( WORKFLOW_JOB_BACKOFF_LIMIT = 0 WORKFLOW_JOB_FINALIZER = "foregroundDeletion" )
View Source
const POD_DELETED_MESSAGE = "pod deleted"
View Source
const WorkflowCancel = "CANCELLED"
Variables ¶
View Source
var ACCESS_KEY_SELECTOR = &v12.SecretKeySelector{Key: CRED_ACCESS_KEY, LocalObjectReference: v12.LocalObjectReference{Name: WORKFLOW_MINIO_CRED}}
View Source
var ArgoWorkflowOwnerRef = v1.OwnerReference{APIVersion: "argoproj.io/v1alpha1", Kind: "Workflow", Name: "{{workflow.name}}", UID: "{{workflow.uid}}", BlockOwnerDeletion: &[]bool{true}[0]}
View Source
var SECRET_KEY_SELECTOR = &v12.SecretKeySelector{Key: CRED_SECRET_KEY, LocalObjectReference: v12.LocalObjectReference{Name: WORKFLOW_MINIO_CRED}}
Functions ¶
func AddTemplatesForGlobalSecretsInWorkflowTemplate ¶
func AddTemplatesForGlobalSecretsInWorkflowTemplate(globalCmCsConfigs []*bean.GlobalCMCSDto, steps *[]v1alpha1.ParallelSteps, volumes *[]v12.Volume, templates *[]v1alpha1.Template) error
func ExtractVolumesFromCmCs ¶
func ExtractVolumesFromCmCs(configMaps []bean2.ConfigSecretMap, secrets []bean2.ConfigSecretMap) []v12.Volume
func GetClientInstance ¶
func GetConfigMapBody ¶
func GetConfigMapBody(configMapSecretDto types.ConfigMapSecretDto) v12.ConfigMap
func GetConfigMapJson ¶
func GetConfigMapJson(configMapSecretDto types.ConfigMapSecretDto) (string, error)
func GetFromGlobalCmCsDtos ¶
func GetFromGlobalCmCsDtos(globalCmCsConfigs []*bean.GlobalCMCSDto) ([]bean2.ConfigSecretMap, []bean2.ConfigSecretMap, error)
func GetSecretBody ¶
func GetSecretBody(configMapSecretDto types.ConfigMapSecretDto) v12.Secret
func GetSecretJson ¶
func GetSecretJson(configMapSecretDto types.ConfigMapSecretDto) (string, error)
Types ¶
type ArgoWorkflowExecutor ¶
type ArgoWorkflowExecutor interface { WorkflowExecutor }
type ArgoWorkflowExecutorImpl ¶
type ArgoWorkflowExecutorImpl struct {
// contains filtered or unexported fields
}
func NewArgoWorkflowExecutorImpl ¶
func NewArgoWorkflowExecutorImpl(logger *zap.SugaredLogger) *ArgoWorkflowExecutorImpl
func (*ArgoWorkflowExecutorImpl) ExecuteWorkflow ¶
func (impl *ArgoWorkflowExecutorImpl) ExecuteWorkflow(workflowTemplate bean.WorkflowTemplate) (*unstructured.UnstructuredList, error)
func (*ArgoWorkflowExecutorImpl) GetWorkflow ¶ added in v0.6.26
func (impl *ArgoWorkflowExecutorImpl) GetWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) (*unstructured.UnstructuredList, error)
func (*ArgoWorkflowExecutorImpl) GetWorkflowStatus ¶ added in v0.6.26
func (impl *ArgoWorkflowExecutorImpl) GetWorkflowStatus(workflowName string, namespace string, clusterConfig *rest.Config) (*types.WorkflowStatus, error)
func (*ArgoWorkflowExecutorImpl) TerminateWorkflow ¶
type SystemWorkflowExecutor ¶
type SystemWorkflowExecutor interface { WorkflowExecutor }
type SystemWorkflowExecutorImpl ¶
type SystemWorkflowExecutorImpl struct {
// contains filtered or unexported fields
}
func NewSystemWorkflowExecutorImpl ¶
func NewSystemWorkflowExecutorImpl(logger *zap.SugaredLogger, k8sUtil *k8s.K8sServiceImpl) *SystemWorkflowExecutorImpl
func (*SystemWorkflowExecutorImpl) ExecuteWorkflow ¶
func (impl *SystemWorkflowExecutorImpl) ExecuteWorkflow(workflowTemplate bean.WorkflowTemplate) (*unstructured.UnstructuredList, error)
func (*SystemWorkflowExecutorImpl) GetWorkflow ¶ added in v0.6.26
func (impl *SystemWorkflowExecutorImpl) GetWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) (*unstructured.UnstructuredList, error)
func (*SystemWorkflowExecutorImpl) GetWorkflowStatus ¶ added in v0.6.26
func (impl *SystemWorkflowExecutorImpl) GetWorkflowStatus(workflowName string, namespace string, clusterConfig *rest.Config) (*types2.WorkflowStatus, error)
func (*SystemWorkflowExecutorImpl) TerminateWorkflow ¶
type WorkflowExecutor ¶
type WorkflowExecutor interface { ExecuteWorkflow(workflowTemplate bean.WorkflowTemplate) (*unstructured.UnstructuredList, error) TerminateWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) error GetWorkflow(workflowName string, namespace string, clusterConfig *rest.Config) (*unstructured.UnstructuredList, error) GetWorkflowStatus(workflowName string, namespace string, clusterConfig *rest.Config) (*types.WorkflowStatus, error) }
Click to show internal directories.
Click to hide internal directories.