File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,6 @@ import { PatchStrategy } from './patch.js';
19
19
/** Kubernetes API verbs. */
20
20
type KubernetesApiAction = 'create' | 'delete' | 'patch' | 'read' | 'list' | 'replace' ;
21
21
22
- type KubernetesObjectHeader < T extends KubernetesObject | KubernetesObject > = Pick <
23
- T ,
24
- 'apiVersion' | 'kind'
25
- > & {
26
- metadata : {
27
- name : string ;
28
- namespace ?: string ;
29
- } ;
30
- } ;
31
-
32
22
interface GroupVersion {
33
23
group : string ;
34
24
version : string ;
@@ -288,7 +278,7 @@ export class KubernetesObjectApi {
288
278
* @return Promise containing the request response and [[KubernetesObject]].
289
279
*/
290
280
public async read < T extends KubernetesObject | KubernetesObject > (
291
- spec : KubernetesObjectHeader < T > ,
281
+ spec : T ,
292
282
pretty ?: string ,
293
283
exact ?: boolean ,
294
284
exportt ?: boolean ,
You can’t perform that action at this time.
0 commit comments