Fix cluster.k8s.io/v1alpha1/clusters CRD not being marked as Namespaced (#5593)

This commit is contained in:
Sebastian Malton committed 2022-06-09 16:56:00 -04:00
1 parent fa28c073a1
commit d2f586e714
1 file changed
+8
@@ -10,7 +10,14 @@ import { KubeApi } from "../kube-api";
import { isClusterPageContext } from "../../utils/cluster-id-url-parsing";
export class ClusterApi extends KubeApi<Cluster> {
/**
* @deprecated This field is legacy and never used.
*/
static kind = "Cluster";
/**
* @deprecated This field is legacy and never used.
*/
static namespaced = true;
}
@@ -98,6 +105,7 @@ export interface Cluster {
export class Cluster extends KubeObject {
static kind = "Cluster";
static apiBase = "/apis/cluster.k8s.io/v1alpha1/clusters";
static namespaced = true;
getStatus() {
if (this.metadata.deletionTimestamp) return ClusterStatus.REMOVING;