Skip to content

Commit 58960a4

Browse files
committed
[skip ci] repo-sync
1 parent 39ea2a8 commit 58960a4

File tree

4 files changed

+484
-199
lines changed

4 files changed

+484
-199
lines changed

gen/models/V1PodSecurityContext.ts

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
import { V1AppArmorProfile } from '../models/V1AppArmorProfile';
14+
import { V1SELinuxOptions } from '../models/V1SELinuxOptions';
15+
import { V1SeccompProfile } from '../models/V1SeccompProfile';
16+
import { V1Sysctl } from '../models/V1Sysctl';
17+
import { V1WindowsSecurityContextOptions } from '../models/V1WindowsSecurityContextOptions';
18+
19+
20+
/**
21+
* PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
22+
*/
23+
export class V1PodSecurityContext {
24+
'appArmorProfile'?: V1AppArmorProfile;
25+
/**
26+
* A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR\'d with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.
27+
*/
28+
'fsGroup'?: number;
29+
/**
30+
* fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows. Possible enum values: - `\"Always\"` indicates that volume\'s ownership and permissions should always be changed whenever volume is mounted inside a Pod. This the default behavior. - `\"OnRootMismatch\"` indicates that volume\'s ownership and permissions will be changed only when permission and ownership of root directory does not match with expected permissions on the volume. This can help shorten the time it takes to change ownership and permissions of a volume.
31+
*/
32+
'fsGroupChangePolicy'?: V1PodSecurityContextFsGroupChangePolicyEnum;
33+
/**
34+
* The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
35+
*/
36+
'runAsGroup'?: number;
37+
/**
38+
* Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
39+
*/
40+
'runAsNonRoot'?: boolean;
41+
/**
42+
* The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.
43+
*/
44+
'runAsUser'?: number;
45+
'seLinuxOptions'?: V1SELinuxOptions;
46+
'seccompProfile'?: V1SeccompProfile;
47+
/**
48+
* A list of groups applied to the first process run in each container, in addition to the container\'s primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.
49+
*/
50+
'supplementalGroups'?: Array<number>;
51+
/**
52+
* Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.
53+
*/
54+
'sysctls'?: Array<V1Sysctl>;
55+
'windowsOptions'?: V1WindowsSecurityContextOptions;
56+
57+
static readonly discriminator: string | undefined = undefined;
58+
59+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
60+
{
61+
"name": "appArmorProfile",
62+
"baseName": "appArmorProfile",
63+
"type": "V1AppArmorProfile",
64+
"format": ""
65+
},
66+
{
67+
"name": "fsGroup",
68+
"baseName": "fsGroup",
69+
"type": "number",
70+
"format": "int64"
71+
},
72+
{
73+
"name": "fsGroupChangePolicy",
74+
"baseName": "fsGroupChangePolicy",
75+
"type": "V1PodSecurityContextFsGroupChangePolicyEnum",
76+
"format": ""
77+
},
78+
{
79+
"name": "runAsGroup",
80+
"baseName": "runAsGroup",
81+
"type": "number",
82+
"format": "int64"
83+
},
84+
{
85+
"name": "runAsNonRoot",
86+
"baseName": "runAsNonRoot",
87+
"type": "boolean",
88+
"format": ""
89+
},
90+
{
91+
"name": "runAsUser",
92+
"baseName": "runAsUser",
93+
"type": "number",
94+
"format": "int64"
95+
},
96+
{
97+
"name": "seLinuxOptions",
98+
"baseName": "seLinuxOptions",
99+
"type": "V1SELinuxOptions",
100+
"format": ""
101+
},
102+
{
103+
"name": "seccompProfile",
104+
"baseName": "seccompProfile",
105+
"type": "V1SeccompProfile",
106+
"format": ""
107+
},
108+
{
109+
"name": "supplementalGroups",
110+
"baseName": "supplementalGroups",
111+
"type": "Array<number>",
112+
"format": "int64"
113+
},
114+
{
115+
"name": "sysctls",
116+
"baseName": "sysctls",
117+
"type": "Array<V1Sysctl>",
118+
"format": ""
119+
},
120+
{
121+
"name": "windowsOptions",
122+
"baseName": "windowsOptions",
123+
"type": "V1WindowsSecurityContextOptions",
124+
"format": ""
125+
} ];
126+
127+
static getAttributeTypeMap() {
128+
return V1PodSecurityContext.attributeTypeMap;
129+
}
130+
131+
public constructor() {
132+
}
133+
}
134+
135+
136+
export enum V1PodSecurityContextFsGroupChangePolicyEnum {
137+
Always = 'Always',
138+
OnRootMismatch = 'OnRootMismatch'
139+
}
140+

gen/models/V1Sysctl.ts

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* Api
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: master
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
15+
/**
16+
* Sysctl defines a kernel parameter to be set
17+
*/
18+
export class V1Sysctl {
19+
/**
20+
* Name of a property to set
21+
*/
22+
'name': string;
23+
/**
24+
* Value of a property to set
25+
*/
26+
'value': string;
27+
28+
static readonly discriminator: string | undefined = undefined;
29+
30+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
31+
{
32+
"name": "name",
33+
"baseName": "name",
34+
"type": "string",
35+
"format": ""
36+
},
37+
{
38+
"name": "value",
39+
"baseName": "value",
40+
"type": "string",
41+
"format": ""
42+
} ];
43+
44+
static getAttributeTypeMap() {
45+
return V1Sysctl.attributeTypeMap;
46+
}
47+
48+
public constructor() {
49+
}
50+
}
51+

gen/models/clusterV1Bash.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Do not edit the class manually.
1111
*/
1212

13+
import { V1PodSecurityContext } from '../models/V1PodSecurityContext';
14+
import { V1SecurityContext } from '../models/V1SecurityContext';
1315

1416

1517
export class ClusterV1Bash {
@@ -21,10 +23,12 @@ export class ClusterV1Bash {
2123
* Image is the image to use for this app
2224
*/
2325
'image'?: string;
26+
'podSecurityContext'?: V1PodSecurityContext;
2427
/**
2528
* Script is the script to execute.
2629
*/
2730
'script'?: string;
31+
'securityContext'?: V1SecurityContext;
2832

2933
static readonly discriminator: string | undefined = undefined;
3034

@@ -41,11 +45,23 @@ export class ClusterV1Bash {
4145
"type": "string",
4246
"format": ""
4347
},
48+
{
49+
"name": "podSecurityContext",
50+
"baseName": "podSecurityContext",
51+
"type": "V1PodSecurityContext",
52+
"format": ""
53+
},
4454
{
4555
"name": "script",
4656
"baseName": "script",
4757
"type": "string",
4858
"format": ""
59+
},
60+
{
61+
"name": "securityContext",
62+
"baseName": "securityContext",
63+
"type": "V1SecurityContext",
64+
"format": ""
4965
} ];
5066

5167
static getAttributeTypeMap() {

0 commit comments

Comments
 (0)