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

chore: remove unused code #2084

Merged
merged 1 commit into from
Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions pkg/scheduling/taints.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,6 @@ import (
// Taints is a decorated alias type for []v1.Taint
type Taints []v1.Taint

// Has returns true if taints has a taint for the given key and effect
func (ts Taints) Has(taint v1.Taint) bool {
for _, t := range ts {
if t.MatchTaint(&taint) {
return true
}
}
return false
}

// HasKey returns true if taints has a taint for the given key
func (ts Taints) HasKey(taintKey string) bool {
for _, t := range ts {
if t.Key == taintKey {
return true
}
}
return false
}

// Tolerates returns true if the pod tolerates all taints. 'additional' are extra tolerations for things like startup
// taints or the standard not-ready taint applied to nodes we have launched.
func (ts Taints) Tolerates(pod *v1.Pod, additional ...v1.Toleration) (errs error) {
Expand Down
67 changes: 0 additions & 67 deletions pkg/utils/parallel/workqueue.go

This file was deleted.