@alauda-fe/common 1.4.7 → 1.4.9
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/api/platform-ui.service.d.ts +1 -2
- package/api/project-api.service.d.ts +2 -0
- package/api/types.d.ts +3 -0
- package/business/public-api.d.ts +0 -1
- package/core/module.d.ts +23 -23
- package/core/pipes/marked.pipe.d.ts +1 -1
- package/core/types/k8s/core.d.ts +1 -2
- package/core/types/k8s/crd.d.ts +201 -91
- package/core/types/k8s/raw.d.ts +1 -0
- package/core/types/resource-definitions.d.ts +91 -11
- package/core/utils/operators.d.ts +5 -2
- package/esm2022/api/platform-ui.service.mjs +1 -7
- package/esm2022/api/project-api.service.mjs +11 -1
- package/esm2022/api/types.mjs +1 -1
- package/esm2022/business/public-api.mjs +1 -2
- package/esm2022/core/constants/tokens.mjs +2 -2
- package/esm2022/core/module.mjs +8 -8
- package/esm2022/core/pipes/marked.pipe.mjs +3 -2
- package/esm2022/core/types/k8s/core.mjs +1 -1
- package/esm2022/core/types/k8s/crd.mjs +28 -1
- package/esm2022/core/types/k8s/raw.mjs +2 -1
- package/esm2022/core/types/resource-definitions.mjs +46 -6
- package/esm2022/core/utils/operators.mjs +8 -2
- package/esm2022/grid-layout/components/grid/component.mjs +2 -2
- package/esm2022/k8s-shared/k8s-shared-util.service.mjs +6 -6
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +17 -11
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +16 -10
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +3 -3
- package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +6 -6
- package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +47 -56
- package/esm2022/page-scaffold/page-header/account-menu/module.mjs +4 -5
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +27 -42
- package/esm2022/page-scaffold/page-header/common-layout/store.service.mjs +2 -2
- package/esm2022/page-scaffold/page-header/component.mjs +16 -17
- package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +4 -4
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +48 -65
- package/esm2022/page-scaffold/page-header/help-menu/module.mjs +4 -5
- package/esm2022/page-scaffold/page-header/module.mjs +7 -8
- package/k8s-shared/k8s-shared-util.service.d.ts +11 -3
- package/k8s-shared/update-description-dialog/component.d.ts +9 -0
- package/k8s-shared/update-display-name-dialog/component.d.ts +9 -1
- package/package.json +1 -1
- package/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.d.ts +2 -2
- package/page-scaffold/page-header/account-menu/component/component.d.ts +1 -2
- package/page-scaffold/page-header/account-menu/module.d.ts +2 -2
- package/page-scaffold/page-header/common-layout/product-select/component.d.ts +1 -3
- package/page-scaffold/page-header/component.d.ts +1 -4
- package/styles/tailwind-preset.scss +1 -1
- package/business/module-info/api.service.d.ts +0 -24
- package/business/module-info/public-api.d.ts +0 -1
- package/esm2022/business/module-info/api.service.mjs +0 -39
- package/esm2022/business/module-info/public-api.mjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProductEntry } from '../core/public-api';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const PLATFORM_INFO_CM_NAME = "platform-info";
|
|
4
4
|
export declare const PLATFORM_NAME_ZH_KEY = "platformNameZH";
|
|
@@ -21,7 +21,6 @@ export declare class PlatformUIService {
|
|
|
21
21
|
private readonly k8sApi;
|
|
22
22
|
private readonly theme;
|
|
23
23
|
getEntries(): import("rxjs").Observable<ProductEntry[]>;
|
|
24
|
-
getDocsEntry(): import("rxjs").Observable<ProductDocsEntry>;
|
|
25
24
|
getPlatformInfo(): import("rxjs").Observable<{
|
|
26
25
|
name: {
|
|
27
26
|
zh: string;
|
|
@@ -6,12 +6,14 @@ export declare class ProjectApiService {
|
|
|
6
6
|
private readonly http;
|
|
7
7
|
constructor(http: HttpClient);
|
|
8
8
|
getProjects(params?: ResourceListParams): Observable<Project[]>;
|
|
9
|
+
getProjectList(params?: ResourceListParams): Observable<KubernetesResourceList<Project>>;
|
|
9
10
|
getNamespaces({ project, cluster }: {
|
|
10
11
|
project: string;
|
|
11
12
|
cluster: string;
|
|
12
13
|
}): Observable<KubernetesResourceList<Namespace>>;
|
|
13
14
|
get(name: string): Observable<Project>;
|
|
14
15
|
getClusterNamespaces(project: string, cluster: string): Observable<Namespace[]>;
|
|
16
|
+
deleteProject(project: string): Observable<Project>;
|
|
15
17
|
getProjectNamespaces(projectName: string): Observable<Array<{
|
|
16
18
|
cluster: string;
|
|
17
19
|
namespace: string;
|
package/api/types.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export interface ApiDefinitionBaseParams {
|
|
|
14
14
|
definition: K8sResourceDefinition;
|
|
15
15
|
}
|
|
16
16
|
export interface ApiTypeBaseParams<T extends string> {
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated 请使用 definition 参数
|
|
19
|
+
*/
|
|
17
20
|
type: T;
|
|
18
21
|
}
|
|
19
22
|
export type ApiBaseParams<T extends string> = {
|
package/business/public-api.d.ts
CHANGED
package/core/module.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./pipes/
|
|
3
|
-
import * as i2 from "./pipes/
|
|
4
|
-
import * as i3 from "./pipes/
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./directives/
|
|
7
|
-
import * as i6 from "./directives/
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./pipes/
|
|
10
|
-
import * as i9 from "./pipes/
|
|
11
|
-
import * as i10 from "./pipes/img-
|
|
12
|
-
import * as i11 from "./pipes/
|
|
13
|
-
import * as i12 from "./pipes/
|
|
14
|
-
import * as i13 from "./pipes/
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./directives/
|
|
17
|
-
import * as i16 from "./directives/
|
|
18
|
-
import * as i17 from "./directives/
|
|
19
|
-
import * as i18 from "./directives/
|
|
20
|
-
import * as i19 from "./directives/
|
|
21
|
-
import * as i20 from "./directives/
|
|
22
|
-
import * as i21 from "./
|
|
23
|
-
import * as i22 from "./pipes/
|
|
2
|
+
import * as i1 from "./pipes/page-env.pipe";
|
|
3
|
+
import * as i2 from "./pipes/timezone-display.pipe";
|
|
4
|
+
import * as i3 from "./pipes/cron-human-readable.pipe";
|
|
5
|
+
import * as i4 from "./directives/scroll-to-first-invalid.directive";
|
|
6
|
+
import * as i5 from "./directives/last-form-item.directive";
|
|
7
|
+
import * as i6 from "./directives/readonly-field.directive";
|
|
8
|
+
import * as i7 from "./pipes/parse-json-translate.pipe";
|
|
9
|
+
import * as i8 from "./pipes/field-not-available.pipe";
|
|
10
|
+
import * as i9 from "./pipes/img-header.pipe";
|
|
11
|
+
import * as i10 from "./pipes/img-theme.pipe";
|
|
12
|
+
import * as i11 from "./pipes/safe.pipe";
|
|
13
|
+
import * as i12 from "./pipes/sanitize.pipe";
|
|
14
|
+
import * as i13 from "./pipes/time.pipe";
|
|
15
|
+
import * as i14 from "./directives/page-header-content.directive";
|
|
16
|
+
import * as i15 from "./directives/intercept-deactivate.directive";
|
|
17
|
+
import * as i16 from "./directives/disabled.directive";
|
|
18
|
+
import * as i17 from "./directives/click-outside.directive";
|
|
19
|
+
import * as i18 from "./directives/scroll-border-observer.directive";
|
|
20
|
+
import * as i19 from "./directives/resize.directive";
|
|
21
|
+
import * as i20 from "./directives/feature-gate.directive";
|
|
22
|
+
import * as i21 from "./pipes/pure.pipe";
|
|
23
|
+
import * as i22 from "./pipes/marked.pipe";
|
|
24
24
|
import * as i23 from "@angular/common";
|
|
25
25
|
import * as i24 from "@angular/forms";
|
|
26
26
|
import * as i25 from "./pipes/k8s-util.pipe.module";
|
|
@@ -29,6 +29,6 @@ import * as i27 from "../code/code.module";
|
|
|
29
29
|
import * as i28 from "./pipes/crontab-next.pipe";
|
|
30
30
|
export declare class CoreModule {
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, [typeof i1.LocaleTransformPipe, typeof i1.ThemeTransformPipe, typeof i2.TimezoneDisplayPipe, typeof i3.CronHumanReadablePipe, typeof i4.ScrollToFirstInvalidMarkerDirective, typeof i5.FormItemMarginEffectDirective, typeof i6.SpanComponent], [typeof i6.ReadonlyFieldDirective, typeof i7.ParseJsonTranslatePipe, typeof i8.FieldNotAvailablePipe, typeof i9.ImgHeaderPipe, typeof i10.ImgThemePipe, typeof i11.SafePipe, typeof i12.SanitizePipe, typeof i13.RelativeTimePipe, typeof i14.PageHeaderContentDirective, typeof i13.StandardTimePipe, typeof i4.ScrollToFirstInvalidDirective, typeof i15.InterceptDeactivateDirective, typeof i16.DisabledDirective, typeof i17.ClickOutsideDirective, typeof i18.ScrollBorderObserverDirective, typeof i19.ResizeDirective, typeof i20.FeatureGateDirective, typeof i21.PurePipe, typeof i13.StandardDatePipe, typeof i22.MarkedPipe, typeof i23.CommonModule, typeof i24.ReactiveFormsModule, typeof i25.K8sUtilPipeModule, typeof i26.EffectDirectiveModule, typeof i27.CodeModule, typeof i28.CrontabNextPipe], [typeof i1.LocaleTransformPipe, typeof i1.ThemeTransformPipe, typeof i2.TimezoneDisplayPipe, typeof i3.CronHumanReadablePipe, typeof i4.ScrollToFirstInvalidMarkerDirective, typeof i5.FormItemMarginEffectDirective, typeof i6.ReadonlyFieldDirective, typeof i7.ParseJsonTranslatePipe, typeof i8.FieldNotAvailablePipe, typeof i9.ImgHeaderPipe, typeof i10.ImgThemePipe, typeof i11.SafePipe, typeof i12.SanitizePipe, typeof i13.RelativeTimePipe, typeof i14.PageHeaderContentDirective, typeof i13.StandardTimePipe, typeof i4.ScrollToFirstInvalidDirective, typeof i15.InterceptDeactivateDirective, typeof i16.DisabledDirective, typeof i17.ClickOutsideDirective, typeof i18.ScrollBorderObserverDirective, typeof i19.ResizeDirective, typeof i20.FeatureGateDirective, typeof i21.PurePipe, typeof i13.StandardDatePipe, typeof i22.MarkedPipe, typeof i25.K8sUtilPipeModule, typeof i27.CodeModule, typeof i26.EffectDirectiveModule, typeof i28.CrontabNextPipe]>;
|
|
33
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
34
34
|
}
|
|
@@ -4,5 +4,5 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class MarkedPipe implements PipeTransform {
|
|
5
5
|
transform(value: string, options?: MarkedOptions): string;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkedPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MarkedPipe, "aclMarked",
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MarkedPipe, "aclMarked", true>;
|
|
8
8
|
}
|
package/core/types/k8s/core.d.ts
CHANGED
|
@@ -33,8 +33,7 @@ export interface LabelSelector {
|
|
|
33
33
|
}
|
|
34
34
|
export interface LabelSelectorRequirement {
|
|
35
35
|
key: string;
|
|
36
|
-
operator?:
|
|
37
|
-
'=' | '==' | '!=' | '!' | 'in' | 'notin' | 'exists' | 'doesnotexist' | 'In';
|
|
36
|
+
operator?: '=' | '==' | '!=' | '!' | 'in' | 'notin' | 'exists' | 'doesnotexist' | 'In';
|
|
38
37
|
values?: string[];
|
|
39
38
|
}
|
|
40
39
|
export interface TypeMeta {
|
package/core/types/k8s/crd.d.ts
CHANGED
|
@@ -1,50 +1,7 @@
|
|
|
1
1
|
import { ValueOf } from 'ts-essentials';
|
|
2
2
|
import { StringMap } from '../commons';
|
|
3
3
|
import { Condition, KubernetesResource, KubernetesResourceList, ObjectMeta } from './core';
|
|
4
|
-
import { ConfigMapKeyRef, Node, NodeStatus, NodeTaint, SecretKeyRef } from './raw';
|
|
5
|
-
/**
|
|
6
|
-
* 只保留common中需要用到的crd 扩展类
|
|
7
|
-
*/
|
|
8
|
-
export interface ModuleInfoCondition {
|
|
9
|
-
status?: 'Success' | 'Failed' | 'Processing' | 'Pending';
|
|
10
|
-
reason?: string;
|
|
11
|
-
message?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
lastTransitionTime?: string;
|
|
14
|
-
lastHeartbeatTime?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ModuleInfoAvailableVersion {
|
|
17
|
-
version?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
descriptionEn?: string;
|
|
20
|
-
riskLevel?: 'Low' | 'Middle' | 'High';
|
|
21
|
-
dependencies?: Array<{
|
|
22
|
-
moduleName: string;
|
|
23
|
-
versionsMatch: string[];
|
|
24
|
-
}>;
|
|
25
|
-
upgradeBefore?: Array<{
|
|
26
|
-
moduleName: string;
|
|
27
|
-
}>;
|
|
28
|
-
}
|
|
29
|
-
export interface ModuleInfo extends KubernetesResource {
|
|
30
|
-
spec?: {
|
|
31
|
-
version?: string;
|
|
32
|
-
entrypoint?: string;
|
|
33
|
-
selectedCluster?: Array<{
|
|
34
|
-
[key: string]: string;
|
|
35
|
-
}>;
|
|
36
|
-
valuesOverride: StringMap;
|
|
37
|
-
config?: any;
|
|
38
|
-
};
|
|
39
|
-
status?: {
|
|
40
|
-
version: string;
|
|
41
|
-
phase: 'Processing' | 'Running' | 'Failed' | 'Blocked';
|
|
42
|
-
removeIsPrevented?: boolean;
|
|
43
|
-
blockReasons?: string[];
|
|
44
|
-
conditions?: ModuleInfoCondition[];
|
|
45
|
-
availableVersions: ModuleInfoAvailableVersion[];
|
|
46
|
-
};
|
|
47
|
-
}
|
|
4
|
+
import { ConfigMapKeyRef, Node, NodeStatus, NodeTaint, Secret, SecretKeyRef } from './raw';
|
|
48
5
|
export interface ClusterSpec {
|
|
49
6
|
authInfo?: {
|
|
50
7
|
controller: {
|
|
@@ -532,19 +489,6 @@ export interface ProductStatus {
|
|
|
532
489
|
icon: string;
|
|
533
490
|
text: string;
|
|
534
491
|
}
|
|
535
|
-
export interface ProductDocsEntry extends KubernetesResource {
|
|
536
|
-
spec: {
|
|
537
|
-
groups: Array<{
|
|
538
|
-
groupName: LocaleDisplay;
|
|
539
|
-
docs: Array<{
|
|
540
|
-
logo: string;
|
|
541
|
-
docEntrypoint: string;
|
|
542
|
-
displayName: LocaleDisplay;
|
|
543
|
-
description: LocaleDisplay;
|
|
544
|
-
}>;
|
|
545
|
-
}>;
|
|
546
|
-
};
|
|
547
|
-
}
|
|
548
492
|
export interface HelmRequestCondition {
|
|
549
493
|
lastProbeTime?: string;
|
|
550
494
|
lastTransitionTime?: string;
|
|
@@ -621,6 +565,46 @@ export interface HelmRequestHttp {
|
|
|
621
565
|
url: string;
|
|
622
566
|
secretRef: string;
|
|
623
567
|
}
|
|
568
|
+
export interface User extends KubernetesResource {
|
|
569
|
+
spec?: UserSpec;
|
|
570
|
+
}
|
|
571
|
+
export interface UserSpec {
|
|
572
|
+
connector_name?: string;
|
|
573
|
+
connector_type?: string;
|
|
574
|
+
email?: string;
|
|
575
|
+
mail?: string;
|
|
576
|
+
groups?: string[];
|
|
577
|
+
is_admin?: boolean;
|
|
578
|
+
valid?: boolean;
|
|
579
|
+
username?: string;
|
|
580
|
+
old_password?: string;
|
|
581
|
+
password?: string;
|
|
582
|
+
last_login_time?: string;
|
|
583
|
+
login_failure_times?: number;
|
|
584
|
+
state?: UserState;
|
|
585
|
+
is_disabled?: boolean;
|
|
586
|
+
expired?: {
|
|
587
|
+
begin: string;
|
|
588
|
+
end: string;
|
|
589
|
+
};
|
|
590
|
+
mobile?: string;
|
|
591
|
+
webhookType?: WebhookType;
|
|
592
|
+
webhookUrl?: string;
|
|
593
|
+
ids?: Array<{
|
|
594
|
+
type: string;
|
|
595
|
+
id: string;
|
|
596
|
+
}>;
|
|
597
|
+
}
|
|
598
|
+
export declare enum UserState {
|
|
599
|
+
ACTIVE = "active",
|
|
600
|
+
LOCKED = "locked",
|
|
601
|
+
INVALID = "invalid",
|
|
602
|
+
DELETED = "deleted"
|
|
603
|
+
}
|
|
604
|
+
export type WebhookType = 'Webhook' | 'DingTalk' | 'WeChat';
|
|
605
|
+
export interface UserList extends KubernetesResourceList<User> {
|
|
606
|
+
total: number;
|
|
607
|
+
}
|
|
624
608
|
/**
|
|
625
609
|
* https://confluence.alauda.cn/pages/viewpage.action?pageId=176883470
|
|
626
610
|
*/
|
|
@@ -640,6 +624,21 @@ export interface UserBindingSpec {
|
|
|
640
624
|
namespace?: string;
|
|
641
625
|
}>;
|
|
642
626
|
}
|
|
627
|
+
export interface UserGroup extends KubernetesResource {
|
|
628
|
+
spec: UserGroupSpec;
|
|
629
|
+
}
|
|
630
|
+
export interface UserGroupSpec {
|
|
631
|
+
refConnector?: {
|
|
632
|
+
id: string;
|
|
633
|
+
type: string;
|
|
634
|
+
};
|
|
635
|
+
name?: string;
|
|
636
|
+
description?: string;
|
|
637
|
+
users?: Array<{
|
|
638
|
+
name: string;
|
|
639
|
+
importTime: string;
|
|
640
|
+
}>;
|
|
641
|
+
}
|
|
643
642
|
export interface RoleRule {
|
|
644
643
|
module: string;
|
|
645
644
|
functionResourceRef: string;
|
|
@@ -667,44 +666,155 @@ export interface UserRole extends KubernetesResource {
|
|
|
667
666
|
roles?: string[];
|
|
668
667
|
namespaces?: Record<string, UserRoleNamespace[]>;
|
|
669
668
|
}
|
|
670
|
-
export
|
|
671
|
-
|
|
669
|
+
export declare enum UserSecurityPolicyRule {
|
|
670
|
+
PasswordPolicy = "PasswordPolicy",
|
|
671
|
+
UserLock = "UserLockedPolicy",
|
|
672
|
+
UserDisable = "UserDisabledPolicy",
|
|
673
|
+
Notification = "NotificationPolicy",
|
|
674
|
+
AccessControl = "AccessControlPolicy",
|
|
675
|
+
TwoFA = "TwoFactorAuthenticationPolicy"
|
|
676
|
+
}
|
|
677
|
+
export interface UserPolicyRule {
|
|
678
|
+
name: UserSecurityPolicyRule;
|
|
679
|
+
items: Array<{
|
|
680
|
+
enable: boolean;
|
|
681
|
+
key: string;
|
|
682
|
+
value?: string;
|
|
683
|
+
}>;
|
|
672
684
|
}
|
|
673
|
-
export interface
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
685
|
+
export interface UserPolicy extends KubernetesResource {
|
|
686
|
+
rules: UserPolicyRule[];
|
|
687
|
+
}
|
|
688
|
+
export interface Idp extends KubernetesResource {
|
|
689
|
+
spec?: {
|
|
690
|
+
config?: LdapConfig | OidcConfig;
|
|
691
|
+
};
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
type: string;
|
|
695
|
+
namespace?: string;
|
|
696
|
+
config?: string;
|
|
697
|
+
ldapSync?: {
|
|
698
|
+
sync: boolean;
|
|
699
|
+
roles: string;
|
|
700
|
+
};
|
|
701
|
+
idpValidation?: {
|
|
702
|
+
username: string;
|
|
703
|
+
password: string;
|
|
704
|
+
};
|
|
705
|
+
}
|
|
706
|
+
export interface LdapConfig {
|
|
707
|
+
host?: string;
|
|
708
|
+
insecureNoSSL?: boolean;
|
|
709
|
+
insecureSkipVerify?: boolean;
|
|
710
|
+
startTLS?: boolean;
|
|
711
|
+
rootCA?: string;
|
|
712
|
+
rootCAData?: string;
|
|
713
|
+
bindDN?: string;
|
|
714
|
+
bindPW?: string;
|
|
715
|
+
clientSecretRef?: string;
|
|
716
|
+
ldapType?: string;
|
|
717
|
+
usernamePrompt?: string;
|
|
718
|
+
userSearch?: LdapUserSearch;
|
|
719
|
+
groupSearch?: LdapGroupSearch;
|
|
720
|
+
}
|
|
721
|
+
export interface LdapUserSearch {
|
|
722
|
+
baseDN?: string;
|
|
723
|
+
filter?: string;
|
|
724
|
+
scope?: string;
|
|
681
725
|
username?: string;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
726
|
+
idAttr?: string;
|
|
727
|
+
emailAttr?: string;
|
|
728
|
+
nameAttr?: string;
|
|
729
|
+
}
|
|
730
|
+
export interface LdapGroupSearch {
|
|
731
|
+
baseDN?: string;
|
|
732
|
+
filter?: string;
|
|
733
|
+
scope?: string;
|
|
734
|
+
userAttr?: string;
|
|
735
|
+
groupAttr?: string;
|
|
736
|
+
nameAttr?: string;
|
|
737
|
+
}
|
|
738
|
+
export interface OidcConfig {
|
|
739
|
+
issuer?: string;
|
|
740
|
+
clientID?: string;
|
|
741
|
+
clientSecret?: string;
|
|
742
|
+
clientSecretRef?: string;
|
|
743
|
+
redirectURI?: string;
|
|
744
|
+
logoutURL?: string;
|
|
745
|
+
scopes?: string[];
|
|
746
|
+
}
|
|
747
|
+
export interface AccessTokenInfo extends KubernetesResource {
|
|
748
|
+
spec: {
|
|
749
|
+
timestamp: number;
|
|
750
|
+
expiration: number;
|
|
751
|
+
description: string;
|
|
691
752
|
};
|
|
692
|
-
mobile?: string;
|
|
693
|
-
webhookType?: WebhookType;
|
|
694
|
-
webhookUrl?: string;
|
|
695
|
-
ids?: Array<{
|
|
696
|
-
type: string;
|
|
697
|
-
id: string;
|
|
698
|
-
}>;
|
|
699
753
|
}
|
|
700
|
-
export declare enum
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
DELETED = "deleted"
|
|
754
|
+
export declare enum ChartRepoType {
|
|
755
|
+
Chart = "Chart",
|
|
756
|
+
Git = "Git",
|
|
757
|
+
OCIChart = "OCI Chart"
|
|
705
758
|
}
|
|
706
|
-
export
|
|
707
|
-
|
|
708
|
-
|
|
759
|
+
export interface ChartRepoSpec {
|
|
760
|
+
secret?: {
|
|
761
|
+
name: string;
|
|
762
|
+
};
|
|
763
|
+
url: string;
|
|
764
|
+
type?: ChartRepoType;
|
|
765
|
+
source?: {
|
|
766
|
+
url: string;
|
|
767
|
+
path: string;
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
export interface ChartRepoStatus {
|
|
771
|
+
phase: ChartRepoPhaseEnum;
|
|
772
|
+
}
|
|
773
|
+
export declare enum ChartRepoPhaseEnum {
|
|
774
|
+
Synced = "Synced",
|
|
775
|
+
Failed = "Failed",
|
|
776
|
+
Pending = "Pending"
|
|
777
|
+
}
|
|
778
|
+
export interface ChartRepoCreate extends KubernetesResource {
|
|
779
|
+
spec: ChartRepoCreateSpec;
|
|
780
|
+
}
|
|
781
|
+
export interface ChartRepoCreateSpec {
|
|
782
|
+
secret?: Secret;
|
|
783
|
+
chartRepo: ChartRepo;
|
|
784
|
+
}
|
|
785
|
+
export interface Chart extends KubernetesResource {
|
|
786
|
+
spec: {
|
|
787
|
+
appName?: string;
|
|
788
|
+
versions?: ChartVersion[];
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
export declare enum ChartUploadStatusEnum {
|
|
792
|
+
UPLOAD_SUCCEEDED = "upload_succeeded",
|
|
793
|
+
UPLOAD_FAILED = "upload_failed",
|
|
794
|
+
UPLOADING = "uploading"
|
|
795
|
+
}
|
|
796
|
+
export interface ChartVersion {
|
|
797
|
+
name: string;
|
|
798
|
+
apiVersion: string;
|
|
799
|
+
appVersion: string;
|
|
800
|
+
deprecated: boolean;
|
|
801
|
+
created: string;
|
|
802
|
+
description: string;
|
|
803
|
+
digest: string;
|
|
804
|
+
urls: string[];
|
|
805
|
+
sources: string[];
|
|
806
|
+
version: string;
|
|
807
|
+
icon: string;
|
|
808
|
+
home: string;
|
|
809
|
+
maintainers: Array<{
|
|
810
|
+
name: string;
|
|
811
|
+
email: string;
|
|
812
|
+
}>;
|
|
813
|
+
status: ChartUploadStatusEnum;
|
|
814
|
+
annotations: StringMap;
|
|
815
|
+
}
|
|
816
|
+
export interface ChartRepo extends KubernetesResource {
|
|
817
|
+
spec: ChartRepoSpec;
|
|
818
|
+
status?: ChartRepoStatus;
|
|
709
819
|
}
|
|
710
820
|
export {};
|
package/core/types/k8s/raw.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export declare enum SecretType {
|
|
|
45
45
|
SSHKey = "kubernetes.io/ssh-public-key",
|
|
46
46
|
SSHAuth = "kubernetes.io/ssh-auth",
|
|
47
47
|
BasicAuth = "kubernetes.io/basic-auth",
|
|
48
|
+
BasicAuthSecret = "kubernetes.io/basic-auth-secret",
|
|
48
49
|
Database = "kubernetes.io/database",
|
|
49
50
|
DockerConfigJson = "kubernetes.io/dockerconfigjson",
|
|
50
51
|
OAuth2 = "katanomi.dev/oauth2",
|
|
@@ -151,11 +151,6 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
151
151
|
readonly SECRET: {
|
|
152
152
|
readonly type: string;
|
|
153
153
|
};
|
|
154
|
-
readonly PRODUCT: {
|
|
155
|
-
readonly type: string;
|
|
156
|
-
readonly apiGroup: string;
|
|
157
|
-
readonly apiVersion: string;
|
|
158
|
-
};
|
|
159
154
|
readonly CRON_JOB: {
|
|
160
155
|
readonly apiGroup: string;
|
|
161
156
|
readonly apiVersion: string;
|
|
@@ -308,6 +303,16 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
308
303
|
readonly apiVersion: string;
|
|
309
304
|
readonly apiGroup: string;
|
|
310
305
|
};
|
|
306
|
+
readonly MODULE_CONFIG: {
|
|
307
|
+
readonly apiGroup: string;
|
|
308
|
+
readonly apiVersion: string;
|
|
309
|
+
readonly type: string;
|
|
310
|
+
};
|
|
311
|
+
readonly MODULE_PLUGIN: {
|
|
312
|
+
readonly apiGroup: string;
|
|
313
|
+
readonly apiVersion: string;
|
|
314
|
+
readonly type: string;
|
|
315
|
+
};
|
|
311
316
|
readonly PRODUCT_ENTRY: {
|
|
312
317
|
readonly type: string;
|
|
313
318
|
readonly apiGroup: string;
|
|
@@ -328,11 +333,46 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
328
333
|
readonly apiVersion: string;
|
|
329
334
|
readonly apiGroup: string;
|
|
330
335
|
};
|
|
336
|
+
readonly USER_SECURITY_POLICY: {
|
|
337
|
+
readonly type: string;
|
|
338
|
+
readonly apiGroup: string;
|
|
339
|
+
readonly apiVersion: string;
|
|
340
|
+
};
|
|
341
|
+
readonly CONNECTOR: {
|
|
342
|
+
readonly type: string;
|
|
343
|
+
readonly apiGroup: string;
|
|
344
|
+
};
|
|
345
|
+
readonly ACCESS_TOKEN_INFO: {
|
|
346
|
+
readonly type: string;
|
|
347
|
+
readonly apiGroup: string;
|
|
348
|
+
};
|
|
349
|
+
readonly FUNCTION_RESOURCE: {
|
|
350
|
+
readonly type: string;
|
|
351
|
+
readonly apiGroup: string;
|
|
352
|
+
readonly apiVersion: string;
|
|
353
|
+
};
|
|
331
354
|
readonly USER_BINDING: {
|
|
332
355
|
readonly type: string;
|
|
333
356
|
readonly apiGroup: string;
|
|
334
357
|
readonly apiVersion: string;
|
|
335
358
|
};
|
|
359
|
+
readonly USER: {
|
|
360
|
+
readonly type: string;
|
|
361
|
+
readonly apiGroup: string;
|
|
362
|
+
};
|
|
363
|
+
readonly GROUP: {
|
|
364
|
+
readonly type: string;
|
|
365
|
+
readonly apiGroup: string;
|
|
366
|
+
};
|
|
367
|
+
readonly PROJECT_MEMBER: {
|
|
368
|
+
readonly type: string;
|
|
369
|
+
readonly apiGroup: string;
|
|
370
|
+
};
|
|
371
|
+
readonly ROLE_TEMPLATE: {
|
|
372
|
+
readonly type: string;
|
|
373
|
+
readonly apiGroup: string;
|
|
374
|
+
readonly apiVersion: string;
|
|
375
|
+
};
|
|
336
376
|
readonly BATCH_ACTION: {
|
|
337
377
|
readonly apiGroup: string;
|
|
338
378
|
readonly apiVersion: string;
|
|
@@ -398,7 +438,6 @@ export declare const RESOURCE_TYPES: {
|
|
|
398
438
|
readonly SERVICE: "SERVICE";
|
|
399
439
|
readonly LIMIT_RANGE: "LIMIT_RANGE";
|
|
400
440
|
readonly SECRET: "SECRET";
|
|
401
|
-
readonly PRODUCT: "PRODUCT";
|
|
402
441
|
readonly CRON_JOB: "CRON_JOB";
|
|
403
442
|
readonly ADVANCED_CRON_JOB: "ADVANCED_CRON_JOB";
|
|
404
443
|
readonly JOB: "JOB";
|
|
@@ -434,11 +473,21 @@ export declare const RESOURCE_TYPES: {
|
|
|
434
473
|
readonly VOLUME_SNAPSHOT_CLASS: "VOLUME_SNAPSHOT_CLASS";
|
|
435
474
|
readonly PRODUCT_BASE: "PRODUCT_BASE";
|
|
436
475
|
readonly MODULE_INFO: "MODULE_INFO";
|
|
476
|
+
readonly MODULE_CONFIG: "MODULE_CONFIG";
|
|
477
|
+
readonly MODULE_PLUGIN: "MODULE_PLUGIN";
|
|
437
478
|
readonly PRODUCT_ENTRY: "PRODUCT_ENTRY";
|
|
438
479
|
readonly PRODUCT_DOCS_ENTRY: "PRODUCT_DOCS_ENTRY";
|
|
439
480
|
readonly SERVICEMESH_GROUP: "SERVICEMESH_GROUP";
|
|
440
481
|
readonly CLUSTER_MODULE: "CLUSTER_MODULE";
|
|
482
|
+
readonly USER_SECURITY_POLICY: "USER_SECURITY_POLICY";
|
|
483
|
+
readonly CONNECTOR: "CONNECTOR";
|
|
484
|
+
readonly ACCESS_TOKEN_INFO: "ACCESS_TOKEN_INFO";
|
|
485
|
+
readonly FUNCTION_RESOURCE: "FUNCTION_RESOURCE";
|
|
441
486
|
readonly USER_BINDING: "USER_BINDING";
|
|
487
|
+
readonly USER: "USER";
|
|
488
|
+
readonly GROUP: "GROUP";
|
|
489
|
+
readonly PROJECT_MEMBER: "PROJECT_MEMBER";
|
|
490
|
+
readonly ROLE_TEMPLATE: "ROLE_TEMPLATE";
|
|
442
491
|
readonly BATCH_ACTION: "BATCH_ACTION";
|
|
443
492
|
readonly EVENT: "EVENT";
|
|
444
493
|
readonly SERVICE_MONITOR: "SERVICE_MONITOR";
|
|
@@ -446,7 +495,7 @@ export declare const RESOURCE_TYPES: {
|
|
|
446
495
|
readonly ARGOCD_APPLICATION_SET: "ARGOCD_APPLICATION_SET";
|
|
447
496
|
readonly ARGOCD_APPLICATION: "ARGOCD_APPLICATION";
|
|
448
497
|
};
|
|
449
|
-
export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "ALB2" | "HELM_REQUEST" | "HELM_REQUEST_V1" | "DEPLOYMENT" | "DAEMONSET" | "STATEFULSET" | "FRONTEND" | "RULE" | "POD" | "PODS_EXEC" | "PODS_ROOT_EXEC" | "CONFIG_MAP" | "ALERT_TEMPLATE" | "APPLICATION" | "APPLICATION_HISTORY" | "CLUSTER" | "CLUSTER_VIEW" | "DAEMON_SET" | "STATEFUL_SET" | "DOMAIN" | "FEATURE" | "ALAUDA_FEATURE_GATE" | "CLUSTER_ALAUDA_FEATURE_GATE" | "HORIZONTAL_POD_AUTOSCALER" | "LOG" | "PROJECT" | "PROMETHEUS_RULE" | "ALERT_HISTORY" | "SELF_SUBJECT_ACCESS_REVIEW" | "VIEW" | "SERVICE" | "LIMIT_RANGE" | "SECRET" | "
|
|
498
|
+
export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "ALB2" | "HELM_REQUEST" | "HELM_REQUEST_V1" | "DEPLOYMENT" | "DAEMONSET" | "STATEFULSET" | "FRONTEND" | "RULE" | "POD" | "PODS_EXEC" | "PODS_ROOT_EXEC" | "CONFIG_MAP" | "ALERT_TEMPLATE" | "APPLICATION" | "APPLICATION_HISTORY" | "CLUSTER" | "CLUSTER_VIEW" | "DAEMON_SET" | "STATEFUL_SET" | "DOMAIN" | "FEATURE" | "ALAUDA_FEATURE_GATE" | "CLUSTER_ALAUDA_FEATURE_GATE" | "HORIZONTAL_POD_AUTOSCALER" | "LOG" | "PROJECT" | "PROMETHEUS_RULE" | "ALERT_HISTORY" | "SELF_SUBJECT_ACCESS_REVIEW" | "VIEW" | "SERVICE" | "LIMIT_RANGE" | "SECRET" | "CRON_JOB" | "ADVANCED_CRON_JOB" | "JOB" | "INGRESS" | "PERSISTENT_VOLUME_CLAIM" | "NAMESPACE" | "NODE" | "NODE_METRICS" | "PV" | "CRD" | "CHART_REPO" | "CHART" | "NETWORK_POLICY" | "SERVICE_ACCOUNT" | "REPLICA_SET" | "POD_SECURITY_POLICY" | "NAMESPACE_OVERVIEW" | "CSP" | "RESOURCE_QUOTA" | "CLUSTER_NETWORK_POLICY" | "PROJECT_QUOTA" | "TKE_CLUSTER" | "TKE_MACHINE" | "MACHINE" | "NODE_GROUP" | "CLUSTERSERVICEVERSION" | "TENANT" | "SUBSCRIPTION" | "PACKAGE_MANIFEST" | "BUCKET_CLASS" | "PRODUCT_CONFIG" | "STORAGE_CLASS" | "VOLUME_SNAPSHOT_CLASS" | "PRODUCT_BASE" | "MODULE_INFO" | "MODULE_CONFIG" | "MODULE_PLUGIN" | "PRODUCT_ENTRY" | "PRODUCT_DOCS_ENTRY" | "SERVICEMESH_GROUP" | "CLUSTER_MODULE" | "USER_SECURITY_POLICY" | "CONNECTOR" | "ACCESS_TOKEN_INFO" | "FUNCTION_RESOURCE" | "USER_BINDING" | "USER" | "GROUP" | "PROJECT_MEMBER" | "ROLE_TEMPLATE" | "BATCH_ACTION" | "EVENT" | "SERVICE_MONITOR" | "OAM_APPLICATION" | "ARGOCD_APPLICATION_SET" | "ARGOCD_APPLICATION" | {
|
|
450
499
|
apiGroup: string;
|
|
451
500
|
type: string;
|
|
452
501
|
} | {
|
|
@@ -556,10 +605,6 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
556
605
|
type: string;
|
|
557
606
|
} | {
|
|
558
607
|
type: string;
|
|
559
|
-
} | {
|
|
560
|
-
type: string;
|
|
561
|
-
apiGroup: string;
|
|
562
|
-
apiVersion: string;
|
|
563
608
|
} | {
|
|
564
609
|
apiGroup: string;
|
|
565
610
|
apiVersion: string;
|
|
@@ -677,6 +722,14 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
677
722
|
type: string;
|
|
678
723
|
apiVersion: string;
|
|
679
724
|
apiGroup: string;
|
|
725
|
+
} | {
|
|
726
|
+
apiGroup: string;
|
|
727
|
+
apiVersion: string;
|
|
728
|
+
type: string;
|
|
729
|
+
} | {
|
|
730
|
+
apiGroup: string;
|
|
731
|
+
apiVersion: string;
|
|
732
|
+
type: string;
|
|
680
733
|
} | {
|
|
681
734
|
type: string;
|
|
682
735
|
apiGroup: string;
|
|
@@ -697,6 +750,33 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
697
750
|
type: string;
|
|
698
751
|
apiGroup: string;
|
|
699
752
|
apiVersion: string;
|
|
753
|
+
} | {
|
|
754
|
+
type: string;
|
|
755
|
+
apiGroup: string;
|
|
756
|
+
} | {
|
|
757
|
+
type: string;
|
|
758
|
+
apiGroup: string;
|
|
759
|
+
} | {
|
|
760
|
+
type: string;
|
|
761
|
+
apiGroup: string;
|
|
762
|
+
apiVersion: string;
|
|
763
|
+
} | {
|
|
764
|
+
type: string;
|
|
765
|
+
apiGroup: string;
|
|
766
|
+
apiVersion: string;
|
|
767
|
+
} | {
|
|
768
|
+
type: string;
|
|
769
|
+
apiGroup: string;
|
|
770
|
+
} | {
|
|
771
|
+
type: string;
|
|
772
|
+
apiGroup: string;
|
|
773
|
+
} | {
|
|
774
|
+
type: string;
|
|
775
|
+
apiGroup: string;
|
|
776
|
+
} | {
|
|
777
|
+
type: string;
|
|
778
|
+
apiGroup: string;
|
|
779
|
+
apiVersion: string;
|
|
700
780
|
} | {
|
|
701
781
|
apiGroup: string;
|
|
702
782
|
apiVersion: string;
|
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
* @module utils
|
|
4
4
|
*/
|
|
5
5
|
import { DestroyRef } from '@angular/core';
|
|
6
|
-
import { Observable, SchedulerLike, TimestampProvider } from 'rxjs';
|
|
6
|
+
import { MonoTypeOperatorFunction, Observable, SchedulerLike, TimestampProvider } from 'rxjs';
|
|
7
7
|
export type PublishRefConfig<T> = number | (import('rxjs/internal/operators/share').ShareConfig<T> & {
|
|
8
8
|
bufferSize?: number;
|
|
9
9
|
windowTime?: number;
|
|
10
10
|
timestampProvider?: TimestampProvider;
|
|
11
11
|
});
|
|
12
|
-
export declare const publishRef: <T>(bufferSizeOrConfig?: PublishRefConfig<T>) =>
|
|
12
|
+
export declare const publishRef: <T>(bufferSizeOrConfig?: PublishRefConfig<T>) => MonoTypeOperatorFunction<T>;
|
|
13
13
|
export declare const shareUntil: <T>(destroy$: Observable<unknown>, bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike) => import("rxjs").UnaryFunction<Observable<T>, Observable<T>>;
|
|
14
14
|
export declare const skipError: <T, R = never>(mapped?: R | Observable<R>, debug?: boolean) => import("rxjs").OperatorFunction<T, T | R>;
|
|
15
15
|
export declare const catchPromise: <T, R = never>(promise: Promise<T>, mapped?: R | Observable<R>) => Observable<T | R>;
|
|
16
16
|
declare const NULL: unique symbol;
|
|
17
17
|
export declare const startWithCondition: <T>(condition: boolean, value: T) => (source: Observable<T>) => Observable<typeof NULL | T>;
|
|
18
18
|
export declare const shareUntilDestroyed: <T>(destroyRef?: DestroyRef, bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike) => import("rxjs").UnaryFunction<Observable<T>, Observable<T>>;
|
|
19
|
+
export declare const safePluck: (...properties: Array<string | number>) => import("rxjs").UnaryFunction<Observable<unknown>, Observable<any>>;
|
|
20
|
+
export declare function switchTap<T, R>(next: (x: T) => Observable<R>): MonoTypeOperatorFunction<T>;
|
|
21
|
+
export declare function switchTap<R>(observable: Observable<R>): MonoTypeOperatorFunction<R>;
|
|
19
22
|
export {};
|