@mittwald/kubernetes
Advanced tools
Comparing version 3.3.0 to 3.3.5
@@ -0,4 +1,9 @@ | ||
export declare type AllowedOperator = "in" | "notin"; | ||
export interface MatchExpression { | ||
operator: AllowedOperator; | ||
values: string[]; | ||
} | ||
export interface Selector { | ||
[l: string]: string; | ||
[l: string]: string | MatchExpression; | ||
} | ||
export declare function selectorToQueryString(selector: Selector): string; |
@@ -14,3 +14,8 @@ "use strict"; | ||
_.forEach(selector, (value, label) => { | ||
v.push(label + "=" + value); | ||
if (typeof value === "string") { | ||
v.push(label + "=" + value); | ||
} | ||
else { | ||
v.push(label + " " + value.operator + " (" + value.values.join(",") + ")"); | ||
} | ||
}); | ||
@@ -17,0 +22,0 @@ return v.join(","); |
@@ -28,3 +28,3 @@ { | ||
"jsonschema": "^1.2.6", | ||
"lodash": "^4.17.19", | ||
"lodash": "^4.17.21", | ||
"prom-client": "^12.0.0", | ||
@@ -65,3 +65,3 @@ "request": "^2.88.2", | ||
}, | ||
"version": "3.3.0" | ||
"version": "3.3.5" | ||
} |
Sorry, the diff of this file is not supported yet
189783
3481
Updatedlodash@^4.17.21