Skip to content

Commit dfa8f66

Browse files
ewilkeniabudiab
authored andcommitted
add LabelSelectorRequirement.doesNotExist option
1 parent 78e1804 commit dfa8f66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftkubeClient/Client/Selectors.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public enum LabelSelectorRequirement: Hashable, Sendable {
7676
case notIn([String: [String]])
7777
/// A label must exist.
7878
case exists([String])
79+
/// A label must not exist.
80+
case doesNotExist([String])
7981

8082
internal var value: String {
8183
switch self {
@@ -89,6 +91,8 @@ public enum LabelSelectorRequirement: Hashable, Sendable {
8991
return labels.asQueryParam(joiner: "notin")
9092
case let .exists(labels):
9193
return labels.joined(separator: ",")
94+
case let .doesNotExist(labels):
95+
return labels.joined(separator: ",")
9296
}
9397
}
9498
}

0 commit comments

Comments
 (0)