Skip to content

Commit

Permalink
Updated resource node metadata signature (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
itowlson authored Apr 19, 2020
1 parent f51989b commit 466614f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ts/cluster-explorer/v1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export namespace ClusterExplorerV1_1 {
/**
* The namespace containing the resource.
*/
readonly namespace: string | null;
readonly namespace: string;
/**
* The kind of the resource, such as pod or service.
*/
Expand All @@ -148,7 +148,7 @@ export namespace ClusterExplorerV1_1 {
/**
* The metadata of the resource.
*/
readonly metadata?: any;
readonly metadata?: object;
}

/**
Expand Down Expand Up @@ -318,7 +318,9 @@ export namespace ClusterExplorerV1_1 {
* or 'rs'. For example, 'kubectl get deployment', 'kubectl delete rs/foo'.
*/
readonly abbreviation: string;

/**
* The string representing the resource kind in Kubernetes API URIs.
*/
readonly apiName?: string;
}

Expand Down Expand Up @@ -361,7 +363,7 @@ export namespace ClusterExplorerV1_1 {
* @param pluralDisplayName The plural display name of the resource type - used as the folder display name. Example: Stateful Sets.
* @param manifestKind The string used to identify the resource type in Kubernetes manifests. Example: StatefulSet.
* @param abbreviation The string used to identify the resource type on the kubectl command line. Example: sts.
* @param apiName The string used to identify the API URI in Kubernetes. Example: statefulsets.
* @param apiName The string used to identify the resource type in Kubernetes API URIs. Example: statefulsets.
* @returns A NodeSet which provides the requested folder node.
*/
resourceFolder(displayName: string, pluralDisplayName: string, manifestKind: string, abbreviation: string, apiName?: string): NodeSource;
Expand Down

0 comments on commit 466614f

Please sign in to comment.