Skip to content

Commit

Permalink
[skip ci] repo-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
loft-bot committed Sep 3, 2024
1 parent 39ea2a8 commit b835376
Show file tree
Hide file tree
Showing 4 changed files with 484 additions and 199 deletions.
140 changes: 140 additions & 0 deletions gen/models/V1PodSecurityContext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/**
* Api
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: master
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { V1AppArmorProfile } from '../models/V1AppArmorProfile';
import { V1SELinuxOptions } from '../models/V1SELinuxOptions';
import { V1SeccompProfile } from '../models/V1SeccompProfile';
import { V1Sysctl } from '../models/V1Sysctl';
import { V1WindowsSecurityContextOptions } from '../models/V1WindowsSecurityContextOptions';


/**
* 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.
*/
export class V1PodSecurityContext {
'appArmorProfile'?: V1AppArmorProfile;
/**
* 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.
*/
'fsGroup'?: number;
/**
* 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.
*/
'fsGroupChangePolicy'?: V1PodSecurityContextFsGroupChangePolicyEnum;
/**
* 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.
*/
'runAsGroup'?: number;
/**
* 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.
*/
'runAsNonRoot'?: boolean;
/**
* 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.
*/
'runAsUser'?: number;
'seLinuxOptions'?: V1SELinuxOptions;
'seccompProfile'?: V1SeccompProfile;
/**
* 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.
*/
'supplementalGroups'?: Array<number>;
/**
* 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.
*/
'sysctls'?: Array<V1Sysctl>;
'windowsOptions'?: V1WindowsSecurityContextOptions;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "appArmorProfile",
"baseName": "appArmorProfile",
"type": "V1AppArmorProfile",
"format": ""
},
{
"name": "fsGroup",
"baseName": "fsGroup",
"type": "number",
"format": "int64"
},
{
"name": "fsGroupChangePolicy",
"baseName": "fsGroupChangePolicy",
"type": "V1PodSecurityContextFsGroupChangePolicyEnum",
"format": ""
},
{
"name": "runAsGroup",
"baseName": "runAsGroup",
"type": "number",
"format": "int64"
},
{
"name": "runAsNonRoot",
"baseName": "runAsNonRoot",
"type": "boolean",
"format": ""
},
{
"name": "runAsUser",
"baseName": "runAsUser",
"type": "number",
"format": "int64"
},
{
"name": "seLinuxOptions",
"baseName": "seLinuxOptions",
"type": "V1SELinuxOptions",
"format": ""
},
{
"name": "seccompProfile",
"baseName": "seccompProfile",
"type": "V1SeccompProfile",
"format": ""
},
{
"name": "supplementalGroups",
"baseName": "supplementalGroups",
"type": "Array<number>",
"format": "int64"
},
{
"name": "sysctls",
"baseName": "sysctls",
"type": "Array<V1Sysctl>",
"format": ""
},
{
"name": "windowsOptions",
"baseName": "windowsOptions",
"type": "V1WindowsSecurityContextOptions",
"format": ""
} ];

static getAttributeTypeMap() {
return V1PodSecurityContext.attributeTypeMap;
}

public constructor() {
}
}


export enum V1PodSecurityContextFsGroupChangePolicyEnum {
Always = 'Always',
OnRootMismatch = 'OnRootMismatch'
}

51 changes: 51 additions & 0 deletions gen/models/V1Sysctl.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* Api
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: master
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/



/**
* Sysctl defines a kernel parameter to be set
*/
export class V1Sysctl {
/**
* Name of a property to set
*/
'name': string;
/**
* Value of a property to set
*/
'value': string;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "value",
"baseName": "value",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return V1Sysctl.attributeTypeMap;
}

public constructor() {
}
}

16 changes: 16 additions & 0 deletions gen/models/clusterV1Bash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* Do not edit the class manually.
*/

import { V1PodSecurityContext } from '../models/V1PodSecurityContext';
import { V1SecurityContext } from '../models/V1SecurityContext';


export class ClusterV1Bash {
Expand All @@ -21,10 +23,12 @@ export class ClusterV1Bash {
* Image is the image to use for this app
*/
'image'?: string;
'podSecurityContext'?: V1PodSecurityContext;
/**
* Script is the script to execute.
*/
'script'?: string;
'securityContext'?: V1SecurityContext;

static readonly discriminator: string | undefined = undefined;

Expand All @@ -41,11 +45,23 @@ export class ClusterV1Bash {
"type": "string",
"format": ""
},
{
"name": "podSecurityContext",
"baseName": "podSecurityContext",
"type": "V1PodSecurityContext",
"format": ""
},
{
"name": "script",
"baseName": "script",
"type": "string",
"format": ""
},
{
"name": "securityContext",
"baseName": "securityContext",
"type": "V1SecurityContext",
"format": ""
} ];

static getAttributeTypeMap() {
Expand Down
Loading

0 comments on commit b835376

Please sign in to comment.