@daocloud-proto/kpanda 0.11.3-105 → 0.11.3-107
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.
|
@@ -31,6 +31,8 @@ export type NamespaceSpec = {
|
|
|
31
31
|
|
|
32
32
|
export type NamespaceStatus = {
|
|
33
33
|
phase?: NamespacePhase
|
|
34
|
+
readyPodNumber?: number
|
|
35
|
+
totalPodNumber?: number
|
|
34
36
|
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -100,6 +102,11 @@ export type GetNamespaceJSONRequest = {
|
|
|
100
102
|
name?: string
|
|
101
103
|
}
|
|
102
104
|
|
|
105
|
+
export type GetNamespaceRequest = {
|
|
106
|
+
cluster?: string
|
|
107
|
+
name?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
103
110
|
export type GetNamespaceJSONResponse = {
|
|
104
111
|
data?: string
|
|
105
112
|
}
|
|
@@ -383,6 +383,9 @@ export class Core {
|
|
|
383
383
|
static GetNamespaceJSON(req: KpandaIoApiCoreV1alpha1Namespace.GetNamespaceJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Namespace.GetNamespaceJSONResponse> {
|
|
384
384
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Namespace.GetNamespaceJSONRequest, KpandaIoApiCoreV1alpha1Namespace.GetNamespaceJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
385
385
|
}
|
|
386
|
+
static GetNamespace(req: KpandaIoApiCoreV1alpha1Namespace.GetNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Namespace.Namespace> {
|
|
387
|
+
return fm.fetchReq<KpandaIoApiCoreV1alpha1Namespace.GetNamespaceRequest, KpandaIoApiCoreV1alpha1Namespace.Namespace>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
388
|
+
}
|
|
386
389
|
static DeleteNamespace(req: KpandaIoApiCoreV1alpha1Namespace.DeleteNamespaceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
387
390
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Namespace.DeleteNamespaceRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
388
391
|
}
|