1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Update distro label on clusters (#3171)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-06-25 10:40:26 -04:00 committed by GitHub
parent fff6d2e5f9
commit 9790b71f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,7 @@ export class ClusterManager extends Singleton {
this.updateEntityStatus(entity, cluster);
entity.metadata.labels = Object.assign({}, cluster.labels, entity.metadata.labels);
entity.metadata.labels.distro = cluster.distribution;
if (cluster.preferences?.clusterName) {
entity.metadata.name = cluster.preferences.clusterName;