diff --git a/frontend/src/lib/k8s/KubeObject.ts b/frontend/src/lib/k8s/KubeObject.ts index 383870b6cb..9b84b509af 100644 --- a/frontend/src/lib/k8s/KubeObject.ts +++ b/frontend/src/lib/k8s/KubeObject.ts @@ -74,7 +74,10 @@ export class KubeObject { } constructor(json: T, cluster?: string) { - this.jsonData = json; + this.jsonData = { + ...json, + apiVersion: json?.apiVersion ?? (this.constructor as typeof KubeObject).apiVersion, + }; this._clusterName = cluster || getCluster() || ''; }