mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use stringifyLabels in getNodeSelectors of WorkloadKubeObject.
Signed-off-by: devodev <abalexandrebarone@gmail.com>
This commit is contained in:
parent
36c1c2cde6
commit
c9387771b9
@ -19,6 +19,7 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { KubeObject } from "../kube-object";
|
||||||
import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
import { IAffinity, WorkloadKubeObject } from "../workload-kube-object";
|
||||||
import { autoBind } from "../../utils";
|
import { autoBind } from "../../utils";
|
||||||
import { IMetrics, metricsApi } from "./metrics.api";
|
import { IMetrics, metricsApi } from "./metrics.api";
|
||||||
@ -409,7 +410,7 @@ export class Pod extends WorkloadKubeObject {
|
|||||||
getNodeSelectors(): string[] {
|
getNodeSelectors(): string[] {
|
||||||
const { nodeSelector = {} } = this.spec;
|
const { nodeSelector = {} } = this.spec;
|
||||||
|
|
||||||
return Object.entries(nodeSelector).map(values => values.join(": "));
|
return KubeObject.stringifyLabels(nodeSelector);
|
||||||
}
|
}
|
||||||
|
|
||||||
getTolerations() {
|
getTolerations() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user