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 Dec 19, 2024
1 parent 6663338 commit bd13c6a
Show file tree
Hide file tree
Showing 62 changed files with 8,097 additions and 2,980 deletions.
284 changes: 284 additions & 0 deletions gen/models/V1EphemeralContainer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
/**
* 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 { V1ContainerPort } from '../models/V1ContainerPort';
import { V1ContainerResizePolicy } from '../models/V1ContainerResizePolicy';
import { V1EnvFromSource } from '../models/V1EnvFromSource';
import { V1EnvVar } from '../models/V1EnvVar';
import { V1Lifecycle } from '../models/V1Lifecycle';
import { V1Probe } from '../models/V1Probe';
import { V1ResourceRequirements } from '../models/V1ResourceRequirements';
import { V1SecurityContext } from '../models/V1SecurityContext';
import { V1VolumeDevice } from '../models/V1VolumeDevice';
import { V1VolumeMount } from '../models/V1VolumeMount';


/**
* An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.
*/
export class V1EphemeralContainer {
/**
* Arguments to the entrypoint. The image\'s CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container\'s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
*/
'args'?: Array<string>;
/**
* Entrypoint array. Not executed within a shell. The image\'s ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container\'s environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
*/
'command'?: Array<string>;
/**
* List of environment variables to set in the container. Cannot be updated.
*/
'env'?: Array<V1EnvVar>;
/**
* List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.
*/
'envFrom'?: Array<V1EnvFromSource>;
/**
* Container image name. More info: https://kubernetes.io/docs/concepts/containers/images
*/
'image'?: string;
/**
* Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn\'t present on disk. Container will fail if the image isn\'t present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn\'t present
*/
'imagePullPolicy'?: V1EphemeralContainerImagePullPolicyEnum;
'lifecycle'?: V1Lifecycle;
'livenessProbe'?: V1Probe;
/**
* Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.
*/
'name': string;
/**
* Ports are not allowed for ephemeral containers.
*/
'ports'?: Array<V1ContainerPort>;
'readinessProbe'?: V1Probe;
/**
* Resources resize policy for the container.
*/
'resizePolicy'?: Array<V1ContainerResizePolicy>;
'resources'?: V1ResourceRequirements;
/**
* Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers.
*/
'restartPolicy'?: string;
'securityContext'?: V1SecurityContext;
'startupProbe'?: V1Probe;
/**
* Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.
*/
'stdin'?: boolean;
/**
* Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false
*/
'stdinOnce'?: boolean;
/**
* If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.
*/
'targetContainerName'?: string;
/**
* Optional: Path at which the file to which the container\'s termination message will be written is mounted into the container\'s filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.
*/
'terminationMessagePath'?: string;
/**
* Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. Possible enum values: - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents. - `\"File\"` is the default behavior and will set the container status message to the contents of the container\'s terminationMessagePath when the container exits.
*/
'terminationMessagePolicy'?: V1EphemeralContainerTerminationMessagePolicyEnum;
/**
* Whether this container should allocate a TTY for itself, also requires \'stdin\' to be true. Default is false.
*/
'tty'?: boolean;
/**
* volumeDevices is the list of block devices to be used by the container.
*/
'volumeDevices'?: Array<V1VolumeDevice>;
/**
* Pod volumes to mount into the container\'s filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.
*/
'volumeMounts'?: Array<V1VolumeMount>;
/**
* Container\'s working directory. If not specified, the container runtime\'s default will be used, which might be configured in the container image. Cannot be updated.
*/
'workingDir'?: string;

static readonly discriminator: string | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "args",
"baseName": "args",
"type": "Array<string>",
"format": ""
},
{
"name": "command",
"baseName": "command",
"type": "Array<string>",
"format": ""
},
{
"name": "env",
"baseName": "env",
"type": "Array<V1EnvVar>",
"format": ""
},
{
"name": "envFrom",
"baseName": "envFrom",
"type": "Array<V1EnvFromSource>",
"format": ""
},
{
"name": "image",
"baseName": "image",
"type": "string",
"format": ""
},
{
"name": "imagePullPolicy",
"baseName": "imagePullPolicy",
"type": "V1EphemeralContainerImagePullPolicyEnum",
"format": ""
},
{
"name": "lifecycle",
"baseName": "lifecycle",
"type": "V1Lifecycle",
"format": ""
},
{
"name": "livenessProbe",
"baseName": "livenessProbe",
"type": "V1Probe",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "ports",
"baseName": "ports",
"type": "Array<V1ContainerPort>",
"format": ""
},
{
"name": "readinessProbe",
"baseName": "readinessProbe",
"type": "V1Probe",
"format": ""
},
{
"name": "resizePolicy",
"baseName": "resizePolicy",
"type": "Array<V1ContainerResizePolicy>",
"format": ""
},
{
"name": "resources",
"baseName": "resources",
"type": "V1ResourceRequirements",
"format": ""
},
{
"name": "restartPolicy",
"baseName": "restartPolicy",
"type": "string",
"format": ""
},
{
"name": "securityContext",
"baseName": "securityContext",
"type": "V1SecurityContext",
"format": ""
},
{
"name": "startupProbe",
"baseName": "startupProbe",
"type": "V1Probe",
"format": ""
},
{
"name": "stdin",
"baseName": "stdin",
"type": "boolean",
"format": ""
},
{
"name": "stdinOnce",
"baseName": "stdinOnce",
"type": "boolean",
"format": ""
},
{
"name": "targetContainerName",
"baseName": "targetContainerName",
"type": "string",
"format": ""
},
{
"name": "terminationMessagePath",
"baseName": "terminationMessagePath",
"type": "string",
"format": ""
},
{
"name": "terminationMessagePolicy",
"baseName": "terminationMessagePolicy",
"type": "V1EphemeralContainerTerminationMessagePolicyEnum",
"format": ""
},
{
"name": "tty",
"baseName": "tty",
"type": "boolean",
"format": ""
},
{
"name": "volumeDevices",
"baseName": "volumeDevices",
"type": "Array<V1VolumeDevice>",
"format": ""
},
{
"name": "volumeMounts",
"baseName": "volumeMounts",
"type": "Array<V1VolumeMount>",
"format": ""
},
{
"name": "workingDir",
"baseName": "workingDir",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return V1EphemeralContainer.attributeTypeMap;
}

