Skip to content

Commit cd0ee66

Browse files
committed
removed delete delay seconds
1 parent e17fec4 commit cd0ee66

File tree

4 files changed

+20
-24
lines changed

4 files changed

+20
-24
lines changed

pkg/pipeline/bean/WorkflowTemplate.go

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,25 @@ type WorkflowTemplate struct {
2828
WorkflowId int
2929
WorkflowRunnerId int
3030
v1.PodSpec
31-
ConfigMaps []bean.ConfigSecretMap
32-
Secrets []bean.ConfigSecretMap
33-
TTLValue *int32
34-
WorkflowRequestJson string
35-
WorkflowNamePrefix string
36-
WfControllerInstanceID string
37-
ClusterConfig *rest.Config
38-
Namespace string
39-
ArchiveLogs bool
40-
BlobStorageConfigured bool
41-
BlobStorageS3Config *blob_storage.BlobStorageS3Config
42-
CloudProvider blob_storage.BlobStorageType
43-
AzureBlobConfig *blob_storage.AzureBlobConfig
44-
GcpBlobConfig *blob_storage.GcpBlobConfig
45-
CloudStorageKey string
46-
PrePostDeploySteps []*StepObject
47-
RefPlugins []*RefPluginObject
48-
TerminationGracePeriod int
49-
WorkflowType string
50-
PodGCDeleteDelayDuration string
31+
ConfigMaps []bean.ConfigSecretMap
32+
Secrets []bean.ConfigSecretMap
33+
TTLValue *int32
34+
WorkflowRequestJson string
35+
WorkflowNamePrefix string
36+
WfControllerInstanceID string
37+
ClusterConfig *rest.Config
38+
Namespace string
39+
ArchiveLogs bool
40+
BlobStorageConfigured bool
41+
BlobStorageS3Config *blob_storage.BlobStorageS3Config
42+
CloudProvider blob_storage.BlobStorageType
43+
AzureBlobConfig *blob_storage.AzureBlobConfig
44+
GcpBlobConfig *blob_storage.GcpBlobConfig
45+
CloudStorageKey string
46+
PrePostDeploySteps []*StepObject
47+
RefPlugins []*RefPluginObject
48+
TerminationGracePeriod int
49+
WorkflowType string
5150
}
5251

5352
const (

pkg/pipeline/executors/ArgoWorkflowExecutor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ func (impl *ArgoWorkflowExecutorImpl) ExecuteWorkflow(workflowTemplate bean.Work
153153
Templates: templates,
154154
Volumes: workflowTemplate.Volumes,
155155
PodGC: &v1alpha1.PodGC{
156-
Strategy: v1alpha1.PodGCOnWorkflowCompletion,
157-
DeleteDelayDuration: workflowTemplate.PodGCDeleteDelayDuration,
156+
Strategy: v1alpha1.PodGCOnWorkflowCompletion,
158157
},
159158
},
160159
}

pkg/pipeline/types/CiCdConfig.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ type CiCdConfig struct {
152152
AzureBlobContainerCiCache string `env:"AZURE_BLOB_CONTAINER_CI_CACHE" description:"Cache bucket name for azure blob storage"`
153153
AzureAccountKey string `env:"AZURE_ACCOUNT_KEY" description:"If blob storage is being used of azure then pass the secret key to access the bucket"`
154154
BuildLogTTLValue int `env:"BUILD_LOG_TTL_VALUE_IN_SECS" envDefault:"3600" description:"This is the time that the pods of ci/pre-cd/post-cd live after completion state."`
155-
PodGCDeleteDelayDuration string `env:"POD_GC_DELETE_DELAY_DURATION" envDefault:"150s" description:"This is the time that pods will be delayed for deletion on workflow completion"`
156155
BaseLogLocationPath string `env:"BASE_LOG_LOCATION_PATH" envDefault:"/home/devtron/" description:"Used to store, download logs of ci workflow, artifact"`
157156
InAppLoggingEnabled bool `env:"IN_APP_LOGGING_ENABLED" envDefault:"false" description:"Used in case of argo workflow is enabled. If enabled logs push will be managed by us, else will be managed by argo workflow."`
158157
BuildxProvenanceMode string `env:"BUILDX_PROVENANCE_MODE" envDefault:"" description:"provinance is set to true by default by docker. this will add some build related data in generated build manifest.it also adds some unknown:unknown key:value pair which may not be compatible by some container registries. with buildx k8s driver , provinenance=true is causing issue when push manifest to quay registry, so setting it to false"` // provenance is set to false if this flag is not set

pkg/pipeline/types/Workflow.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ func (workflowRequest *WorkflowRequest) GetWorkflowTemplate(workflowJson []byte,
199199
workflowTemplate.WorkflowRunnerId = workflowRequest.WorkflowRunnerId
200200
workflowTemplate.PrePostDeploySteps = workflowRequest.PrePostDeploySteps
201201
}
202-
workflowTemplate.PodGCDeleteDelayDuration = config.PodGCDeleteDelayDuration
203202
return workflowTemplate
204203
}
205204

0 commit comments

Comments
 (0)