Skip to content

Commit

Permalink
s/requriements/requirements (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
spring1843 authored Mar 4, 2022
1 parent 51e4ed9 commit e7f4183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/provisioning/v1alpha5/requirements.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ type Requirements struct {
requirements map[string]sets.Set `json:"-"`
}

// NewRequirements constructs requiremnets from NodeSelectorRequirements
// NewRequirements constructs requirements from NodeSelectorRequirements
func NewRequirements(requirements ...v1.NodeSelectorRequirement) Requirements {
return Requirements{requirements: map[string]sets.Set{}}.Add(requirements...)
}

// NewLabelRequirements constructs requriements from labels
// NewLabelRequirements constructs requirements from labels
func NewLabelRequirements(labels map[string]string) Requirements {
requirements := []v1.NodeSelectorRequirement{}
for key, value := range labels {
Expand Down

0 comments on commit e7f4183

Please sign in to comment.