public constructor() {
}
}


export enum V1EphemeralContainerImagePullPolicyEnum {
Always = 'Always',
IfNotPresent = 'IfNotPresent',
Never = 'Never'
}
export enum V1EphemeralContainerTerminationMessagePolicyEnum {
FallbackToLogsOnError = 'FallbackToLogsOnError',
File = 'File'
}

41 changes: 41 additions & 0 deletions gen/models/V1HostIP.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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.
*/



/**
* HostIP represents a single IP address allocated to the host.
*/
export class V1HostIP {
/**
* IP is the IP address assigned to the host
*/
'ip': string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return V1HostIP.attributeTypeMap;
}

public constructor() {
}
}

58 changes: 58 additions & 0 deletions gen/models/V1ModifyVolumeStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* 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.
*/



/**
* ModifyVolumeStatus represents the status object of ControllerModifyVolume operation
*/
export class V1ModifyVolumeStatus {
/**
* status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. Possible enum values: - `\"InProgress\"` InProgress indicates that the volume is being modified - `\"Infeasible\"` Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified - `\"Pending\"` Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing
*/
'status': V1ModifyVolumeStatusStatusEnum;
/**
* targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled
*/
'targetVolumeAttributesClassName'?: string;

static readonly discriminator: string | undefined = undefined;

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

static getAttributeTypeMap() {
return V1ModifyVolumeStatus.attributeTypeMap;
}

public constructor() {
}
}


export enum V1ModifyVolumeStatusStatusEnum {
InProgress = 'InProgress',
Infeasible = 'Infeasible',
Pending = 'Pending'
}

Loading

0 comments on commit bd13c6a

Please sign in to comment.