@alicloud/pai-dlc20201203 1.6.14 → 1.6.15
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as $dara from '@darabonba/typescript';
|
|
2
2
|
import { ContainerSpec } from "./ContainerSpec";
|
|
3
3
|
import { Lifecycle } from "./Lifecycle";
|
|
4
|
+
import { SecurityContext } from "./SecurityContext";
|
|
4
5
|
export declare class ExtraPodSpec extends $dara.Model {
|
|
5
6
|
/**
|
|
6
7
|
* @remarks
|
|
@@ -12,6 +13,7 @@ export declare class ExtraPodSpec extends $dara.Model {
|
|
|
12
13
|
* The lifecycle object.
|
|
13
14
|
*/
|
|
14
15
|
lifecycle?: Lifecycle;
|
|
16
|
+
mainContainerSecurityContext?: SecurityContext;
|
|
15
17
|
/**
|
|
16
18
|
* @remarks
|
|
17
19
|
* The pod annotations.
|
|
@@ -38,11 +38,13 @@ exports.ExtraPodSpec = void 0;
|
|
|
38
38
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
39
39
|
const ContainerSpec_1 = require("./ContainerSpec");
|
|
40
40
|
const Lifecycle_1 = require("./Lifecycle");
|
|
41
|
+
const SecurityContext_1 = require("./SecurityContext");
|
|
41
42
|
class ExtraPodSpec extends $dara.Model {
|
|
42
43
|
static names() {
|
|
43
44
|
return {
|
|
44
45
|
initContainers: 'InitContainers',
|
|
45
46
|
lifecycle: 'Lifecycle',
|
|
47
|
+
mainContainerSecurityContext: 'MainContainerSecurityContext',
|
|
46
48
|
podAnnotations: 'PodAnnotations',
|
|
47
49
|
podLabels: 'PodLabels',
|
|
48
50
|
sharedVolumeMountPaths: 'SharedVolumeMountPaths',
|
|
@@ -53,6 +55,7 @@ class ExtraPodSpec extends $dara.Model {
|
|
|
53
55
|
return {
|
|
54
56
|
initContainers: { 'type': 'array', 'itemType': ContainerSpec_1.ContainerSpec },
|
|
55
57
|
lifecycle: Lifecycle_1.Lifecycle,
|
|
58
|
+
mainContainerSecurityContext: SecurityContext_1.SecurityContext,
|
|
56
59
|
podAnnotations: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
57
60
|
podLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
58
61
|
sharedVolumeMountPaths: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -66,6 +69,9 @@ class ExtraPodSpec extends $dara.Model {
|
|
|
66
69
|
if (this.lifecycle && typeof this.lifecycle.validate === 'function') {
|
|
67
70
|
this.lifecycle.validate();
|
|
68
71
|
}
|
|
72
|
+
if (this.mainContainerSecurityContext && typeof this.mainContainerSecurityContext.validate === 'function') {
|
|
73
|
+
this.mainContainerSecurityContext.validate();
|
|
74
|
+
}
|
|
69
75
|
if (this.podAnnotations) {
|
|
70
76
|
$dara.Model.validateMap(this.podAnnotations);
|
|
71
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtraPodSpec.js","sourceRoot":"","sources":["../../src/models/ExtraPodSpec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mDAAgD;AAChD,2CAAwC;
|
|
1
|
+
{"version":3,"file":"ExtraPodSpec.js","sourceRoot":"","sources":["../../src/models/ExtraPodSpec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,mDAAgD;AAChD,2CAAwC;AACxC,uDAAoD;AAGpD,MAAa,YAAa,SAAQ,KAAK,CAAC,KAAK;IAoC3C,MAAM,CAAC,KAAK;QACV,OAAO;YACL,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;YAChC,SAAS,EAAE,WAAW;YACtB,sBAAsB,EAAE,wBAAwB;YAChD,iBAAiB,EA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C;YAClB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1C,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,CAAC,EAAE,CAAC;YAC9C,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACzD,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAxFD,oCAwFC"}
|
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
import { ContainerSpec } from "./ContainerSpec";
|
|
4
4
|
import { Lifecycle } from "./Lifecycle";
|
|
5
|
+
import { SecurityContext } from "./SecurityContext";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export class ExtraPodSpec extends $dara.Model {
|
|
@@ -15,6 +16,7 @@ export class ExtraPodSpec extends $dara.Model {
|
|
|
15
16
|
* The lifecycle object.
|
|
16
17
|
*/
|
|
17
18
|
lifecycle?: Lifecycle;
|
|
19
|
+
mainContainerSecurityContext?: SecurityContext;
|
|
18
20
|
/**
|
|
19
21
|
* @remarks
|
|
20
22
|
* The pod annotations.
|
|
@@ -43,6 +45,7 @@ export class ExtraPodSpec extends $dara.Model {
|
|
|
43
45
|
return {
|
|
44
46
|
initContainers: 'InitContainers',
|
|
45
47
|
lifecycle: 'Lifecycle',
|
|
48
|
+
mainContainerSecurityContext: 'MainContainerSecurityContext',
|
|
46
49
|
podAnnotations: 'PodAnnotations',
|
|
47
50
|
podLabels: 'PodLabels',
|
|
48
51
|
sharedVolumeMountPaths: 'SharedVolumeMountPaths',
|
|
@@ -54,6 +57,7 @@ export class ExtraPodSpec extends $dara.Model {
|
|
|
54
57
|
return {
|
|
55
58
|
initContainers: { 'type': 'array', 'itemType': ContainerSpec },
|
|
56
59
|
lifecycle: Lifecycle,
|
|
60
|
+
mainContainerSecurityContext: SecurityContext,
|
|
57
61
|
podAnnotations: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
58
62
|
podLabels: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
59
63
|
sharedVolumeMountPaths: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -68,6 +72,9 @@ export class ExtraPodSpec extends $dara.Model {
|
|
|
68
72
|
if(this.lifecycle && typeof (this.lifecycle as any).validate === 'function') {
|
|
69
73
|
(this.lifecycle as any).validate();
|
|
70
74
|
}
|
|
75
|
+
if(this.mainContainerSecurityContext && typeof (this.mainContainerSecurityContext as any).validate === 'function') {
|
|
76
|
+
(this.mainContainerSecurityContext as any).validate();
|
|
77
|
+
}
|
|
71
78
|
if(this.podAnnotations) {
|
|
72
79
|
$dara.Model.validateMap(this.podAnnotations);
|
|
73
80
|
}
|