Skip to content

Commit 1753cac

Browse files
allow all special option
1 parent c55e199 commit 1753cac

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

minikube/lib/wait_validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func ValidateWait(v map[string]bool) error {
2525
var invalidOptions []string
2626

2727
for key := range v {
28-
if !contains(standardOptions, key) || contains(specialOptions, key) {
28+
if !contains(standardOptions, key) && !contains(specialOptions, key) {
2929
invalidOptions = append(invalidOptions, key)
3030
}
3131
}

minikube/lib/wait_validator_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ func TestValidateWait(t *testing.T) {
2626
input: map[string]bool{"invalid1": true, "invalid2": true, "apiserver": true},
2727
expectedError: "invalid wait option(s): invalid1, invalid2",
2828
},
29-
{
30-
name: "Special option",
31-
input: map[string]bool{"all": true},
32-
expectedError: "invalid wait option(s): all",
33-
},
3429
{
3530
name: "Empty input",
3631
input: map[string]bool{},

0 commit comments

Comments
 (0)