@alauda-fe/network 1.0.0-beta.0
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/esm2022/alauda-fe-network.mjs +5 -0
- package/esm2022/index.mjs +19 -0
- package/esm2022/lib/components/certificate-status/component.mjs +37 -0
- package/esm2022/lib/components/fixed-ip/component.mjs +503 -0
- package/esm2022/lib/components/loadbalancer-spec-form/component.mjs +251 -0
- package/esm2022/lib/components/service-annotations-form/annotations.component.mjs +681 -0
- package/esm2022/lib/components/service-annotations-form-item/annotations.component.mjs +106 -0
- package/esm2022/lib/components/service-form/component.mjs +307 -0
- package/esm2022/lib/components/service-form/fieldset/component.mjs +407 -0
- package/esm2022/lib/directives/subnet-validator.directive.mjs +111 -0
- package/esm2022/lib/services/alb-api.service.mjs +48 -0
- package/esm2022/lib/services/certificate-api.service.mjs +111 -0
- package/esm2022/lib/services/network-util.service.mjs +116 -0
- package/esm2022/lib/types/alb-exports.mjs +14 -0
- package/esm2022/lib/types/k8s-exports.mjs +13 -0
- package/esm2022/lib/types/resource-definition.mjs +16 -0
- package/esm2022/lib/utils/alb-exports.mjs +108 -0
- package/esm2022/lib/utils/alb-internals.mjs +2 -0
- package/esm2022/lib/utils/cidr-exports.mjs +359 -0
- package/esm2022/lib/utils/cluster-exports.mjs +18 -0
- package/esm2022/lib/utils/service-exports.mjs +58 -0
- package/esm2022/lib/utils/service-internals.mjs +7 -0
- package/esm2022/lib/utils/subnet-exports.mjs +18 -0
- package/index.d.ts +18 -0
- package/lib/components/certificate-status/component.d.ts +17 -0
- package/lib/components/fixed-ip/component.d.ts +67 -0
- package/lib/components/loadbalancer-spec-form/component.d.ts +34 -0
- package/lib/components/service-annotations-form/annotations.component.d.ts +74 -0
- package/lib/components/service-annotations-form-item/annotations.component.d.ts +14 -0
- package/lib/components/service-form/component.d.ts +56 -0
- package/lib/components/service-form/fieldset/component.d.ts +46 -0
- package/lib/directives/subnet-validator.directive.d.ts +34 -0
- package/lib/services/alb-api.service.d.ts +16 -0
- package/lib/services/certificate-api.service.d.ts +38 -0
- package/lib/services/network-util.service.d.ts +21 -0
- package/lib/types/alb-exports.d.ts +29 -0
- package/lib/types/k8s-exports.d.ts +130 -0
- package/lib/types/resource-definition.d.ts +25 -0
- package/lib/utils/alb-exports.d.ts +16 -0
- package/lib/utils/alb-internals.d.ts +10 -0
- package/lib/utils/cidr-exports.d.ts +85 -0
- package/lib/utils/cluster-exports.d.ts +14 -0
- package/lib/utils/service-exports.d.ts +18 -0
- package/lib/utils/service-internals.d.ts +2 -0
- package/lib/utils/subnet-exports.d.ts +20 -0
- package/package.json +31 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DaemonSet, Deployment, K8sUtilService, Service, StatefulSet } from '@alauda-fe/common';
|
|
2
|
+
import { NetworkMode } from './cidr-exports';
|
|
3
|
+
interface Workloads {
|
|
4
|
+
Deployment?: Deployment[];
|
|
5
|
+
DaemonSet?: DaemonSet[];
|
|
6
|
+
StatefulSet?: StatefulSet[];
|
|
7
|
+
}
|
|
8
|
+
export declare function getDefaultService(namespace: string, name?: string): Service;
|
|
9
|
+
export declare function getResourceReference(this: {
|
|
10
|
+
k8sUtil: K8sUtilService;
|
|
11
|
+
}, service: Service, self?: {
|
|
12
|
+
k8sUtil: K8sUtilService;
|
|
13
|
+
}): {
|
|
14
|
+
refType: keyof Workloads | "VirtualMachine" | "VirtualMachinePool";
|
|
15
|
+
refName: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function completeDefaultServiceName(resource: Service, networkMode: NetworkMode): Service;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const DOMAIN_REF = "domain-ref";
|
|
2
|
+
export declare const DOMAIN_NAME_REF = "domain-name-ref";
|
|
3
|
+
export declare const SECRET_REF = "secret-ref";
|
|
4
|
+
export declare const KUBE_OVN_ANNOTATION_PREFIX = "ovn.kubernetes.io";
|
|
5
|
+
export declare const CALICO_ANNOTATION_PREFIX = "cni.projectcalico.org";
|
|
6
|
+
export declare enum ClusterNetworkType {
|
|
7
|
+
KUBE_OVN = "cni-kube-ovn",
|
|
8
|
+
CALICO = "cni-calico",
|
|
9
|
+
DEFAULT = "default"
|
|
10
|
+
}
|
|
11
|
+
export declare enum ConflictCidrType {
|
|
12
|
+
EXIST_SUBNET = "conflict_subnet",
|
|
13
|
+
HOST_NETWORK = "conflict_host",
|
|
14
|
+
SERVICE_CIDR = "conflict_service_cidr"
|
|
15
|
+
}
|
|
16
|
+
export interface ConflictCidrBlock {
|
|
17
|
+
cidr: string;
|
|
18
|
+
type: ConflictCidrType;
|
|
19
|
+
cluster?: string;
|
|
20
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alauda-fe/network",
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@alauda-fe/common": "^1.0.0",
|
|
7
|
+
"@alauda/ui": "^7.2.0",
|
|
8
|
+
"@angular/common": "^16.2.3",
|
|
9
|
+
"@angular/core": "^16.2.3",
|
|
10
|
+
"@angular/forms": "^16.2.3",
|
|
11
|
+
"ip-address": "^8.1.0",
|
|
12
|
+
"lodash-es": "^4.17.21",
|
|
13
|
+
"rxjs": "^7.8.1"
|
|
14
|
+
},
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"module": "esm2022/alauda-fe-network.mjs",
|
|
17
|
+
"typings": "index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
"./package.json": {
|
|
20
|
+
"default": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
".": {
|
|
23
|
+
"esm2022": "./esm2022/alauda-fe-network.mjs",
|
|
24
|
+
"esm": "./esm2022/alauda-fe-network.mjs",
|
|
25
|
+
"default": "./esm2022/alauda-fe-network.mjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"tslib": "^2.6.2"
|
|
30
|
+
}
|
|
31
|
+
}
|