mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix cluster.k8s.io/v1alpha1/clusters CRD not being marked as Namespaced (#5593)
This commit is contained in:
parent
ef6f4a5bfa
commit
c54d59f205
@ -10,7 +10,14 @@ import type { DerivedKubeApiOptions, IgnoredKubeApiOptions } from "../kube-api";
|
|||||||
import { KubeApi } from "../kube-api";
|
import { KubeApi } from "../kube-api";
|
||||||
|
|
||||||
export class ClusterApi extends KubeApi<Cluster> {
|
export class ClusterApi extends KubeApi<Cluster> {
|
||||||
|
/**
|
||||||
|
* @deprecated This field is legacy and never used.
|
||||||
|
*/
|
||||||
static kind = "Cluster";
|
static kind = "Cluster";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This field is legacy and never used.
|
||||||
|
*/
|
||||||
static namespaced = true;
|
static namespaced = true;
|
||||||
|
|
||||||
constructor(opts: DerivedKubeApiOptions & IgnoredKubeApiOptions = {}) {
|
constructor(opts: DerivedKubeApiOptions & IgnoredKubeApiOptions = {}) {
|
||||||
@ -104,6 +111,7 @@ export interface Cluster {
|
|||||||
export class Cluster extends KubeObject {
|
export class Cluster extends KubeObject {
|
||||||
static kind = "Cluster";
|
static kind = "Cluster";
|
||||||
static apiBase = "/apis/cluster.k8s.io/v1alpha1/clusters";
|
static apiBase = "/apis/cluster.k8s.io/v1alpha1/clusters";
|
||||||
|
static namespaced = true;
|
||||||
|
|
||||||
getStatus() {
|
getStatus() {
|
||||||
if (this.metadata.deletionTimestamp) return ClusterStatus.REMOVING;
|
if (this.metadata.deletionTimestamp) return ClusterStatus.REMOVING;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user