Skip to content

Commit 2fc86b3

Browse files
authored
Merge pull request #1170 from j-windsor/addObject
Add KubernetesObjectApi for v1
2 parents d38c072 + 2c3f9ec commit 2fc86b3

File tree

5 files changed

+2816
-7
lines changed

5 files changed

+2816
-7
lines changed

examples/typescript/apply/apply-example.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export async function apply(specPath: string): Promise<k8s.KubernetesObject[]> {
3333
await client.read(spec);
3434
// we got the resource, so it exists, so patch it
3535
const response = await client.patch(spec);
36-
created.push(response.body);
36+
created.push(response);
3737
} catch (e) {
3838
// we did not get the resource, so it does not exist, so create it
3939
const response = await client.create(spec);
40-
created.push(response.body);
40+
created.push(response);
4141
}
4242
}
4343
return created;

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export * from './top';
1313
export * from './cp';
1414
export * from './patch';
1515
export * from './metrics';
16+
export * from './object';
1617
export { ConfigOptions, User, Cluster, Context } from './config_types';

0 commit comments

Comments
 (0)