@daocloud-proto/kpanda 0.21.0-dev-e36e40ab → 0.21.0-dev-19470018
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.
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
8
|
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
9
|
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
10
19
|
export enum RepoPhase {
|
|
11
20
|
REPOSITORY_PHASE_UNSPECIFIED = "REPOSITORY_PHASE_UNSPECIFIED",
|
|
12
21
|
UNKNOWN = "UNKNOWN",
|
|
@@ -33,6 +42,7 @@ export type RepoSpecSecretReference = {
|
|
|
33
42
|
export type RepoSpec = {
|
|
34
43
|
url?: string
|
|
35
44
|
clientSecret?: RepoSpecSecretReference
|
|
45
|
+
insecureSkipTLSVerify?: boolean
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
export type RepoStatus = {
|
|
@@ -44,6 +54,23 @@ export type RepoStatus = {
|
|
|
44
54
|
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
45
55
|
}
|
|
46
56
|
|
|
57
|
+
export type ValidateHelmRepoRequest = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
name?: string
|
|
60
|
+
url?: string
|
|
61
|
+
verificationMethod?: VerificationMethod
|
|
62
|
+
userName?: string
|
|
63
|
+
password?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
type BaseValidateHelmRepoResponse = {
|
|
68
|
+
success?: boolean
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type ValidateHelmRepoResponse = BaseValidateHelmRepoResponse
|
|
72
|
+
& OneOf<{ error: string }>
|
|
73
|
+
|
|
47
74
|
export type CreateHelmRepoRequest = {
|
|
48
75
|
cluster?: string
|
|
49
76
|
name?: string
|
|
@@ -55,6 +82,7 @@ export type CreateHelmRepoRequest = {
|
|
|
55
82
|
token?: string
|
|
56
83
|
labels?: {[key: string]: string}
|
|
57
84
|
annotations?: {[key: string]: string}
|
|
85
|
+
insecureSkipTLSVerify?: boolean
|
|
58
86
|
}
|
|
59
87
|
|
|
60
88
|
export type ListHelmReposRequest = {
|
|
@@ -100,6 +128,7 @@ export type UpdateHelmRepoRequest = {
|
|
|
100
128
|
token?: string
|
|
101
129
|
labels?: {[key: string]: string}
|
|
102
130
|
annotations?: {[key: string]: string}
|
|
131
|
+
insecureSkipTLSVerify?: boolean
|
|
103
132
|
}
|
|
104
133
|
|
|
105
134
|
export type RefreshHelmRepoRequest = {
|
|
@@ -921,6 +921,9 @@ export class Clusterlcm {
|
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
export class Addon {
|
|
924
|
+
static ValidateHelmRepo(req: KpandaIoApiAddonV1alpha1Helmrepo.ValidateHelmRepoRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrepo.ValidateHelmRepoResponse> {
|
|
925
|
+
return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrepo.ValidateHelmRepoRequest, KpandaIoApiAddonV1alpha1Helmrepo.ValidateHelmRepoResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/helmrepos/${req["name"]}/validate`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
926
|
+
}
|
|
924
927
|
static CreateHelmRepo(req: KpandaIoApiAddonV1alpha1Helmrepo.CreateHelmRepoRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAddonV1alpha1Helmrepo.HelmRepo> {
|
|
925
928
|
return fm.fetchReq<KpandaIoApiAddonV1alpha1Helmrepo.CreateHelmRepoRequest, KpandaIoApiAddonV1alpha1Helmrepo.HelmRepo>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/helmrepos`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
926
929
|
}
|