@k8slens/extensions 5.3.1-git.80eeffc229.0 → 5.3.1-git.851ad0e36b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/k8s-api/kube-api.d.ts +6 -3
- package/dist/src/extensions/extension-api.js +5 -5
- package/dist/src/renderer/components/avatar/__tests__/avatar.test.d.ts +21 -0
- package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
- package/dist/src/renderer/components/avatar/index.d.ts +21 -0
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
- package/package.json +1 -1
|
@@ -81,6 +81,9 @@ export declare type PropagationPolicy = undefined | "Orphan" | "Foreground" | "B
|
|
|
81
81
|
*/
|
|
82
82
|
export interface IKubeApiCluster extends ILocalKubeApiConfig {
|
|
83
83
|
}
|
|
84
|
+
export declare type PartialKubeObject<T extends KubeObject> = Partial<Omit<T, "metadata">> & {
|
|
85
|
+
metadata?: Partial<T["metadata"]>;
|
|
86
|
+
};
|
|
84
87
|
export interface IRemoteKubeApiConfig {
|
|
85
88
|
cluster: {
|
|
86
89
|
server: string;
|
|
@@ -161,9 +164,9 @@ export declare class KubeApi<T extends KubeObject> {
|
|
|
161
164
|
protected parseResponse(data: unknown, namespace?: string): T | T[] | null;
|
|
162
165
|
list({ namespace, reqInit }?: KubeApiListOptions, query?: IKubeApiQueryParams): Promise<T[] | null>;
|
|
163
166
|
get(desc: ResourceDescriptor, query?: IKubeApiQueryParams): Promise<T | null>;
|
|
164
|
-
create({ name, namespace }: Partial<ResourceDescriptor>, data?:
|
|
165
|
-
update({ name, namespace }: ResourceDescriptor, data:
|
|
166
|
-
patch(desc: ResourceDescriptor, data?:
|
|
167
|
+
create({ name, namespace }: Partial<ResourceDescriptor>, data?: PartialKubeObject<T>): Promise<T | null>;
|
|
168
|
+
update({ name, namespace }: ResourceDescriptor, data: PartialKubeObject<T>): Promise<T | null>;
|
|
169
|
+
patch(desc: ResourceDescriptor, data?: PartialKubeObject<T> | Patch, strategy?: KubeApiPatchType): Promise<T>;
|
|
167
170
|
delete({ propagationPolicy, ...desc }: DeleteResourceDescriptor): Promise<KubeJsonApiData>;
|
|
168
171
|
getWatchUrl(namespace?: string, query?: IKubeApiQueryParams): string;
|
|
169
172
|
watch(opts?: KubeApiWatchOptions): () => void;
|