Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support workflow level poddisruptionbudge for workflow pods #1728 #2286

Merged
merged 38 commits into from
Feb 26, 2020

Conversation

sarabala1979
Copy link
Member

Checklist:

@codecov
Copy link

codecov bot commented Feb 21, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@2989568). Click here to learn what that means.
The diff coverage is 8.46%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #2286   +/-   ##
=========================================
  Coverage          ?   13.36%           
=========================================
  Files             ?       70           
  Lines             ?    24266           
  Branches          ?        0           
=========================================
  Hits              ?     3244           
  Misses            ?    20613           
  Partials          ?      409
Impacted Files Coverage Δ
persist/sqldb/offload_node_status_repo.go 3.9% <ø> (ø)
server/workflow/workflow_server.go 33.33% <0%> (ø)
cmd/argo/commands/watch.go 0% <0%> (ø)
cmd/argo/commands/wait.go 0% <0%> (ø)
cmd/argo/commands/logs.go 0% <0%> (ø)
cmd/argo/commands/common.go 13.79% <100%> (ø)
workflow/controller/operator.go 61.4% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2989568...6bc706a. Read the comment docs.

pkg/apis/workflow/v1alpha1/workflow_types.go Outdated Show resolved Hide resolved
pkg/apis/workflow/v1alpha1/workflow_types.go Outdated Show resolved Hide resolved
pkg/apis/workflow/v1alpha1/workflow_types.go Outdated Show resolved Hide resolved
test/e2e/functional/default-pdb-support.yaml Outdated Show resolved Hide resolved
test/e2e/functional_test.go Outdated Show resolved Hide resolved
workflow/controller/operator.go Outdated Show resolved Hide resolved
workflow/controller/operator.go Outdated Show resolved Hide resolved
workflow/controller/operator.go Outdated Show resolved Hide resolved
workflow/controller/operator.go Outdated Show resolved Hide resolved
test/e2e/functional_test.go Outdated Show resolved Hide resolved
go.mod Show resolved Hide resolved
return nil
}

func (woc *wfOperationCtx) deletePDBResource() error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you should delete the PDB it here. It'll just get deleted when the workflow gets deleted due to the ownership reference.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think PDB doesn't hold any workflow related information to keep for until workflow delete. This is like a DB transaction. It prevents the pod deletion during workflow running. we should delete PDB resource, once the workflow execution was done. This will optimize the etcd size and performance.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't feel strongly about this. @jessesuen

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PDB does not look bit in size to me.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you saying we cannot delete pods in there is a matching PDB?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, we already delete resources on completion to keep things tidy, reduce etcd usage etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants