@rancher/shell 0.3.17 → 0.3.18
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.
- package/assets/translations/en-us.yaml +8 -4
- package/assets/translations/zh-hans.yaml +64 -8
- package/components/AsyncButton.vue +1 -1
- package/components/Inactivity.vue +10 -0
- package/components/LazyImage.vue +2 -2
- package/components/PromptRestore.vue +7 -5
- package/components/ResourceDetail/Masthead.vue +1 -1
- package/components/ResourceDetail/index.vue +4 -2
- package/components/__tests__/PromptRestore.test.ts +72 -0
- package/components/auth/AzureWarning.vue +1 -1
- package/components/fleet/FleetResources.vue +3 -64
- package/components/form/FileImageSelector.vue +9 -0
- package/components/form/FileSelector.vue +2 -1
- package/components/form/MatchExpressions.vue +1 -3
- package/components/form/__tests__/FileImageSelector.test.ts +42 -0
- package/components/form/__tests__/FileSelector.test.ts +76 -0
- package/components/formatter/ClusterProvider.vue +3 -1
- package/components/formatter/__tests__/ClusterProvider.test.ts +24 -0
- package/components/nav/WindowManager/ContainerShell.vue +60 -36
- package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +561 -0
- package/config/labels-annotations.js +2 -1
- package/config/persistentVolume.ts +108 -0
- package/config/product/manager.js +5 -1
- package/config/types.js +2 -0
- package/core/plugin-helpers.js +19 -3
- package/core/types.ts +4 -0
- package/detail/fleet.cattle.io.gitrepo.vue +10 -2
- package/detail/pod.vue +36 -3
- package/detail/workload/index.vue +40 -9
- package/edit/__tests__/ui.cattle.io.navlink.test.ts +110 -0
- package/edit/fleet.cattle.io.clustergroup.vue +14 -3
- package/edit/persistentvolume/__tests__/persistentvolume.test.ts +82 -0
- package/edit/persistentvolume/index.vue +2 -1
- package/edit/persistentvolume/plugins/csi.vue +3 -1
- package/edit/persistentvolume/plugins/longhorn.vue +12 -12
- package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +15 -11
- package/edit/provisioning.cattle.io.cluster/index.vue +1 -1
- package/edit/provisioning.cattle.io.cluster/rke2.vue +5 -1
- package/edit/storage.k8s.io.storageclass/index.vue +1 -2
- package/edit/ui.cattle.io.navlink.vue +213 -187
- package/layouts/default.vue +1 -1
- package/list/group.principal.vue +1 -1
- package/middleware/authenticated.js +12 -4
- package/mixins/create-edit-view/impl.js +2 -2
- package/models/chart.js +1 -1
- package/models/fleet.cattle.io.cluster.js +33 -4
- package/models/fleet.cattle.io.gitrepo.js +112 -38
- package/models/management.cattle.io.kontainerdriver.js +14 -0
- package/models/persistentvolume.js +2 -111
- package/models/pod.js +30 -0
- package/models/rke.cattle.io.etcdsnapshot.js +10 -7
- package/package.json +1 -1
- package/pages/c/_cluster/auth/group.principal/assign-edit.vue +1 -1
- package/pages/c/_cluster/auth/roles/index.vue +1 -1
- package/pages/c/_cluster/explorer/index.vue +1 -1
- package/pages/c/_cluster/manager/cloudCredential/_id.vue +0 -1
- package/pages/c/_cluster/manager/cloudCredential/create.vue +0 -1
- package/pages/c/_cluster/settings/brand.vue +11 -8
- package/pages/c/_cluster/uiplugins/index.vue +9 -4
- package/pages/home.vue +1 -1
- package/plugins/dashboard-store/__tests__/actions.spec.ts +165 -0
- package/plugins/dashboard-store/__tests__/getters.spec.ts +100 -0
- package/plugins/dashboard-store/__tests__/{mutations.spec.js → mutations.spec.ts} +2 -2
- package/plugins/dashboard-store/actions.js +1 -1
- package/plugins/dashboard-store/resource-class.js +4 -0
- package/plugins/steve/__tests__/getters.spec.ts +93 -0
- package/plugins/steve/getters.js +21 -1
- package/plugins/steve/subscribe.js +1 -3
- package/rancher-components/components/BadgeState/BadgeState.spec.ts +12 -0
- package/rancher-components/components/BadgeState/BadgeState.vue +111 -0
- package/rancher-components/components/BadgeState/index.ts +1 -0
- package/rancher-components/components/Banner/Banner.test.ts +63 -0
- package/rancher-components/components/Banner/Banner.vue +244 -0
- package/rancher-components/components/Banner/index.ts +1 -0
- package/rancher-components/components/Card/Card.test.ts +37 -0
- package/rancher-components/components/Card/Card.vue +167 -0
- package/rancher-components/components/Card/index.ts +1 -0
- package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +68 -0
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +420 -0
- package/rancher-components/components/Form/Checkbox/index.ts +1 -0
- package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +23 -0
- package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +355 -0
- package/rancher-components/components/Form/LabeledInput/index.ts +1 -0
- package/rancher-components/components/Form/Radio/RadioButton.test.ts +31 -0
- package/rancher-components/components/Form/Radio/RadioButton.vue +287 -0
- package/rancher-components/components/Form/Radio/RadioGroup.vue +254 -0
- package/rancher-components/components/Form/Radio/index.ts +2 -0
- package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +170 -0
- package/rancher-components/components/Form/TextArea/index.ts +1 -0
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +94 -0
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +149 -0
- package/rancher-components/components/Form/ToggleSwitch/index.ts +1 -0
- package/rancher-components/components/Form/index.ts +5 -0
- package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +151 -0
- package/rancher-components/components/LabeledTooltip/index.ts +1 -0
- package/rancher-components/components/StringList/StringList.test.ts +484 -0
- package/rancher-components/components/StringList/StringList.vue +611 -0
- package/rancher-components/components/StringList/index.ts +1 -0
- package/scripts/typegen.sh +10 -2
- package/store/index.js +1 -3
- package/store/store-types.js +2 -0
- package/types/api.d.ts +1 -0
- package/types/fleet.d.ts +1 -0
- package/types/shell/index.d.ts +695 -2
- package/types/userPreferences.d.ts +1 -1
- package/utils/__mocks__/socket.js +21 -0
- package/utils/grafana.js +23 -11
- package/utils/selector.js +2 -1
- package/utils/validators/formRules/index.ts +3 -3
- package/plugins/steve/urloptions.js +0 -47
package/types/shell/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export namespace FLEET {
|
|
|
124
124
|
export const BUNDLE_ID: string;
|
|
125
125
|
const MANAGED_1: string;
|
|
126
126
|
export { MANAGED_1 as MANAGED };
|
|
127
|
+
export const CLUSTER: string;
|
|
127
128
|
}
|
|
128
129
|
export namespace RBAC {
|
|
129
130
|
const PRODUCT: string;
|
|
@@ -1849,6 +1850,7 @@ export namespace LONGHORN {
|
|
|
1849
1850
|
const SETTINGS: string;
|
|
1850
1851
|
const VOLUMES: string;
|
|
1851
1852
|
}
|
|
1853
|
+
export const LONGHORN_DRIVER: "driver.longhorn.io";
|
|
1852
1854
|
export const SNAPSHOT: "rke.cattle.io.etcdsnapshot";
|
|
1853
1855
|
export namespace MANAGEMENT {
|
|
1854
1856
|
const AUTH_CONFIG_1: string;
|
|
@@ -2093,6 +2095,312 @@ export default _default;
|
|
|
2093
2095
|
import Vue from "vue";
|
|
2094
2096
|
}
|
|
2095
2097
|
|
|
2098
|
+
// @shell/models/namespace
|
|
2099
|
+
|
|
2100
|
+
declare module '@shell/models/namespace' {
|
|
2101
|
+
export default class Namespace {
|
|
2102
|
+
applyDefaults(): void;
|
|
2103
|
+
get _availableActions(): any;
|
|
2104
|
+
move(resources?: Namespace): void;
|
|
2105
|
+
get isSystem(): any;
|
|
2106
|
+
get isFleetManaged(): boolean;
|
|
2107
|
+
get isObscure(): any;
|
|
2108
|
+
get projectId(): any;
|
|
2109
|
+
get project(): any;
|
|
2110
|
+
get groupByLabel(): any;
|
|
2111
|
+
get projectNameSort(): any;
|
|
2112
|
+
get istioInstalled(): boolean;
|
|
2113
|
+
get injectionEnabled(): boolean;
|
|
2114
|
+
enableAutoInjection(namespaces?: Namespace, enable?: boolean): void;
|
|
2115
|
+
disableAutoInjection(namespaces?: Namespace): void;
|
|
2116
|
+
get confirmRemove(): boolean;
|
|
2117
|
+
get listLocation(): {
|
|
2118
|
+
name: string;
|
|
2119
|
+
};
|
|
2120
|
+
get _detailLocation(): any;
|
|
2121
|
+
get parentLocationOverride(): {
|
|
2122
|
+
name: string;
|
|
2123
|
+
};
|
|
2124
|
+
get doneOverride(): {
|
|
2125
|
+
name: string;
|
|
2126
|
+
};
|
|
2127
|
+
set resourceQuota(arg: any);
|
|
2128
|
+
get resourceQuota(): any;
|
|
2129
|
+
get detailTopTooltips(): any;
|
|
2130
|
+
get detailTopIcons(): any;
|
|
2131
|
+
/**
|
|
2132
|
+
* Check if resource contains PSA labels
|
|
2133
|
+
*/
|
|
2134
|
+
get hasSystemLabels(): any;
|
|
2135
|
+
get filteredSystemLabels(): {};
|
|
2136
|
+
/**
|
|
2137
|
+
* Generate list of present keys which can be filtered based on existing label keys and system keys
|
|
2138
|
+
*/
|
|
2139
|
+
get systemLabels(): any;
|
|
2140
|
+
get psaTooltipsDescription(): any;
|
|
2141
|
+
cleanForNew(): void;
|
|
2142
|
+
metadata: any;
|
|
2143
|
+
get hideDetailLocation(): boolean;
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
// @shell/models/networking.k8s.io.ingress
|
|
2148
|
+
|
|
2149
|
+
declare module '@shell/models/networking.k8s.io.ingress' {
|
|
2150
|
+
export function ingressFullPath(resource: any, rule: any, path?: {}): string;
|
|
2151
|
+
export default class Ingress {
|
|
2152
|
+
get tlsHosts(): any;
|
|
2153
|
+
get isTlsHost(): (host: any) => any;
|
|
2154
|
+
targetTo(workloads: any, serviceName: any): any;
|
|
2155
|
+
createRulesForListPage(workloads: any, certificates: any): any;
|
|
2156
|
+
createPathForListPage(workloads: any, rule: any, path: any, certificates: any): {
|
|
2157
|
+
isUrl: boolean;
|
|
2158
|
+
pathType: any;
|
|
2159
|
+
fullPath: string;
|
|
2160
|
+
serviceName: any;
|
|
2161
|
+
serviceTargetTo: any;
|
|
2162
|
+
certs: any;
|
|
2163
|
+
targetLink: {
|
|
2164
|
+
to: any;
|
|
2165
|
+
text: any;
|
|
2166
|
+
options: {
|
|
2167
|
+
internal: boolean;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
port: any;
|
|
2171
|
+
};
|
|
2172
|
+
fullPath(rule: any, path: any): string;
|
|
2173
|
+
certLink(cert: any, certificates?: any[]): {
|
|
2174
|
+
to: {
|
|
2175
|
+
name: string;
|
|
2176
|
+
params: {
|
|
2177
|
+
resource: any;
|
|
2178
|
+
id: any;
|
|
2179
|
+
};
|
|
2180
|
+
};
|
|
2181
|
+
text: any;
|
|
2182
|
+
options: {
|
|
2183
|
+
internal: boolean;
|
|
2184
|
+
};
|
|
2185
|
+
};
|
|
2186
|
+
certLinks(rule: any, certificates: any): any;
|
|
2187
|
+
targetLink(workloads: any, serviceName: any): {
|
|
2188
|
+
to: any;
|
|
2189
|
+
text: any;
|
|
2190
|
+
options: {
|
|
2191
|
+
internal: boolean;
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
createDefaultService(workloads: any): {
|
|
2195
|
+
name: any;
|
|
2196
|
+
targetTo: any;
|
|
2197
|
+
};
|
|
2198
|
+
get cache(): {};
|
|
2199
|
+
cacheObject: {};
|
|
2200
|
+
get showPathType(): any;
|
|
2201
|
+
get useNestedBackendField(): any;
|
|
2202
|
+
get serviceNamePath(): "service.name" | "serviceName";
|
|
2203
|
+
get servicePortPath(): "service.port.number" | "servicePort";
|
|
2204
|
+
get defaultBackendPath(): "defaultBackend" | "backend";
|
|
2205
|
+
get hasDefaultBackend(): boolean;
|
|
2206
|
+
get details(): any;
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
// @shell/plugins/dashboard-store/actions
|
|
2211
|
+
|
|
2212
|
+
declare module '@shell/plugins/dashboard-store/actions' {
|
|
2213
|
+
export function handleSpoofedRequest(rootGetters: any, schemaStore: any, opt: any, product: any): Promise<any>;
|
|
2214
|
+
export function loadSchemas(ctx: any, watch?: boolean): Promise<any>;
|
|
2215
|
+
export const _ALL: "all";
|
|
2216
|
+
export const _MERGE: "merge";
|
|
2217
|
+
export const _MULTI: "multi";
|
|
2218
|
+
export const _ALL_IF_AUTHED: "allIfAuthed";
|
|
2219
|
+
export const _NONE: "none";
|
|
2220
|
+
declare namespace _default {
|
|
2221
|
+
export function request(): never;
|
|
2222
|
+
export function request(): never;
|
|
2223
|
+
export { loadSchemas };
|
|
2224
|
+
export function loadDataPage(ctx: any, { type, opt }: {
|
|
2225
|
+
type: any;
|
|
2226
|
+
opt: any;
|
|
2227
|
+
}): Promise<never>;
|
|
2228
|
+
export function loadDataPage(ctx: any, { type, opt }: {
|
|
2229
|
+
type: any;
|
|
2230
|
+
opt: any;
|
|
2231
|
+
}): Promise<never>;
|
|
2232
|
+
export function findAll(ctx: any, { type, opt }: {
|
|
2233
|
+
type: any;
|
|
2234
|
+
opt: any;
|
|
2235
|
+
}): Promise<any>;
|
|
2236
|
+
export function findAll(ctx: any, { type, opt }: {
|
|
2237
|
+
type: any;
|
|
2238
|
+
opt: any;
|
|
2239
|
+
}): Promise<any>;
|
|
2240
|
+
export function findMatching(ctx: any, { type, selector, opt, namespace }: {
|
|
2241
|
+
type: any;
|
|
2242
|
+
selector: any;
|
|
2243
|
+
opt: any;
|
|
2244
|
+
namespace: any;
|
|
2245
|
+
}): Promise<any>;
|
|
2246
|
+
export function findMatching(ctx: any, { type, selector, opt, namespace }: {
|
|
2247
|
+
type: any;
|
|
2248
|
+
selector: any;
|
|
2249
|
+
opt: any;
|
|
2250
|
+
namespace: any;
|
|
2251
|
+
}): Promise<any>;
|
|
2252
|
+
export function find(ctx: any, { type, id, opt }: {
|
|
2253
|
+
type: any;
|
|
2254
|
+
id: any;
|
|
2255
|
+
opt: any;
|
|
2256
|
+
}): Promise<any>;
|
|
2257
|
+
export function find(ctx: any, { type, id, opt }: {
|
|
2258
|
+
type: any;
|
|
2259
|
+
id: any;
|
|
2260
|
+
opt: any;
|
|
2261
|
+
}): Promise<any>;
|
|
2262
|
+
export function load(ctx: any, { data, existing }: {
|
|
2263
|
+
data: any;
|
|
2264
|
+
existing: any;
|
|
2265
|
+
}): any;
|
|
2266
|
+
export function load(ctx: any, { data, existing }: {
|
|
2267
|
+
data: any;
|
|
2268
|
+
existing: any;
|
|
2269
|
+
}): any;
|
|
2270
|
+
export function loadMulti(ctx: any, data: any): void;
|
|
2271
|
+
export function loadMulti(ctx: any, data: any): void;
|
|
2272
|
+
export function batchChanges(ctx: any, batch: any): void;
|
|
2273
|
+
export function batchChanges(ctx: any, batch: any): void;
|
|
2274
|
+
export function loadAll(ctx: any, { type, data }: {
|
|
2275
|
+
type: any;
|
|
2276
|
+
data: any;
|
|
2277
|
+
}): void;
|
|
2278
|
+
export function loadAll(ctx: any, { type, data }: {
|
|
2279
|
+
type: any;
|
|
2280
|
+
data: any;
|
|
2281
|
+
}): void;
|
|
2282
|
+
export function create(ctx: any, data: any): any;
|
|
2283
|
+
export function create(ctx: any, data: any): any;
|
|
2284
|
+
export function createMany(ctx: any, data: any): any;
|
|
2285
|
+
export function createMany(ctx: any, data: any): any;
|
|
2286
|
+
export function createPopulated(ctx: any, userData: any): any;
|
|
2287
|
+
export function createPopulated(ctx: any, userData: any): any;
|
|
2288
|
+
export function clone(ctx: any, { resource }?: {
|
|
2289
|
+
resource: any;
|
|
2290
|
+
}): any;
|
|
2291
|
+
export function clone(ctx: any, { resource }?: {
|
|
2292
|
+
resource: any;
|
|
2293
|
+
}): any;
|
|
2294
|
+
export function forgetType({ commit, dispatch, state }: {
|
|
2295
|
+
commit: any;
|
|
2296
|
+
dispatch: any;
|
|
2297
|
+
state: any;
|
|
2298
|
+
}, type: any): void;
|
|
2299
|
+
export function forgetType({ commit, dispatch, state }: {
|
|
2300
|
+
commit: any;
|
|
2301
|
+
dispatch: any;
|
|
2302
|
+
state: any;
|
|
2303
|
+
}, type: any): void;
|
|
2304
|
+
export function promptRemove({ commit, state }: {
|
|
2305
|
+
commit: any;
|
|
2306
|
+
state: any;
|
|
2307
|
+
}, resources: any): void;
|
|
2308
|
+
export function promptRemove({ commit, state }: {
|
|
2309
|
+
commit: any;
|
|
2310
|
+
state: any;
|
|
2311
|
+
}, resources: any): void;
|
|
2312
|
+
export function promptModal({ commit, state }: {
|
|
2313
|
+
commit: any;
|
|
2314
|
+
state: any;
|
|
2315
|
+
}, data: any): void;
|
|
2316
|
+
export function promptModal({ commit, state }: {
|
|
2317
|
+
commit: any;
|
|
2318
|
+
state: any;
|
|
2319
|
+
}, data: any): void;
|
|
2320
|
+
export function resourceAction({ getters, dispatch }: {
|
|
2321
|
+
getters: any;
|
|
2322
|
+
dispatch: any;
|
|
2323
|
+
}, { resource, actionName, body, opt, }: {
|
|
2324
|
+
resource: any;
|
|
2325
|
+
actionName: any;
|
|
2326
|
+
body: any;
|
|
2327
|
+
opt: any;
|
|
2328
|
+
}): never;
|
|
2329
|
+
export function resourceAction({ getters, dispatch }: {
|
|
2330
|
+
getters: any;
|
|
2331
|
+
dispatch: any;
|
|
2332
|
+
}, { resource, actionName, body, opt, }: {
|
|
2333
|
+
resource: any;
|
|
2334
|
+
actionName: any;
|
|
2335
|
+
body: any;
|
|
2336
|
+
opt: any;
|
|
2337
|
+
}): never;
|
|
2338
|
+
export function collectionAction({ getters, dispatch }: {
|
|
2339
|
+
getters: any;
|
|
2340
|
+
dispatch: any;
|
|
2341
|
+
}, { type, actionName, body, opt }: {
|
|
2342
|
+
type: any;
|
|
2343
|
+
actionName: any;
|
|
2344
|
+
body: any;
|
|
2345
|
+
opt: any;
|
|
2346
|
+
}): never;
|
|
2347
|
+
export function collectionAction({ getters, dispatch }: {
|
|
2348
|
+
getters: any;
|
|
2349
|
+
dispatch: any;
|
|
2350
|
+
}, { type, actionName, body, opt }: {
|
|
2351
|
+
type: any;
|
|
2352
|
+
actionName: any;
|
|
2353
|
+
body: any;
|
|
2354
|
+
opt: any;
|
|
2355
|
+
}): never;
|
|
2356
|
+
export function cleanForNew(ctx: any, resource: any): never;
|
|
2357
|
+
export function cleanForNew(ctx: any, resource: any): never;
|
|
2358
|
+
export function createNamespace(ctx: any, resource: any): never;
|
|
2359
|
+
export function createNamespace(ctx: any, resource: any): never;
|
|
2360
|
+
export function cleanForDiff(ctx: any, resource: any): never;
|
|
2361
|
+
export function cleanForDiff(ctx: any, resource: any): never;
|
|
2362
|
+
export function cleanForDetail(ctx: any, resource: any): any;
|
|
2363
|
+
export function cleanForDetail(ctx: any, resource: any): any;
|
|
2364
|
+
export function cleanForDownload(ctx: any, resource: any): any;
|
|
2365
|
+
export function cleanForDownload(ctx: any, resource: any): any;
|
|
2366
|
+
export function waitForSchema({ getters, dispatch }: {
|
|
2367
|
+
getters: any;
|
|
2368
|
+
dispatch: any;
|
|
2369
|
+
}, { type }: {
|
|
2370
|
+
type: any;
|
|
2371
|
+
}): Promise<void>;
|
|
2372
|
+
export function waitForSchema({ getters, dispatch }: {
|
|
2373
|
+
getters: any;
|
|
2374
|
+
dispatch: any;
|
|
2375
|
+
}, { type }: {
|
|
2376
|
+
type: any;
|
|
2377
|
+
}): Promise<void>;
|
|
2378
|
+
export function incrementLoadCounter({ commit }: {
|
|
2379
|
+
commit: any;
|
|
2380
|
+
}, resource: any): void;
|
|
2381
|
+
export function incrementLoadCounter({ commit }: {
|
|
2382
|
+
commit: any;
|
|
2383
|
+
}, resource: any): void;
|
|
2384
|
+
export function garbageCollect(ctx: any, ignoreTypes: any): any;
|
|
2385
|
+
export function garbageCollect(ctx: any, ignoreTypes: any): any;
|
|
2386
|
+
export function gcResetStore({ state }: {
|
|
2387
|
+
state: any;
|
|
2388
|
+
}): void;
|
|
2389
|
+
export function gcResetStore({ state }: {
|
|
2390
|
+
state: any;
|
|
2391
|
+
}): void;
|
|
2392
|
+
}
|
|
2393
|
+
export default _default;
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
// @shell/plugins/dashboard-store/classify
|
|
2397
|
+
|
|
2398
|
+
declare module '@shell/plugins/dashboard-store/classify' {
|
|
2399
|
+
export function classify(ctx: any, obj: any, isClone?: boolean): any;
|
|
2400
|
+
export const BY_TYPE: "byType";
|
|
2401
|
+
export const SELF: "__[[SELF]]__";
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2096
2404
|
// @shell/plugins/dashboard-store/normalize
|
|
2097
2405
|
|
|
2098
2406
|
declare module '@shell/plugins/dashboard-store/normalize' {
|
|
@@ -2418,6 +2726,7 @@ export default class Resource {
|
|
|
2418
2726
|
cleanForDiff(): void;
|
|
2419
2727
|
yamlForSave(yaml: any): any;
|
|
2420
2728
|
saveYaml(yaml: any): Promise<void>;
|
|
2729
|
+
_saveYaml(yaml: any): Promise<void>;
|
|
2421
2730
|
get modelValidationRules(): {
|
|
2422
2731
|
path: any;
|
|
2423
2732
|
rules: any[];
|
|
@@ -2512,6 +2821,176 @@ export namespace actions {
|
|
|
2512
2821
|
}
|
|
2513
2822
|
}
|
|
2514
2823
|
|
|
2824
|
+
// @shell/store/prefs
|
|
2825
|
+
|
|
2826
|
+
declare module '@shell/store/prefs' {
|
|
2827
|
+
export function create(name: any, def: any, opt?: {}): any;
|
|
2828
|
+
export function mapPref(name: any): {
|
|
2829
|
+
get(): any;
|
|
2830
|
+
set(value: any): void;
|
|
2831
|
+
};
|
|
2832
|
+
export const CLUSTER: any;
|
|
2833
|
+
export const LAST_NAMESPACE: any;
|
|
2834
|
+
export const NAMESPACE_FILTERS: any;
|
|
2835
|
+
export const WORKSPACE: any;
|
|
2836
|
+
export const EXPANDED_GROUPS: any;
|
|
2837
|
+
export const FAVORITE_TYPES: any;
|
|
2838
|
+
export const GROUP_RESOURCES: any;
|
|
2839
|
+
export const DIFF: any;
|
|
2840
|
+
export const THEME: any;
|
|
2841
|
+
export const PREFERS_SCHEME: any;
|
|
2842
|
+
export const LOCALE: any;
|
|
2843
|
+
export const KEYMAP: any;
|
|
2844
|
+
export const ROWS_PER_PAGE: any;
|
|
2845
|
+
export const LOGS_WRAP: any;
|
|
2846
|
+
export const LOGS_TIME: any;
|
|
2847
|
+
export const LOGS_RANGE: any;
|
|
2848
|
+
export const HIDE_REPOS: any;
|
|
2849
|
+
export const HIDE_DESC: any;
|
|
2850
|
+
export const HIDE_SENSITIVE: any;
|
|
2851
|
+
export const SHOW_PRE_RELEASE: any;
|
|
2852
|
+
export const SHOW_CHART_MODE: any;
|
|
2853
|
+
export const DATE_FORMAT: any;
|
|
2854
|
+
export const TIME_FORMAT: any;
|
|
2855
|
+
export const TIME_ZONE: any;
|
|
2856
|
+
export const DEV: any;
|
|
2857
|
+
export const VIEW_IN_API: any;
|
|
2858
|
+
export const ALL_NAMESPACES: any;
|
|
2859
|
+
export const THEME_SHORTCUT: any;
|
|
2860
|
+
export const LAST_VISITED: any;
|
|
2861
|
+
export const SEEN_WHATS_NEW: any;
|
|
2862
|
+
export const READ_WHATS_NEW: any;
|
|
2863
|
+
export const AFTER_LOGIN_ROUTE: any;
|
|
2864
|
+
export const HIDE_HOME_PAGE_CARDS: any;
|
|
2865
|
+
export const PLUGIN_DEVELOPER: any;
|
|
2866
|
+
export const _RKE1: "rke1";
|
|
2867
|
+
export const _RKE2: "rke2";
|
|
2868
|
+
export const PROVISIONER: any;
|
|
2869
|
+
export const PSP_DEPRECATION_BANNER: any;
|
|
2870
|
+
export const MENU_MAX_CLUSTERS: any;
|
|
2871
|
+
export const SCALE_POOL_PROMPT: any;
|
|
2872
|
+
export function state(): {
|
|
2873
|
+
cookiesLoaded: boolean;
|
|
2874
|
+
data: {};
|
|
2875
|
+
definitions: {};
|
|
2876
|
+
};
|
|
2877
|
+
export namespace getters {
|
|
2878
|
+
function get(state: any): (key: any) => any;
|
|
2879
|
+
function defaultValue(state: any): (key: any) => any;
|
|
2880
|
+
function options(state: any): (key: any) => any;
|
|
2881
|
+
function theme(state: any, getters: any, rootState: any, rootGetters: any): any;
|
|
2882
|
+
function afterLoginRoute(state: any, getters: any): any;
|
|
2883
|
+
}
|
|
2884
|
+
export namespace mutations {
|
|
2885
|
+
function load(state: any, { key, value }: {
|
|
2886
|
+
key: any;
|
|
2887
|
+
value: any;
|
|
2888
|
+
}): void;
|
|
2889
|
+
function load(state: any, { key, value }: {
|
|
2890
|
+
key: any;
|
|
2891
|
+
value: any;
|
|
2892
|
+
}): void;
|
|
2893
|
+
function cookiesLoaded(state: any): void;
|
|
2894
|
+
function cookiesLoaded(state: any): void;
|
|
2895
|
+
function reset(state: any): void;
|
|
2896
|
+
function reset(state: any): void;
|
|
2897
|
+
function setDefinition(state: any, { name, definition }: {
|
|
2898
|
+
name: any;
|
|
2899
|
+
definition?: {};
|
|
2900
|
+
}): void;
|
|
2901
|
+
function setDefinition(state: any, { name, definition }: {
|
|
2902
|
+
name: any;
|
|
2903
|
+
definition?: {};
|
|
2904
|
+
}): void;
|
|
2905
|
+
}
|
|
2906
|
+
export namespace actions {
|
|
2907
|
+
function set({ dispatch, commit, rootGetters, state }: {
|
|
2908
|
+
dispatch: any;
|
|
2909
|
+
commit: any;
|
|
2910
|
+
rootGetters: any;
|
|
2911
|
+
state: any;
|
|
2912
|
+
}, opt: any): Promise<{
|
|
2913
|
+
type: any;
|
|
2914
|
+
status: any;
|
|
2915
|
+
}>;
|
|
2916
|
+
function set({ dispatch, commit, rootGetters, state }: {
|
|
2917
|
+
dispatch: any;
|
|
2918
|
+
commit: any;
|
|
2919
|
+
rootGetters: any;
|
|
2920
|
+
state: any;
|
|
2921
|
+
}, opt: any): Promise<{
|
|
2922
|
+
type: any;
|
|
2923
|
+
status: any;
|
|
2924
|
+
}>;
|
|
2925
|
+
function setTheme({ dispatch }: {
|
|
2926
|
+
dispatch: any;
|
|
2927
|
+
}, val: any): Promise<void>;
|
|
2928
|
+
function setTheme({ dispatch }: {
|
|
2929
|
+
dispatch: any;
|
|
2930
|
+
}, val: any): Promise<void>;
|
|
2931
|
+
function loadCookies({ state, commit }: {
|
|
2932
|
+
state: any;
|
|
2933
|
+
commit: any;
|
|
2934
|
+
}): void;
|
|
2935
|
+
function loadCookies({ state, commit }: {
|
|
2936
|
+
state: any;
|
|
2937
|
+
commit: any;
|
|
2938
|
+
}): void;
|
|
2939
|
+
function loadTheme({ state, dispatch }: {
|
|
2940
|
+
state: any;
|
|
2941
|
+
dispatch: any;
|
|
2942
|
+
}): void;
|
|
2943
|
+
function loadTheme({ state, dispatch }: {
|
|
2944
|
+
state: any;
|
|
2945
|
+
dispatch: any;
|
|
2946
|
+
}): void;
|
|
2947
|
+
function loadServer({ state, dispatch, commit, rootState, rootGetters }: {
|
|
2948
|
+
state: any;
|
|
2949
|
+
dispatch: any;
|
|
2950
|
+
commit: any;
|
|
2951
|
+
rootState: any;
|
|
2952
|
+
rootGetters: any;
|
|
2953
|
+
}, ignoreKey: any): Promise<{
|
|
2954
|
+
data: {};
|
|
2955
|
+
}>;
|
|
2956
|
+
function loadServer({ state, dispatch, commit, rootState, rootGetters }: {
|
|
2957
|
+
state: any;
|
|
2958
|
+
dispatch: any;
|
|
2959
|
+
commit: any;
|
|
2960
|
+
rootState: any;
|
|
2961
|
+
rootGetters: any;
|
|
2962
|
+
}, ignoreKey: any): Promise<{
|
|
2963
|
+
data: {};
|
|
2964
|
+
}>;
|
|
2965
|
+
function setLastVisited({ state, dispatch, getters }: {
|
|
2966
|
+
state: any;
|
|
2967
|
+
dispatch: any;
|
|
2968
|
+
getters: any;
|
|
2969
|
+
}, route: any): any;
|
|
2970
|
+
function setLastVisited({ state, dispatch, getters }: {
|
|
2971
|
+
state: any;
|
|
2972
|
+
dispatch: any;
|
|
2973
|
+
getters: any;
|
|
2974
|
+
}, route: any): any;
|
|
2975
|
+
function toggleTheme({ getters, dispatch }: {
|
|
2976
|
+
getters: any;
|
|
2977
|
+
dispatch: any;
|
|
2978
|
+
}): any;
|
|
2979
|
+
function toggleTheme({ getters, dispatch }: {
|
|
2980
|
+
getters: any;
|
|
2981
|
+
dispatch: any;
|
|
2982
|
+
}): any;
|
|
2983
|
+
function setBrandStyle({ rootState, rootGetters }: {
|
|
2984
|
+
rootState: any;
|
|
2985
|
+
rootGetters: any;
|
|
2986
|
+
}, dark?: boolean): void;
|
|
2987
|
+
function setBrandStyle({ rootState, rootGetters }: {
|
|
2988
|
+
rootState: any;
|
|
2989
|
+
rootGetters: any;
|
|
2990
|
+
}, dark?: boolean): void;
|
|
2991
|
+
}
|
|
2992
|
+
}
|
|
2993
|
+
|
|
2515
2994
|
// @shell/utils/alertmanagerconfig
|
|
2516
2995
|
|
|
2517
2996
|
declare module '@shell/utils/alertmanagerconfig' {
|
|
@@ -2673,6 +3152,125 @@ export const NEVER_ADD: string[];
|
|
|
2673
3152
|
export const ACTIVELY_REMOVE: string[];
|
|
2674
3153
|
}
|
|
2675
3154
|
|
|
3155
|
+
// @shell/utils/crypto/browserHashUtils
|
|
3156
|
+
|
|
3157
|
+
declare module '@shell/utils/crypto/browserHashUtils' {
|
|
3158
|
+
export function hashObj(obj: any): string;
|
|
3159
|
+
/**
|
|
3160
|
+
* @api private
|
|
3161
|
+
*/
|
|
3162
|
+
export function isEmptyData(data: any): boolean;
|
|
3163
|
+
/**
|
|
3164
|
+
* @api private
|
|
3165
|
+
*/
|
|
3166
|
+
export function convertToBuffer(data: any): Uint8Array;
|
|
3167
|
+
declare namespace _default {
|
|
3168
|
+
export { isEmptyData };
|
|
3169
|
+
export { convertToBuffer };
|
|
3170
|
+
}
|
|
3171
|
+
export default _default;
|
|
3172
|
+
}
|
|
3173
|
+
|
|
3174
|
+
// @shell/utils/crypto/browserMd5
|
|
3175
|
+
|
|
3176
|
+
declare module '@shell/utils/crypto/browserMd5' {
|
|
3177
|
+
/// <reference types="node" />
|
|
3178
|
+
export default Md5;
|
|
3179
|
+
/**
|
|
3180
|
+
* @api private
|
|
3181
|
+
*/
|
|
3182
|
+
declare function Md5(): void;
|
|
3183
|
+
declare class Md5 {
|
|
3184
|
+
state: number[];
|
|
3185
|
+
buffer: DataView;
|
|
3186
|
+
bufferLength: number;
|
|
3187
|
+
bytesHashed: number;
|
|
3188
|
+
finished: boolean;
|
|
3189
|
+
update(sourceData: any): Md5;
|
|
3190
|
+
digest(encoding: any): string | Buffer;
|
|
3191
|
+
hashBuffer(): void;
|
|
3192
|
+
}
|
|
3193
|
+
declare namespace Md5 {
|
|
3194
|
+
export { BLOCK_SIZE };
|
|
3195
|
+
}
|
|
3196
|
+
import { Buffer } from "buffer";
|
|
3197
|
+
declare const BLOCK_SIZE: 64;
|
|
3198
|
+
}
|
|
3199
|
+
|
|
3200
|
+
// @shell/utils/crypto/browserSha1
|
|
3201
|
+
|
|
3202
|
+
declare module '@shell/utils/crypto/browserSha1' {
|
|
3203
|
+
/// <reference types="node" />
|
|
3204
|
+
export default Sha1;
|
|
3205
|
+
/**
|
|
3206
|
+
* @api private
|
|
3207
|
+
*/
|
|
3208
|
+
declare function Sha1(): void;
|
|
3209
|
+
declare class Sha1 {
|
|
3210
|
+
h0: number;
|
|
3211
|
+
h1: number;
|
|
3212
|
+
h2: number;
|
|
3213
|
+
h3: number;
|
|
3214
|
+
h4: number;
|
|
3215
|
+
block: Uint32Array;
|
|
3216
|
+
offset: number;
|
|
3217
|
+
shift: number;
|
|
3218
|
+
totalLength: number;
|
|
3219
|
+
update(data: any): Sha1;
|
|
3220
|
+
write(byte: any): void;
|
|
3221
|
+
digest(encoding: any): string | Buffer;
|
|
3222
|
+
processBlock(): void;
|
|
3223
|
+
}
|
|
3224
|
+
declare namespace Sha1 {
|
|
3225
|
+
export { BLOCK_SIZE };
|
|
3226
|
+
}
|
|
3227
|
+
import { Buffer } from "buffer";
|
|
3228
|
+
declare const BLOCK_SIZE: 64;
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3231
|
+
// @shell/utils/crypto/browserSha256
|
|
3232
|
+
|
|
3233
|
+
declare module '@shell/utils/crypto/browserSha256' {
|
|
3234
|
+
/// <reference types="node" />
|
|
3235
|
+
export default Sha256;
|
|
3236
|
+
/**
|
|
3237
|
+
* @private
|
|
3238
|
+
*/
|
|
3239
|
+
declare function Sha256(): void;
|
|
3240
|
+
declare class Sha256 {
|
|
3241
|
+
state: number[];
|
|
3242
|
+
temp: Int32Array;
|
|
3243
|
+
buffer: Uint8Array;
|
|
3244
|
+
bufferLength: number;
|
|
3245
|
+
bytesHashed: number;
|
|
3246
|
+
/**
|
|
3247
|
+
* @private
|
|
3248
|
+
*/
|
|
3249
|
+
private finished;
|
|
3250
|
+
update(data: any): Sha256;
|
|
3251
|
+
digest(encoding: any): string | Buffer;
|
|
3252
|
+
hashBuffer(): void;
|
|
3253
|
+
}
|
|
3254
|
+
declare namespace Sha256 {
|
|
3255
|
+
export { BLOCK_SIZE };
|
|
3256
|
+
}
|
|
3257
|
+
import { Buffer } from "buffer";
|
|
3258
|
+
declare const BLOCK_SIZE: 64;
|
|
3259
|
+
}
|
|
3260
|
+
|
|
3261
|
+
// @shell/utils/crypto
|
|
3262
|
+
|
|
3263
|
+
declare module '@shell/utils/crypto' {
|
|
3264
|
+
/// <reference types="node" />
|
|
3265
|
+
export function base64Encode(string: any, alphabet?: string): any;
|
|
3266
|
+
export function base64DecodeToBuffer(string: any): any;
|
|
3267
|
+
export function base64Decode(string: any): any;
|
|
3268
|
+
export function md5(data: any, digest: any, callback: any): string | Buffer;
|
|
3269
|
+
export function sha256(data: any, digest: any, callback: any): string | Buffer;
|
|
3270
|
+
export function binarySize(val: any): number;
|
|
3271
|
+
import { Buffer } from "buffer";
|
|
3272
|
+
}
|
|
3273
|
+
|
|
2676
3274
|
// @shell/utils/custom-validators
|
|
2677
3275
|
|
|
2678
3276
|
declare module '@shell/utils/custom-validators' {
|
|
@@ -2781,8 +3379,8 @@ export function setFavIcon(store: any): void;
|
|
|
2781
3379
|
declare module '@shell/utils/grafana' {
|
|
2782
3380
|
export function getClusterPrefix(monitoringVersion: any, clusterId: any): string;
|
|
2783
3381
|
export function computeDashboardUrl(monitoringVersion: any, embedUrl: any, clusterId: any, params: any, modifyPrefix?: boolean): any;
|
|
2784
|
-
export function dashboardExists(monitoringVersion: any, store: any, clusterId: any, embedUrl: any, storeName?: string): Promise<boolean>;
|
|
2785
|
-
export function allDashboardsExist(store: any, clusterId: any, embeddedUrls: any, storeName?: string): Promise<boolean>;
|
|
3382
|
+
export function dashboardExists(monitoringVersion: any, store: any, clusterId: any, embedUrl: any, storeName?: string, projectId?: any): Promise<boolean>;
|
|
3383
|
+
export function allDashboardsExist(store: any, clusterId: any, embeddedUrls: any, storeName?: string, projectId?: any): Promise<boolean>;
|
|
2786
3384
|
export function queryGrafana(monitoringVersion: any, dispatch: any, clusterId: any, query: any, range: any, step: any): any;
|
|
2787
3385
|
export function hasLeader(monitoringVersion: any, dispatch: any, clusterId: any): Promise<boolean>;
|
|
2788
3386
|
export function leaderChanges(monitoringVersion: any, dispatch: any, clusterId: any): Promise<any>;
|
|
@@ -3457,6 +4055,101 @@ declare namespace _default {
|
|
|
3457
4055
|
export default _default;
|
|
3458
4056
|
}
|
|
3459
4057
|
|
|
4058
|
+
// @shell/utils/validators/cidr
|
|
4059
|
+
|
|
4060
|
+
declare module '@shell/utils/validators/cidr' {
|
|
4061
|
+
export function isValidCIDR(cidr: any): boolean;
|
|
4062
|
+
export function isValidMac(value: any): boolean;
|
|
4063
|
+
}
|
|
4064
|
+
|
|
4065
|
+
// @shell/utils/validators/cluster-name
|
|
4066
|
+
|
|
4067
|
+
declare module '@shell/utils/validators/cluster-name' {
|
|
4068
|
+
export function clusterName(pathValue: any, getters: any, errors: any, validatorArgs: any, displayKey: any): any;
|
|
4069
|
+
}
|
|
4070
|
+
|
|
4071
|
+
// @shell/utils/validators/container-images
|
|
4072
|
+
|
|
4073
|
+
declare module '@shell/utils/validators/container-images' {
|
|
4074
|
+
export function containerImages(spec: any, getters: any, errors: any): void;
|
|
4075
|
+
}
|
|
4076
|
+
|
|
4077
|
+
// @shell/utils/validators/cron-schedule
|
|
4078
|
+
|
|
4079
|
+
declare module '@shell/utils/validators/cron-schedule' {
|
|
4080
|
+
export function cronSchedule(schedule: string, getters: any, errors: any): void;
|
|
4081
|
+
}
|
|
4082
|
+
|
|
4083
|
+
// @shell/utils/validators/flow-output
|
|
4084
|
+
|
|
4085
|
+
declare module '@shell/utils/validators/flow-output' {
|
|
4086
|
+
export function flowOutput(spec: any, getters: any, errors: any, validatorArgs: any): void;
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
// @shell/utils/validators
|
|
4090
|
+
|
|
4091
|
+
declare module '@shell/utils/validators' {
|
|
4092
|
+
export function displayKeyFor(type: any, key: any, getters: any): any;
|
|
4093
|
+
export function validateLength(val: any, field: any, displayKey: any, getters: any, errors?: any[]): any[];
|
|
4094
|
+
export function validateChars(val: any, field: any, displayKey: any, getters: any, errors?: any[]): any[];
|
|
4095
|
+
export function validateHostname(val: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
|
|
4096
|
+
export function validateDnsLabel(label: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
|
|
4097
|
+
export function validateDnsLikeTypes(val: any, type: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
|
|
4098
|
+
export function validateBoolean(val: any, field: any, displayKey: any, getters: any, errors?: any[]): void;
|
|
4099
|
+
}
|
|
4100
|
+
|
|
4101
|
+
// @shell/utils/validators/kubernetes-name
|
|
4102
|
+
|
|
4103
|
+
declare module '@shell/utils/validators/kubernetes-name' {
|
|
4104
|
+
export function validateKubernetesName(label: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
|
|
4105
|
+
}
|
|
4106
|
+
|
|
4107
|
+
// @shell/utils/validators/logging-outputs
|
|
4108
|
+
|
|
4109
|
+
declare module '@shell/utils/validators/logging-outputs' {
|
|
4110
|
+
export function logdna(value: any, getters: any, errors: any, validatorArgs: any): void;
|
|
4111
|
+
}
|
|
4112
|
+
|
|
4113
|
+
// @shell/utils/validators/monitoring-route
|
|
4114
|
+
|
|
4115
|
+
declare module '@shell/utils/validators/monitoring-route' {
|
|
4116
|
+
export function matching(spec: any, getters: any, errors: any, validatorArgs: any): void;
|
|
4117
|
+
export function interval(value: any, getters: any, errors: any, validatorArgs: any, displayKey: any): void;
|
|
4118
|
+
}
|
|
4119
|
+
|
|
4120
|
+
// @shell/utils/validators/pod-affinity
|
|
4121
|
+
|
|
4122
|
+
declare module '@shell/utils/validators/pod-affinity' {
|
|
4123
|
+
export function podAffinity(spec: any, getters: any, errors: any): void;
|
|
4124
|
+
}
|
|
4125
|
+
|
|
4126
|
+
// @shell/utils/validators/prometheusrule
|
|
4127
|
+
|
|
4128
|
+
declare module '@shell/utils/validators/prometheusrule' {
|
|
4129
|
+
export function ruleGroups(spec: any, getters: any, errors: any, validatorArgs: any): any;
|
|
4130
|
+
export function groupsAreValid(groups: any[], getters: any, errors: any, validatorArgs: any): any;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
// @shell/utils/validators/role-template
|
|
4134
|
+
|
|
4135
|
+
declare module '@shell/utils/validators/role-template' {
|
|
4136
|
+
export function roleTemplateRules(rules: any[], getters: any, errors: any, validatorArgs?: any[]): void;
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4139
|
+
// @shell/utils/validators/service
|
|
4140
|
+
|
|
4141
|
+
declare module '@shell/utils/validators/service' {
|
|
4142
|
+
export function servicePort(spec: any, getters: any, errors: any, validatorArgs: any): any;
|
|
4143
|
+
export function clusterIp(spec: any, getters: any, errors: any, validatorArgs: any): any;
|
|
4144
|
+
export function externalName(spec: any, getters: any, errors: any, validatorArgs: any): any;
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4147
|
+
// @shell/utils/validators/setting
|
|
4148
|
+
|
|
4149
|
+
declare module '@shell/utils/validators/setting' {
|
|
4150
|
+
export function isHttps(value: any, getters: any, errors: any, validatorArgs: any, displayKey: any): any;
|
|
4151
|
+
}
|
|
4152
|
+
|
|
3460
4153
|
// @shell/utils/version
|
|
3461
4154
|
|
|
3462
4155
|
declare module '@shell/utils/version' {
|