Skip to content

Commit

Permalink
Merge pull request #1221 from bencooper222/benc/specced-kubernetes-ob…
Browse files Browse the repository at this point in the history
…ject

Add a new object that extends KubernetesObject to generically handle all objects that have a `spec` property
  • Loading branch information
k8s-ci-robot committed Aug 30, 2023
2 parents 6a8337f + c0c24dc commit 66d3c15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export interface KubernetesObject {
metadata?: V1ObjectMeta;
}

export interface KubernetesObjectWithSpec extends KubernetesObject {
spec: object;
}

export interface KubernetesListObject<T extends KubernetesObject> {
apiVersion?: string;
kind?: string;
Expand Down

0 comments on commit 66d3c15

Please sign in to comment.