diff --git a/docs/executor_swagger.md b/docs/executor_swagger.md index f2d849f050ed..587a9a7a1a67 100644 --- a/docs/executor_swagger.md +++ b/docs/executor_swagger.md @@ -81,9 +81,9 @@ ownership management and SELinux relabeling. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional | | -| partition | int32 (formatted integer)| `int32` | | | partition is the partition in the volume that you want to mount.
If omitted, the default is to mount by volume name.
Examples: For volume /dev/sda1, you specify the partition as "1".
Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
+optional | | -| readOnly | boolean| `bool` | | | readOnly value true will force the readOnly setting in VolumeMounts.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
+optional | | +| fsType | string| `string` | | | fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
TODO: how do we prevent errors in the filesystem from compromising the machine | | +| partition | int32 (formatted integer)| `int32` | | | partition is the partition in the volume that you want to mount.
If omitted, the default is to mount by volume name.
Examples: For volume /dev/sda1, you specify the partition as "1".
Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). | | +| readOnly | boolean| `bool` | | | readOnly value true will force the readOnly setting in VolumeMounts.
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | | | volumeID | string| `string` | | | volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).
More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | | @@ -108,2423 +108,11 @@ ownership management and SELinux relabeling. ### Amount -> +kubebuilder:validation:Type=number -[interface{}](#interface) - -### AnyString - - -> It will unmarshall int64, int32, float64, float32, boolean, a plain string and represents it as string. -It will marshall back to string - marshalling is not symmetric. - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| AnyString | string| string | | It will unmarshall int64, int32, float64, float32, boolean, a plain string and represents it as string.
It will marshall back to string - marshalling is not symmetric. | | - - - -### AppArmorProfile - - -> +union - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| localhostProfile | string| `string` | | | localhostProfile indicates a profile loaded on the node that should be used.
The profile must be preconfigured on the node to work.
Must match the loaded name of the profile.
Must be set if and only if type is "Localhost".
+optional | | -| type | [AppArmorProfileType](#app-armor-profile-type)| `AppArmorProfileType` | | | | | - - - -### AppArmorProfileType - - -> +enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| AppArmorProfileType | string| string | | +enum | | - - - -### ArchiveStrategy - - -> ArchiveStrategy describes how to archive files/directory when saving artifacts - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| none | [NoneStrategy](#none-strategy)| `NoneStrategy` | | | | | -| tar | [TarStrategy](#tar-strategy)| `TarStrategy` | | | | | -| zip | [ZipStrategy](#zip-strategy)| `ZipStrategy` | | | | | - - - -### Arguments - - -> Arguments to a template - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| artifacts | [Artifacts](#artifacts)| `Artifacts` | | | | | -| parameters | [][Parameter](#parameter)| `[]*Parameter` | | | Parameters is the list of parameters to pass to the template or workflow
+patchStrategy=merge
+patchMergeKey=name | | - - - -### Artifact - - -> Artifact indicates an artifact to place at a specified path - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| archive | [ArchiveStrategy](#archive-strategy)| `ArchiveStrategy` | | | | | -| archiveLogs | boolean| `bool` | | | ArchiveLogs indicates if the container logs should be archived | | -| artifactGC | [ArtifactGC](#artifact-g-c)| `ArtifactGC` | | | | | -| artifactory | [ArtifactoryArtifact](#artifactory-artifact)| `ArtifactoryArtifact` | | | | | -| azure | [AzureArtifact](#azure-artifact)| `AzureArtifact` | | | | | -| deleted | boolean| `bool` | | | Has this been deleted? | | -| from | string| `string` | | | From allows an artifact to reference an artifact from a previous step | | -| fromExpression | string| `string` | | | FromExpression, if defined, is evaluated to specify the value for the artifact | | -| gcs | [GCSArtifact](#g-c-s-artifact)| `GCSArtifact` | | | | | -| git | [GitArtifact](#git-artifact)| `GitArtifact` | | | | | -| globalName | string| `string` | | | GlobalName exports an output artifact to the global scope, making it available as
'{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts | | -| hdfs | [HDFSArtifact](#h-d-f-s-artifact)| `HDFSArtifact` | | | | | -| http | [HTTPArtifact](#http-artifact)| `HTTPArtifact` | | | | | -| mode | int32 (formatted integer)| `int32` | | | mode bits to use on this file, must be a value between 0 and 0777
set when loading input artifacts. | | -| name | string| `string` | | | name of the artifact. must be unique within a template's inputs/outputs. | | -| optional | boolean| `bool` | | | Make Artifacts optional, if Artifacts doesn't generate or exist | | -| oss | [OSSArtifact](#o-s-s-artifact)| `OSSArtifact` | | | | | -| path | string| `string` | | | Path is the container path to the artifact | | -| raw | [RawArtifact](#raw-artifact)| `RawArtifact` | | | | | -| recurseMode | boolean| `bool` | | | If mode is set, apply the permission recursively into the artifact if it is a folder | | -| s3 | [S3Artifact](#s3-artifact)| `S3Artifact` | | | | | -| subPath | string| `string` | | | SubPath allows an artifact to be sourced from a subpath within the specified source | | - - - -### ArtifactGC - - -> ArtifactGC describes how to delete artifacts from completed Workflows - this is embedded into the WorkflowLevelArtifactGC, and also used for individual Artifacts to override that as needed - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| podMetadata | [Metadata](#metadata)| `Metadata` | | | | | -| serviceAccountName | string| `string` | | | ServiceAccountName is an optional field for specifying the Service Account that should be assigned to the Pod doing the deletion | | -| strategy | [ArtifactGCStrategy](#artifact-g-c-strategy)| `ArtifactGCStrategy` | | | | | - - - -### ArtifactGCStrategy - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| ArtifactGCStrategy | string| string | | | | - - - -### ArtifactLocation - - -> It is used as single artifact in the context of inputs/outputs (e.g. outputs.artifacts.artname). -It is also used to describe the location of multiple artifacts such as the archive location -of a single workflow step, which the executor will use as a default location to store its files. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| archiveLogs | boolean| `bool` | | | ArchiveLogs indicates if the container logs should be archived | | -| artifactory | [ArtifactoryArtifact](#artifactory-artifact)| `ArtifactoryArtifact` | | | | | -| azure | [AzureArtifact](#azure-artifact)| `AzureArtifact` | | | | | -| gcs | [GCSArtifact](#g-c-s-artifact)| `GCSArtifact` | | | | | -| git | [GitArtifact](#git-artifact)| `GitArtifact` | | | | | -| hdfs | [HDFSArtifact](#h-d-f-s-artifact)| `HDFSArtifact` | | | | | -| http | [HTTPArtifact](#http-artifact)| `HTTPArtifact` | | | | | -| oss | [OSSArtifact](#o-s-s-artifact)| `OSSArtifact` | | | | | -| raw | [RawArtifact](#raw-artifact)| `RawArtifact` | | | | | -| s3 | [S3Artifact](#s3-artifact)| `S3Artifact` | | | | | - - - -### ArtifactPaths - - -> ArtifactPaths expands a step from a collection of artifacts - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| archive | [ArchiveStrategy](#archive-strategy)| `ArchiveStrategy` | | | | | -| archiveLogs | boolean| `bool` | | | ArchiveLogs indicates if the container logs should be archived | | -| artifactGC | [ArtifactGC](#artifact-g-c)| `ArtifactGC` | | | | | -| artifactory | [ArtifactoryArtifact](#artifactory-artifact)| `ArtifactoryArtifact` | | | | | -| azure | [AzureArtifact](#azure-artifact)| `AzureArtifact` | | | | | -| deleted | boolean| `bool` | | | Has this been deleted? | | -| from | string| `string` | | | From allows an artifact to reference an artifact from a previous step | | -| fromExpression | string| `string` | | | FromExpression, if defined, is evaluated to specify the value for the artifact | | -| gcs | [GCSArtifact](#g-c-s-artifact)| `GCSArtifact` | | | | | -| git | [GitArtifact](#git-artifact)| `GitArtifact` | | | | | -| globalName | string| `string` | | | GlobalName exports an output artifact to the global scope, making it available as
'{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts | | -| hdfs | [HDFSArtifact](#h-d-f-s-artifact)| `HDFSArtifact` | | | | | -| http | [HTTPArtifact](#http-artifact)| `HTTPArtifact` | | | | | -| mode | int32 (formatted integer)| `int32` | | | mode bits to use on this file, must be a value between 0 and 0777
set when loading input artifacts. | | -| name | string| `string` | | | name of the artifact. must be unique within a template's inputs/outputs. | | -| optional | boolean| `bool` | | | Make Artifacts optional, if Artifacts doesn't generate or exist | | -| oss | [OSSArtifact](#o-s-s-artifact)| `OSSArtifact` | | | | | -| path | string| `string` | | | Path is the container path to the artifact | | -| raw | [RawArtifact](#raw-artifact)| `RawArtifact` | | | | | -| recurseMode | boolean| `bool` | | | If mode is set, apply the permission recursively into the artifact if it is a folder | | -| s3 | [S3Artifact](#s3-artifact)| `S3Artifact` | | | | | -| subPath | string| `string` | | | SubPath allows an artifact to be sourced from a subpath within the specified source | | - - - -### ArtifactoryArtifact - - -> ArtifactoryArtifact is the location of an artifactory artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| passwordSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| url | string| `string` | | | URL of the artifact | | -| usernameSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### Artifacts - - - - -[][Artifact](#artifact) - -### AzureArtifact - - -> AzureArtifact is the location of a an Azure Storage artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| accountKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| blob | string| `string` | | | Blob is the blob name (i.e., path) in the container where the artifact resides | | -| container | string| `string` | | | Container is the container where resources will be stored | | -| endpoint | string| `string` | | | Endpoint is the service url associated with an account. It is most likely "https://.blob.core.windows.net" | | -| useSDKCreds | boolean| `bool` | | | UseSDKCreds tells the driver to figure out credentials based on sdk defaults. | | - - - -### AzureDataDiskCachingMode - - -> +enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| AzureDataDiskCachingMode | string| string | | +enum | | - - - -### AzureDataDiskKind - - -> +enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| AzureDataDiskKind | string| string | | +enum | | - - - -### AzureDiskVolumeSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| cachingMode | [AzureDataDiskCachingMode](#azure-data-disk-caching-mode)| `AzureDataDiskCachingMode` | | | | | -| diskName | string| `string` | | | diskName is the Name of the data disk in the blob storage | | -| diskURI | string| `string` | | | diskURI is the URI of data disk in the blob storage | | -| fsType | string| `string` | | | fsType is Filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+optional
+default="ext4" | | -| kind | [AzureDataDiskKind](#azure-data-disk-kind)| `AzureDataDiskKind` | | | | | -| readOnly | boolean| `bool` | | | readOnly Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional
+default=false | | - - - -### AzureFileVolumeSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | -| secretName | string| `string` | | | secretName is the name of secret that contains Azure Storage Account Name and Key | | -| shareName | string| `string` | | | shareName is the azure share Name | | - - - -### Backoff - - -> Backoff is a backoff strategy to use within retryStrategy - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| duration | string| `string` | | | Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") | | -| factor | [IntOrString](#int-or-string)| `IntOrString` | | | | | -| maxDuration | string| `string` | | | MaxDuration is the maximum amount of time allowed for a workflow in the backoff strategy.
It is important to note that if the workflow template includes activeDeadlineSeconds, the pod's deadline is initially set with activeDeadlineSeconds.
However, when the workflow fails, the pod's deadline is then overridden by maxDuration.
This ensures that the workflow does not exceed the specified maximum duration when retries are involved. | | - - - -### BasicAuth - - -> BasicAuth describes the secret selectors required for basic authentication - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| passwordSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| usernameSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### CSIVolumeSource - - -> Represents a source location of a volume to mount, managed by an external CSI driver - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| driver | string| `string` | | | driver is the name of the CSI driver that handles this volume.
Consult with your admin for the correct name as registered in the cluster. | | -| fsType | string| `string` | | | fsType to mount. Ex. "ext4", "xfs", "ntfs".
If not provided, the empty value is passed to the associated CSI driver
which will determine the default filesystem to apply.
+optional | | -| nodePublishSecretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| readOnly | boolean| `bool` | | | readOnly specifies a read-only configuration for the volume.
Defaults to false (read/write).
+optional | | -| volumeAttributes | map of string| `map[string]string` | | | volumeAttributes stores driver-specific properties that are passed to the CSI
driver. Consult your driver's documentation for supported values.
+optional | | - - - -### Cache - - -> Cache is the configuration for the type of cache to be used - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| configMap | [ConfigMapKeySelector](#config-map-key-selector)| `ConfigMapKeySelector` | | | | | - - - -### Capabilities - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| add | [][Capability](#capability)| `[]Capability` | | | Added capabilities
+optional
+listType=atomic | | -| drop | [][Capability](#capability)| `[]Capability` | | | Removed capabilities
+optional
+listType=atomic | | - - - -### Capability - - -> Capability represent POSIX capabilities type - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| Capability | string| string | | Capability represent POSIX capabilities type | | - - - -### CephFSVolumeSource - - -> Represents a Ceph Filesystem mount that lasts the lifetime of a pod -Cephfs volumes do not support ownership management or SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| monitors | []string| `[]string` | | | monitors is Required: Monitors is a collection of Ceph monitors
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+listType=atomic | | -| path | string| `string` | | | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /
+optional | | -| readOnly | boolean| `bool` | | | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional | | -| secretFile | string| `string` | | | secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional | | -| secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| user | string| `string` | | | user is optional: User is the rados user name, default is admin
More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it
+optional | | - - - -### CinderVolumeSource - - -> A Cinder volume must exist before mounting to a container. -The volume must also be in the same region as the kubelet. -Cinder volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md
+optional | | -| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md
+optional | | -| secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| volumeID | string| `string` | | | volumeID used to identify the volume in cinder.
More info: https://examples.k8s.io/mysql-cinder-pd/README.md | | - - - -### ClientCertAuth - - -> ClientCertAuth holds necessary information for client authentication via certificates - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| clientCertSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| clientKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### ClusterTrustBundleProjection - - -> ClusterTrustBundleProjection describes how to select a set of -ClusterTrustBundle objects and project their contents into the pod -filesystem. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| labelSelector | [LabelSelector](#label-selector)| `LabelSelector` | | | | | -| name | string| `string` | | | Select a single ClusterTrustBundle by object name. Mutually-exclusive
with signerName and labelSelector.
+optional | | -| optional | boolean| `bool` | | | If true, don't block pod startup if the referenced ClusterTrustBundle(s)
aren't available. If using name, then the named ClusterTrustBundle is
allowed not to exist. If using signerName, then the combination of
signerName and labelSelector is allowed to match zero
ClusterTrustBundles.
+optional | | -| path | string| `string` | | | Relative path from the volume root to write the bundle. | | -| signerName | string| `string` | | | Select all ClusterTrustBundles that match this signer name.
Mutually-exclusive with name. The contents of all selected
ClusterTrustBundles will be unified and deduplicated.
+optional | | - - - -### ConfigMapEnvSource - - -> The contents of the target ConfigMap's Data field will represent the -key-value pairs as environment variables. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | Specify whether the ConfigMap must be defined
+optional | | - - - -### ConfigMapKeySelector - - -> +structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | The key to select. | | -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | Specify whether the ConfigMap or its key must be defined
+optional | | - - - -### ConfigMapProjection - - -> The contents of the target ConfigMap's Data field will be presented in a -projected volume as files using the keys in the Data field as the file names, -unless the items element is populated with specific mappings of keys to paths. -Note that this is identical to a configmap volume source without the default -mode. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items if unspecified, each key-value pair in the Data field of the referenced
ConfigMap will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the ConfigMap,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
+listType=atomic | | -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | optional specify whether the ConfigMap or its keys must be defined
+optional | | - - - -### ConfigMapVolumeSource - - -> The contents of the target ConfigMap's Data field will be presented in a -volume as files using the keys in the Data field as the file names, unless -the items element is populated with specific mappings of keys to paths. -ConfigMap volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| defaultMode | int32 (formatted integer)| `int32` | | | defaultMode is optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items if unspecified, each key-value pair in the Data field of the referenced
ConfigMap will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the ConfigMap,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
+listType=atomic | | -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | optional specify whether the ConfigMap or its keys must be defined
+optional | | - - - -### Container - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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
+optional
+listType=atomic | | -| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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
+optional
+listType=atomic | | -| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated.
+optional
+patchMergeKey=name
+patchStrategy=merge
+listType=map
+listMapKey=name | | -| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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.
+optional
+listType=atomic | | -| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional | | -| imagePullPolicy | [PullPolicy](#pull-policy)| `PullPolicy` | | | | | -| lifecycle | [Lifecycle](#lifecycle)| `Lifecycle` | | | | | -| livenessProbe | [Probe](#probe)| `Probe` | | | | | -| name | string| `string` | | | Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL).
Cannot be updated. | | -| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated.
+optional
+patchMergeKey=containerPort
+patchStrategy=merge
+listType=map
+listMapKey=containerPort
+listMapKey=protocol | | -| readinessProbe | [Probe](#probe)| `Probe` | | | | | -| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container.
+featureGate=InPlacePodVerticalScaling
+optional
+listType=atomic | | -| resources | [ResourceRequirements](#resource-requirements)| `ResourceRequirements` | | | | | -| restartPolicy | [ContainerRestartPolicy](#container-restart-policy)| `ContainerRestartPolicy` | | | | | -| securityContext | [SecurityContext](#security-context)| `SecurityContext` | | | | | -| startupProbe | [Probe](#probe)| `Probe` | | | | | -| stdin | boolean| `bool` | | | 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.
+optional | | -| stdinOnce | boolean| `bool` | | | 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
+optional | | -| terminationMessagePath | string| `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.
+optional | | -| terminationMessagePolicy | [TerminationMessagePolicy](#termination-message-policy)| `TerminationMessagePolicy` | | | | | -| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false.
+optional | | -| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container.
+patchMergeKey=devicePath
+patchStrategy=merge
+listType=map
+listMapKey=devicePath
+optional | | -| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated.
+optional
+patchMergeKey=mountPath
+patchStrategy=merge
+listType=map
+listMapKey=mountPath | | -| workingDir | string| `string` | | | 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.
+optional | | - - - -### ContainerNode - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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
+optional
+listType=atomic | | -| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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
+optional
+listType=atomic | | -| dependencies | []string| `[]string` | | | | | -| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated.
+optional
+patchMergeKey=name
+patchStrategy=merge
+listType=map
+listMapKey=name | | -| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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.
+optional
+listType=atomic | | -| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional | | -| imagePullPolicy | [PullPolicy](#pull-policy)| `PullPolicy` | | | | | -| lifecycle | [Lifecycle](#lifecycle)| `Lifecycle` | | | | | -| livenessProbe | [Probe](#probe)| `Probe` | | | | | -| name | string| `string` | | | Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL).
Cannot be updated. | | -| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated.
+optional
+patchMergeKey=containerPort
+patchStrategy=merge
+listType=map
+listMapKey=containerPort
+listMapKey=protocol | | -| readinessProbe | [Probe](#probe)| `Probe` | | | | | -| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container.
+featureGate=InPlacePodVerticalScaling
+optional
+listType=atomic | | -| resources | [ResourceRequirements](#resource-requirements)| `ResourceRequirements` | | | | | -| restartPolicy | [ContainerRestartPolicy](#container-restart-policy)| `ContainerRestartPolicy` | | | | | -| securityContext | [SecurityContext](#security-context)| `SecurityContext` | | | | | -| startupProbe | [Probe](#probe)| `Probe` | | | | | -| stdin | boolean| `bool` | | | 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.
+optional | | -| stdinOnce | boolean| `bool` | | | 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
+optional | | -| terminationMessagePath | string| `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.
+optional | | -| terminationMessagePolicy | [TerminationMessagePolicy](#termination-message-policy)| `TerminationMessagePolicy` | | | | | -| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false.
+optional | | -| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container.
+patchMergeKey=devicePath
+patchStrategy=merge
+listType=map
+listMapKey=devicePath
+optional | | -| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated.
+optional
+patchMergeKey=mountPath
+patchStrategy=merge
+listType=map
+listMapKey=mountPath | | -| workingDir | string| `string` | | | 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.
+optional | | - - - -### ContainerPort - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| containerPort | int32 (formatted integer)| `int32` | | | Number of port to expose on the pod's IP address.
This must be a valid port number, 0 < x < 65536. | | -| hostIP | string| `string` | | | What host IP to bind the external port to.
+optional | | -| hostPort | int32 (formatted integer)| `int32` | | | Number of port to expose on the host.
If specified, this must be a valid port number, 0 < x < 65536.
If HostNetwork is specified, this must match ContainerPort.
Most containers do not need this.
+optional | | -| name | string| `string` | | | If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
named port in a pod must have a unique name. Name for the port that can be
referred to by services.
+optional | | -| protocol | [Protocol](#protocol)| `Protocol` | | | | | - - - -### ContainerResizePolicy - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| resourceName | [ResourceName](#resource-name)| `ResourceName` | | | | | -| restartPolicy | [ResourceResizeRestartPolicy](#resource-resize-restart-policy)| `ResourceResizeRestartPolicy` | | | | | - - - -### ContainerRestartPolicy - - -> This may only be set for init containers and only allowed value is "Always". - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| ContainerRestartPolicy | string| string | | This may only be set for init containers and only allowed value is "Always". | | - - - -### ContainerSetRetryStrategy - - -> ContainerSetRetryStrategy provides controls on how to retry a container set - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| duration | string| `string` | | | Duration is the time between each retry, examples values are "300ms", "1s" or "5m".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". | | -| retries | [IntOrString](#int-or-string)| `IntOrString` | | | | | - - - -### ContainerSetTemplate - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| containers | [][ContainerNode](#container-node)| `[]*ContainerNode` | | | | | -| retryStrategy | [ContainerSetRetryStrategy](#container-set-retry-strategy)| `ContainerSetRetryStrategy` | | | | | -| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | | | - - - -### ContinueOn - - -> It can be specified if the workflow should continue when the pod errors, fails or both. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| error | boolean| `bool` | | | +optional | | -| failed | boolean| `bool` | | | +optional | | - - - -### Counter - - -> Counter is a Counter prometheus metric - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| value | string| `string` | | | Value is the value of the metric | | - - - -### CreateS3BucketOptions - - -> CreateS3BucketOptions options used to determine automatic automatic bucket-creation process - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| objectLocking | boolean| `bool` | | | ObjectLocking Enable object locking | | - - - -### DAGTask - - -> DAGTask represents a node in the graph during DAG execution - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| arguments | [Arguments](#arguments)| `Arguments` | | | | | -| continueOn | [ContinueOn](#continue-on)| `ContinueOn` | | | | | -| dependencies | []string| `[]string` | | | Dependencies are name of other targets which this depends on | | -| depends | string| `string` | | | Depends are name of other targets which this depends on | | -| hooks | [LifecycleHooks](#lifecycle-hooks)| `LifecycleHooks` | | | | | -| inline | [Template](#template)| `Template` | | | | | -| name | string| `string` | | | Name is the name of the target | | -| onExit | string| `string` | | | OnExit is a template reference which is invoked at the end of the
template, irrespective of the success, failure, or error of the
primary template.
DEPRECATED: Use Hooks[exit].Template instead. | | -| template | string| `string` | | | Name of template to execute | | -| templateRef | [TemplateRef](#template-ref)| `TemplateRef` | | | | | -| when | string| `string` | | | When is an expression in which the task should conditionally execute | | -| withItems | [][Item](#item)| `[]Item` | | | WithItems expands a task into multiple parallel tasks from the items in the list | | -| withParam | string| `string` | | | WithParam expands a task into multiple parallel tasks from the value in the parameter,
which is expected to be a JSON list. | | -| withSequence | [Sequence](#sequence)| `Sequence` | | | | | - - - -### DAGTemplate - - -> DAGTemplate is a template subtype for directed acyclic graph templates - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| failFast | boolean| `bool` | | | This flag is for DAG logic. The DAG logic has a built-in "fail fast" feature to stop scheduling new steps,
as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed
before failing the DAG itself.
The FailFast flag default is true, if set to false, it will allow a DAG to run all branches of the DAG to
completion (either success or failure), regardless of the failed outcomes of branches in the DAG.
More info and example about this feature at https://github.com/argoproj/argo-workflows/issues/1442 | | -| target | string| `string` | | | Target are one or more names of targets to execute in a DAG | | -| tasks | [][DAGTask](#d-a-g-task)| `[]*DAGTask` | | | Tasks are a list of DAG tasks
+patchStrategy=merge
+patchMergeKey=name | | - - - -### Data - - -> Data is a data template - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| source | [DataSource](#data-source)| `DataSource` | | | | | -| transformation | [Transformation](#transformation)| `Transformation` | | | | | - - - -### DataSource - - -> DataSource sources external data into a data template - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| artifactPaths | [ArtifactPaths](#artifact-paths)| `ArtifactPaths` | | | | | - - - -### DownwardAPIProjection - - -> Note that this is identical to a downwardAPI volume source without the default -mode. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| items | [][DownwardAPIVolumeFile](#downward-api-volume-file)| `[]*DownwardAPIVolumeFile` | | | Items is a list of DownwardAPIVolume file
+optional
+listType=atomic | | - - - -### DownwardAPIVolumeFile - - -> DownwardAPIVolumeFile represents information to create the file containing the pod field - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| fieldRef | [ObjectFieldSelector](#object-field-selector)| `ObjectFieldSelector` | | | | | -| mode | int32 (formatted integer)| `int32` | | | Optional: mode bits used to set permissions on this file, must be an octal value
between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
If not specified, the volume defaultMode will be used.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| path | string| `string` | | | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | | -| resourceFieldRef | [ResourceFieldSelector](#resource-field-selector)| `ResourceFieldSelector` | | | | | - - - -### DownwardAPIVolumeSource - - -> Downward API volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| defaultMode | int32 (formatted integer)| `int32` | | | Optional: mode bits to use on created files by default. Must be a
Optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| items | [][DownwardAPIVolumeFile](#downward-api-volume-file)| `[]*DownwardAPIVolumeFile` | | | Items is a list of downward API volume file
+optional
+listType=atomic | | - - - -### Duration - - -> Duration is a wrapper around time.Duration which supports correct -marshaling to YAML and JSON. In particular, it marshals into strings, which -can be used as map keys in json. - - - - -[interface{}](#interface) - -### EmptyDirVolumeSource - - -> Empty directory volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| medium | [StorageMedium](#storage-medium)| `StorageMedium` | | | | | -| sizeLimit | [Quantity](#quantity)| `Quantity` | | | | | - - - -### EnvFromSource - - -> EnvFromSource represents the source of a set of ConfigMaps - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| configMapRef | [ConfigMapEnvSource](#config-map-env-source)| `ConfigMapEnvSource` | | | | | -| prefix | string| `string` | | | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
+optional | | -| secretRef | [SecretEnvSource](#secret-env-source)| `SecretEnvSource` | | | | | - - - -### EnvVar - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | Name of the environment variable. Must be a C_IDENTIFIER. | | -| value | string| `string` | | | Variable references $(VAR_NAME) are expanded
using the previously defined environment variables in the container and
any service environment variables. 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.
Defaults to "".
+optional | | -| valueFrom | [EnvVarSource](#env-var-source)| `EnvVarSource` | | | | | - - - -### EnvVarSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| configMapKeyRef | [ConfigMapKeySelector](#config-map-key-selector)| `ConfigMapKeySelector` | | | | | -| fieldRef | [ObjectFieldSelector](#object-field-selector)| `ObjectFieldSelector` | | | | | -| resourceFieldRef | [ResourceFieldSelector](#resource-field-selector)| `ResourceFieldSelector` | | | | | -| secretKeyRef | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### EphemeralVolumeSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| volumeClaimTemplate | [PersistentVolumeClaimTemplate](#persistent-volume-claim-template)| `PersistentVolumeClaimTemplate` | | | | | - - - -### ExecAction - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| command | []string| `[]string` | | | Command is the command line to execute inside the container, the working directory for the
command is root ('/') in the container's filesystem. The command is simply exec'd, it is
not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use
a shell, you need to explicitly call out to that shell.
Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
+optional
+listType=atomic | | - - - -### ExecuteTemplateArgs - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| template | [Template](#template)| `Template` | ✓ | | | | -| workflow | [Workflow](#workflow)| `Workflow` | ✓ | | | | - - - -### ExecuteTemplateReply - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| node | [NodeResult](#node-result)| `NodeResult` | | | | | -| requeue | [Duration](#duration)| `Duration` | | | | | - - - -### ExecutorConfig - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| serviceAccountName | string| `string` | | | ServiceAccountName specifies the service account name of the executor container. | | - - - -### FCVolumeSource - - -> Fibre Channel volumes can only be mounted as read/write once. -Fibre Channel volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional | | -| lun | int32 (formatted integer)| `int32` | | | lun is Optional: FC target lun number
+optional | | -| readOnly | boolean| `bool` | | | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | -| targetWWNs | []string| `[]string` | | | targetWWNs is Optional: FC target worldwide names (WWNs)
+optional
+listType=atomic | | -| wwids | []string| `[]string` | | | wwids Optional: FC volume world wide identifiers (wwids)
Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.
+optional
+listType=atomic | | - - - -### FieldsV1 - - -> Each key is either a '.' representing the field itself, and will always map to an empty set, -or a string representing a sub-field or item. The string will follow one of these four formats: -'f:', where is the name of a field in a struct, or key in a map -'v:', where is the exact json formatted value of a list item -'i:', where is position of a item in a list -'k:', where is a map of a list item's key fields to their unique values -If a key maps to an empty Fields value, the field that key represents is part of the set. - -The exact format is defined in sigs.k8s.io/structured-merge-diff -+protobuf.options.(gogoproto.goproto_stringer)=false - - - - -[interface{}](#interface) - -### FlexVolumeSource - - -> FlexVolume represents a generic volume resource that is -provisioned/attached using an exec based plugin. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| driver | string| `string` | | | driver is the name of the driver to use for this volume. | | -| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script.
+optional | | -| options | map of string| `map[string]string` | | | options is Optional: this field holds extra command options if any.
+optional | | -| readOnly | boolean| `bool` | | | readOnly is Optional: defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | -| secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | - - - -### FlockerVolumeSource - - -> One and only one of datasetName and datasetUUID should be set. -Flocker volumes do not support ownership management or SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| datasetName | string| `string` | | | datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker
should be considered as deprecated
+optional | | -| datasetUUID | string| `string` | | | datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset
+optional | | - - - -### GCEPersistentDiskVolumeSource - - -> A GCE PD must exist before mounting to a container. The disk must -also be in the same GCE project and zone as the kubelet. A GCE PD -can only be mounted as read/write once or read-only many times. GCE -PDs support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional | | -| partition | int32 (formatted integer)| `int32` | | | partition is the partition in the volume that you want to mount.
If omitted, the default is to mount by volume name.
Examples: For volume /dev/sda1, you specify the partition as "1".
Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty).
More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+optional | | -| pdName | string| `string` | | | pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.
More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | | -| readOnly | boolean| `bool` | | | readOnly here will force the ReadOnly setting in VolumeMounts.
Defaults to false.
More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
+optional | | - - - -### GCSArtifact - - -> GCSArtifact is the location of a GCS artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| bucket | string| `string` | | | Bucket is the name of the bucket | | -| key | string| `string` | | | Key is the path in the bucket where the artifact resides | | -| serviceAccountKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### GRPCAction - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| port | int32 (formatted integer)| `int32` | | | Port number of the gRPC service. Number must be in the range 1 to 65535. | | -| service | string| `string` | | | Service is the name of the service to place in the gRPC HealthCheckRequest
(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).

If this is not specified, the default behavior is defined by gRPC.
+optional
+default="" | | - - - -### Gauge - - -> Gauge is a Gauge prometheus metric - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| operation | [GaugeOperation](#gauge-operation)| `GaugeOperation` | | | | | -| realtime | boolean| `bool` | | | Realtime emits this metric in real time if applicable | | -| value | string| `string` | | | Value is the value to be used in the operation with the metric's current value. If no operation is set,
value is the value of the metric | | - - - -### GaugeOperation - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| GaugeOperation | string| string | | | | - - - -### GitArtifact - - -> GitArtifact is the location of an git artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| branch | string| `string` | | | Branch is the branch to fetch when `SingleBranch` is enabled | | -| depth | uint64 (formatted integer)| `uint64` | | | Depth specifies clones/fetches should be shallow and include the given
number of commits from the branch tip | | -| disableSubmodules | boolean| `bool` | | | DisableSubmodules disables submodules during git clone | | -| fetch | []string| `[]string` | | | Fetch specifies a number of refs that should be fetched before checkout | | -| insecureIgnoreHostKey | boolean| `bool` | | | InsecureIgnoreHostKey disables SSH strict host key checking during git clone | | -| insecureSkipTLS | boolean| `bool` | | | InsecureSkipTLS disables server certificate verification resulting in insecure HTTPS connections | | -| passwordSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| repo | string| `string` | | | Repo is the git repository | | -| revision | string| `string` | | | Revision is the git commit, tag, branch to checkout | | -| singleBranch | boolean| `bool` | | | SingleBranch enables single branch clone, using the `branch` parameter | | -| sshPrivateKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| usernameSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### GitRepoVolumeSource - - -> DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an -EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir -into the Pod's container. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| directory | string| `string` | | | directory is the target directory name.
Must not contain or start with '..'. If '.' is supplied, the volume directory will be the
git repository. Otherwise, if specified, the volume will contain the git repository in
the subdirectory with the given name.
+optional | | -| repository | string| `string` | | | repository is the URL | | -| revision | string| `string` | | | revision is the commit hash for the specified revision.
+optional | | - - - -### GlusterfsVolumeSource - - -> Glusterfs volumes do not support ownership management or SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| endpoints | string| `string` | | | endpoints is the endpoint name that details Glusterfs topology.
More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | -| path | string| `string` | | | path is the Glusterfs volume path.
More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | -| readOnly | boolean| `bool` | | | readOnly here will force the Glusterfs volume to be mounted with read-only permissions.
Defaults to false.
More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod
+optional | | - - - -### HDFSArtifact - - -> HDFSArtifact is the location of an HDFS artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| addresses | []string| `[]string` | | | Addresses is accessible addresses of HDFS name nodes | | -| dataTransferProtection | string| `string` | | | DataTransferProtection is the protection level for HDFS data transfer.
It corresponds to the dfs.data.transfer.protection configuration in HDFS. | | -| force | boolean| `bool` | | | Force copies a file forcibly even if it exists | | -| hdfsUser | string| `string` | | | HDFSUser is the user to access HDFS file system.
It is ignored if either ccache or keytab is used. | | -| krbCCacheSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| krbConfigConfigMap | [ConfigMapKeySelector](#config-map-key-selector)| `ConfigMapKeySelector` | | | | | -| krbKeytabSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| krbRealm | string| `string` | | | KrbRealm is the Kerberos realm used with Kerberos keytab
It must be set if keytab is used. | | -| krbServicePrincipalName | string| `string` | | | KrbServicePrincipalName is the principal name of Kerberos service
It must be set if either ccache or keytab is used. | | -| krbUsername | string| `string` | | | KrbUsername is the Kerberos username used with Kerberos keytab
It must be set if keytab is used. | | -| path | string| `string` | | | Path is a file path in HDFS | | - - - -### HTTP - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| body | string| `string` | | | Body is content of the HTTP Request | | -| bodyFrom | [HTTPBodySource](#http-body-source)| `HTTPBodySource` | | | | | -| headers | [HTTPHeaders](#http-headers)| `HTTPHeaders` | | | | | -| insecureSkipVerify | boolean| `bool` | | | InsecureSkipVerify is a bool when if set to true will skip TLS verification for the HTTP client | | -| method | string| `string` | | | Method is HTTP methods for HTTP Request | | -| successCondition | string| `string` | | | SuccessCondition is an expression if evaluated to true is considered successful | | -| timeoutSeconds | int64 (formatted integer)| `int64` | | | TimeoutSeconds is request timeout for HTTP Request. Default is 30 seconds | | -| url | string| `string` | | | URL of the HTTP Request | | - - - -### HTTPArtifact - - -> HTTPArtifact allows a file served on HTTP to be placed as an input artifact in a container - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| auth | [HTTPAuth](#http-auth)| `HTTPAuth` | | | | | -| headers | [][Header](#header)| `[]*Header` | | | Headers are an optional list of headers to send with HTTP requests for artifacts | | -| url | string| `string` | | | URL of the artifact | | - - - -### HTTPAuth - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| basicAuth | [BasicAuth](#basic-auth)| `BasicAuth` | | | | | -| clientCert | [ClientCertAuth](#client-cert-auth)| `ClientCertAuth` | | | | | -| oauth2 | [OAuth2Auth](#o-auth2-auth)| `OAuth2Auth` | | | | | - - - -### HTTPBodySource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| bytes | []uint8 (formatted integer)| `[]uint8` | | | | | - - - -### HTTPGetAction - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| host | string| `string` | | | Host name to connect to, defaults to the pod IP. You probably want to set
"Host" in httpHeaders instead.
+optional | | -| httpHeaders | [][HTTPHeader](#http-header)| `[]*HTTPHeader` | | | Custom headers to set in the request. HTTP allows repeated headers.
+optional
+listType=atomic | | -| path | string| `string` | | | Path to access on the HTTP server.
+optional | | -| port | [IntOrString](#int-or-string)| `IntOrString` | | | | | -| scheme | [URIScheme](#uri-scheme)| `URIScheme` | | | | | - - - -### HTTPHeader - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | | | -| value | string| `string` | | | | | -| valueFrom | [HTTPHeaderSource](#http-header-source)| `HTTPHeaderSource` | | | | | - - - -### HTTPHeaderSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| secretKeyRef | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### HTTPHeaders - - - - -[][HTTPHeader](#http-header) - -### Header - - -> Header indicate a key-value request header to be used when fetching artifacts over HTTP - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | Name is the header name | | -| value | string| `string` | | | Value is the literal value to use for the header | | - - - -### Histogram - - -> Histogram is a Histogram prometheus metric - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| buckets | [][Amount](#amount)| `[]Amount` | | | Buckets is a list of bucket divisors for the histogram | | -| value | string| `string` | | | Value is the value of the metric | | - - - -### HostAlias - - -> HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the -pod's hosts file. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| hostnames | []string| `[]string` | | | Hostnames for the above IP address.
+listType=atomic | | -| ip | string| `string` | | | IP address of the host file entry.
+required | | - - - -### HostPathType - - -> +enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| HostPathType | string| string | | +enum | | - - - -### HostPathVolumeSource - - -> Host path volumes do not support ownership management or SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| path | string| `string` | | | path of the directory on the host.
If the path is a symlink, it will follow the link to the real path.
More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | | -| type | [HostPathType](#host-path-type)| `HostPathType` | | | | | - - - -### ISCSIVolumeSource - - -> ISCSI volumes can only be mounted as read/write once. -ISCSI volumes support ownership management and SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| chapAuthDiscovery | boolean| `bool` | | | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication
+optional | | -| chapAuthSession | boolean| `bool` | | | chapAuthSession defines whether support iSCSI Session CHAP authentication
+optional | | -| fsType | string| `string` | | | fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional | | -| initiatorName | string| `string` | | | initiatorName is the custom iSCSI Initiator Name.
If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface
: will be created for the connection.
+optional | | -| iqn | string| `string` | | | iqn is the target iSCSI Qualified Name. | | -| iscsiInterface | string| `string` | | | iscsiInterface is the interface Name that uses an iSCSI transport.
Defaults to 'default' (tcp).
+optional
+default="default" | | -| lun | int32 (formatted integer)| `int32` | | | lun represents iSCSI Target Lun number. | | -| portals | []string| `[]string` | | | portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port
is other than default (typically TCP ports 860 and 3260).
+optional
+listType=atomic | | -| readOnly | boolean| `bool` | | | readOnly here will force the ReadOnly setting in VolumeMounts.
Defaults to false.
+optional | | -| secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| targetPortal | string| `string` | | | targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port
is other than default (typically TCP ports 860 and 3260). | | - - - -### ImageVolumeSource - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| pullPolicy | [PullPolicy](#pull-policy)| `PullPolicy` | | | | | -| reference | string| `string` | | | Required: Image or artifact reference to be used.
Behaves in the same way as pod.spec.containers[*].image.
Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional | | - - - -### Inputs - - -> Inputs are the mechanism for passing parameters, artifacts, volumes from one template to another - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| artifacts | [Artifacts](#artifacts)| `Artifacts` | | | | | -| parameters | [][Parameter](#parameter)| `[]*Parameter` | | | Parameters are a list of parameters passed as inputs
+patchStrategy=merge
+patchMergeKey=name | | - - - -### IntOrString - - -> +protobuf=true -+protobuf.options.(gogoproto.goproto_stringer)=false -+k8s:openapi-gen=true - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| IntVal | int32 (formatted integer)| `int32` | | | | | -| StrVal | string| `string` | | | | | -| Type | [Type](#type)| `Type` | | | | | - - - -### Item - - -> +protobuf.options.(gogoproto.goproto_stringer)=false -+kubebuilder:validation:Type=object - - - - -[interface{}](#interface) - -### KeyToPath - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | key is the key to project. | | -| mode | int32 (formatted integer)| `int32` | | | mode is Optional: mode bits used to set permissions on this file.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
If not specified, the volume defaultMode will be used.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| path | string| `string` | | | path is the relative path of the file to map the key to.
May not be an absolute path.
May not contain the path element '..'.
May not start with the string '..'. | | - - - -### LabelSelector - - -> A label selector is a label query over a set of resources. The result of matchLabels and -matchExpressions are ANDed. An empty label selector matches all objects. A null -label selector matches no objects. -+structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| matchExpressions | [][LabelSelectorRequirement](#label-selector-requirement)| `[]*LabelSelectorRequirement` | | | matchExpressions is a list of label selector requirements. The requirements are ANDed.
+optional
+listType=atomic | | -| matchLabels | map of string| `map[string]string` | | | matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
map is equivalent to an element of matchExpressions, whose key field is "key", the
operator is "In", and the values array contains only "value". The requirements are ANDed.
+optional | | - - - -### LabelSelectorOperator - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| LabelSelectorOperator | string| string | | | | - - - -### LabelSelectorRequirement - - -> A label selector requirement is a selector that contains values, a key, and an operator that -relates the key and values. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | key is the label key that the selector applies to. | | -| operator | [LabelSelectorOperator](#label-selector-operator)| `LabelSelectorOperator` | | | | | -| values | []string| `[]string` | | | values is an array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. This array is replaced during a strategic
merge patch.
+optional
+listType=atomic | | - - - -### Lifecycle - - -> Lifecycle describes actions that the management system should take in response to container lifecycle -events. For the PostStart and PreStop lifecycle handlers, management of the container blocks -until the action is complete, unless the container process fails, in which case the handler is aborted. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| postStart | [LifecycleHandler](#lifecycle-handler)| `LifecycleHandler` | | | | | -| preStop | [LifecycleHandler](#lifecycle-handler)| `LifecycleHandler` | | | | | - - - -### LifecycleHandler - - -> LifecycleHandler defines a specific action that should be taken in a lifecycle -hook. One and only one of the fields, except TCPSocket must be specified. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| exec | [ExecAction](#exec-action)| `ExecAction` | | | | | -| httpGet | [HTTPGetAction](#http-get-action)| `HTTPGetAction` | | | | | -| sleep | [SleepAction](#sleep-action)| `SleepAction` | | | | | -| tcpSocket | [TCPSocketAction](#tcp-socket-action)| `TCPSocketAction` | | | | | - - - -### LifecycleHook - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| arguments | [Arguments](#arguments)| `Arguments` | | | | | -| expression | string| `string` | | | Expression is a condition expression for when a node will be retried. If it evaluates to false, the node will not
be retried and the retry strategy will be ignored | | -| template | string| `string` | | | Template is the name of the template to execute by the hook | | -| templateRef | [TemplateRef](#template-ref)| `TemplateRef` | | | | | - - - -### LifecycleHooks - - - - -[LifecycleHooks](#lifecycle-hooks) - -### LocalObjectReference - - -> New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. -1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular -restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". -Those cannot be well described when embedded. -2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. -3. We cannot easily change it. Because this type is embedded in many locations, updates to this type -will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. - -Instead of using this type, create a locally provided and used type that is well-focused on your reference. -For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . -+structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | - - - -### ManagedFieldsEntry - - -> ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource -that the fieldset applies to. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| apiVersion | string| `string` | | | APIVersion defines the version of this resource that this field set
applies to. The format is "group/version" just like the top-level
APIVersion field. It is necessary to track the version of a field
set because it cannot be automatically converted. | | -| fieldsType | string| `string` | | | FieldsType is the discriminator for the different fields format and version.
There is currently only one possible value: "FieldsV1" | | -| fieldsV1 | [FieldsV1](#fields-v1)| `FieldsV1` | | | | | -| manager | string| `string` | | | Manager is an identifier of the workflow managing these fields. | | -| operation | [ManagedFieldsOperationType](#managed-fields-operation-type)| `ManagedFieldsOperationType` | | | | | -| subresource | string| `string` | | | Subresource is the name of the subresource used to update that object, or
empty string if the object was updated through the main resource. The
value of this field is used to distinguish between managers, even if they
share the same name. For example, a status update will be distinct from a
regular update using the same manager name.
Note that the APIVersion field is not related to the Subresource field and
it always corresponds to the version of the main resource. | | -| time | string| `string` | | | Time is the timestamp of when the ManagedFields entry was added. The
timestamp will also be updated if a field is added, the manager
changes any of the owned fields value or removes a field. The
timestamp does not update when a field is removed from the entry
because another manager took it over.
+optional | | - - - -### ManagedFieldsOperationType - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| ManagedFieldsOperationType | string| string | | | | - - - -### ManifestFrom - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| artifact | [Artifact](#artifact)| `Artifact` | | | | | - - - -### Memoize - - -> Memoization enables caching for the Outputs of the template - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| cache | [Cache](#cache)| `Cache` | | | | | -| key | string| `string` | | | Key is the key to use as the caching key | | -| maxAge | string| `string` | | | MaxAge is the maximum age (e.g. "180s", "24h") of an entry that is still considered valid. If an entry is older
than the MaxAge, it will be ignored. | | - - - -### Metadata - - -> Pod metdata - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| annotations | map of string| `map[string]string` | | | | | -| labels | map of string| `map[string]string` | | | | | - - - -### MetricLabel - - -> MetricLabel is a single label for a prometheus metric - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | | | -| value | string| `string` | | | | | - - - -### Metrics - - -> Metrics are a list of metrics emitted from a Workflow/Template - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| prometheus | [][Prometheus](#prometheus)| `[]*Prometheus` | | | Prometheus is a list of prometheus metrics to be emitted | | - - - -### MountPropagationMode - - -> +enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| MountPropagationMode | string| string | | +enum | | - - - -### Mutex - - -> Mutex holds Mutex configuration - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | name of the mutex | | -| namespace | string| `string` | | `"[namespace of workflow]"`| | | - - - -### NFSVolumeSource - - -> NFS volumes do not support ownership management or SELinux relabeling. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| path | string| `string` | | | path that is exported by the NFS server.
More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | | -| readOnly | boolean| `bool` | | | readOnly here will force the NFS export to be mounted with read-only permissions.
Defaults to false.
More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
+optional | | -| server | string| `string` | | | server is the hostname or IP address of the NFS server.
More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | | - - - -### NodeAffinity - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| preferredDuringSchedulingIgnoredDuringExecution | [][PreferredSchedulingTerm](#preferred-scheduling-term)| `[]*PreferredSchedulingTerm` | | | The scheduler will prefer to schedule pods to nodes that satisfy
the affinity expressions specified by this field, but it may choose
a node that violates one or more of the expressions. The node that is
most preferred is the one with the greatest sum of weights, i.e.
for each node that meets all of the scheduling requirements (resource
request, requiredDuringScheduling affinity expressions, etc.),
compute a sum by iterating through the elements of this field and adding
"weight" to the sum if the node matches the corresponding matchExpressions; the
node(s) with the highest sum are the most preferred.
+optional
+listType=atomic | | -| requiredDuringSchedulingIgnoredDuringExecution | [NodeSelector](#node-selector)| `NodeSelector` | | | | | - - - -### NodePhase - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| NodePhase | string| string | | | | - - - -### NodeResult - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| message | string| `string` | | | | | -| outputs | [Outputs](#outputs)| `Outputs` | | | | | -| phase | [NodePhase](#node-phase)| `NodePhase` | | | | | -| progress | [Progress](#progress)| `Progress` | | | | | - - - -### NodeSelector - - -> A node selector represents the union of the results of one or more label queries -over a set of nodes; that is, it represents the OR of the selectors represented -by the node selector terms. -+structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| nodeSelectorTerms | [][NodeSelectorTerm](#node-selector-term)| `[]*NodeSelectorTerm` | | | Required. A list of node selector terms. The terms are ORed.
+listType=atomic | | - - - -### NodeSelectorOperator - - -> A node selector operator is the set of operators that can be used in -a node selector requirement. -+enum - - - - -| Name | Type | Go type | Default | Description | Example | -|------|------|---------| ------- |-------------|---------| -| NodeSelectorOperator | string| string | | A node selector operator is the set of operators that can be used in
a node selector requirement.
+enum | | - - - -### NodeSelectorRequirement - - -> A node selector requirement is a selector that contains values, a key, and an operator -that relates the key and values. - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | The label key that the selector applies to. | | -| operator | [NodeSelectorOperator](#node-selector-operator)| `NodeSelectorOperator` | | | | | -| values | []string| `[]string` | | | An array of string values. If the operator is In or NotIn,
the values array must be non-empty. If the operator is Exists or DoesNotExist,
the values array must be empty. If the operator is Gt or Lt, the values
array must have a single element, which will be interpreted as an integer.
This array is replaced during a strategic merge patch.
+optional
+listType=atomic | | - - - -### NodeSelectorTerm - - -> A null or empty node selector term matches no objects. The requirements of -them are ANDed. -The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. -+structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| matchExpressions | [][NodeSelectorRequirement](#node-selector-requirement)| `[]*NodeSelectorRequirement` | | | A list of node selector requirements by node's labels.
+optional
+listType=atomic | | -| matchFields | [][NodeSelectorRequirement](#node-selector-requirement)| `[]*NodeSelectorRequirement` | | | A list of node selector requirements by node's fields.
+optional
+listType=atomic | | - - - -### NoneStrategy - - -> NoneStrategy indicates to skip tar process and upload the files or directory tree as independent -files. Note that if the artifact is a directory, the artifact driver must support the ability to -save/load the directory appropriately. - - - - -[interface{}](#interface) - -### OAuth2Auth - - -> OAuth2Auth holds all information for client authentication via OAuth2 tokens - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| clientIDSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| clientSecretSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| endpointParams | [][OAuth2EndpointParam](#o-auth2-endpoint-param)| `[]*OAuth2EndpointParam` | | | | | -| scopes | []string| `[]string` | | | | | -| tokenURLSecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | - - - -### OAuth2EndpointParam - - -> EndpointParam is for requesting optional fields that should be sent in the oauth request - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| key | string| `string` | | | Name is the header name | | -| value | string| `string` | | | Value is the literal value to use for the header | | - - - -### OSSArtifact - - -> OSSArtifact is the location of an Alibaba Cloud OSS artifact - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| accessKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| bucket | string| `string` | | | Bucket is the name of the bucket | | -| createBucketIfNotPresent | boolean| `bool` | | | CreateBucketIfNotPresent tells the driver to attempt to create the OSS bucket for output artifacts, if it doesn't exist | | -| endpoint | string| `string` | | | Endpoint is the hostname of the bucket endpoint | | -| key | string| `string` | | | Key is the path in the bucket where the artifact resides | | -| lifecycleRule | [OSSLifecycleRule](#o-s-s-lifecycle-rule)| `OSSLifecycleRule` | | | | | -| secretKeySecret | [SecretKeySelector](#secret-key-selector)| `SecretKeySelector` | | | | | -| securityToken | string| `string` | | | SecurityToken is the user's temporary security token. For more details, check out: https://www.alibabacloud.com/help/doc-detail/100624.htm | | -| useSDKCreds | boolean| `bool` | | | UseSDKCreds tells the driver to figure out credentials based on sdk defaults. | | - - - -### OSSLifecycleRule - - -> OSSLifecycleRule specifies how to manage bucket's lifecycle - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| markDeletionAfterDays | int32 (formatted integer)| `int32` | | | MarkDeletionAfterDays is the number of days before we delete objects in the bucket | | -| markInfrequentAccessAfterDays | int32 (formatted integer)| `int32` | | | MarkInfrequentAccessAfterDays is the number of days before we convert the objects in the bucket to Infrequent Access (IA) storage type | | - - - -### ObjectFieldSelector - - -> +structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| apiVersion | string| `string` | | | Version of the schema the FieldPath is written in terms of, defaults to "v1".
+optional | | -| fieldPath | string| `string` | | | Path of the field to select in the specified API version. | | - - - -### ObjectMeta - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | | | -| namespace | string| `string` | | | | | -| uid | string| `string` | | | | | - - - -### Outputs - - -> Outputs hold parameters, artifacts, and results from a step - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| artifacts | [Artifacts](#artifacts)| `Artifacts` | | | | | -| exitCode | string| `string` | | | ExitCode holds the exit code of a script template | | -| parameters | [][Parameter](#parameter)| `[]*Parameter` | | | Parameters holds the list of output parameters produced by a step
+patchStrategy=merge
+patchMergeKey=name | | -| result | string| `string` | | | Result holds the result (stdout) of a script template | | - - - -### OwnerReference - - -> OwnerReference contains enough information to let you identify an owning -object. An owning object must be in the same namespace as the dependent, or -be cluster-scoped, so there is no namespace field. -+structType=atomic - - - - - - -**Properties** - -| Name | Type | Go type | Required | Default | Description | Example | -|------|------|---------|:--------:| ------- |-------------|---------| -| apiVersion | string| `string` | | | API version of the referent. | | -| blockOwnerDeletion | boolean| `bool` | | | If true, AND if the owner has the "foregroundDeletion" finalizer, then
the owner cannot be deleted from the key-value store until this
reference is removed.
See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion
for how the garbage collector interacts with this field and enforces the foreground deletion.
Defaults to false.
To set this field, a user needs "delete" permission of the owner,
otherwise 422 (Unprocessable Entity) will be returned.
+optional | | -| controller | boolean| `bool` | | | If true, this reference points to the managing controller.
+optional | | -| kind | string| `string` | | | Kind of the referent.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | | -| name | string| `string` | | | Name of the referent.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | | -| uid | [UID](#uid)| `UID` | | | | | - - - -### ParallelSteps - - -> +kubebuilder:validation:Type=array - - - - -[interface{}](#interface) +[any](#any) ### Parameter @@ -2553,14 +141,11 @@ be cluster-scoped, so there is no namespace field. ### PersistentVolumeAccessMode -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| PersistentVolumeAccessMode | string| string | | +enum | | +| PersistentVolumeAccessMode | string| string | | | | @@ -2579,15 +164,15 @@ and allows a Source for provider-specific attributes | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| accessModes | [][PersistentVolumeAccessMode](#persistent-volume-access-mode)| `[]PersistentVolumeAccessMode` | | | accessModes contains the desired access modes the volume should have.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
+optional
+listType=atomic | | +| accessModes | [][PersistentVolumeAccessMode](#persistent-volume-access-mode)| `[]PersistentVolumeAccessMode` | | | accessModes contains the desired access modes the volume should have.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | | | dataSource | [TypedLocalObjectReference](#typed-local-object-reference)| `TypedLocalObjectReference` | | | | | | dataSourceRef | [TypedObjectReference](#typed-object-reference)| `TypedObjectReference` | | | | | | resources | [VolumeResourceRequirements](#volume-resource-requirements)| `VolumeResourceRequirements` | | | | | | selector | [LabelSelector](#label-selector)| `LabelSelector` | | | | | -| storageClassName | string| `string` | | | storageClassName is the name of the StorageClass required by the claim.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
+optional | | -| volumeAttributesClassName | string| `string` | | | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
If specified, the CSI driver will create or update the volume with the attributes defined
in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass
will be applied to the claim but it's not allowed to reset this field to empty string once it is set.
If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass
will be set by the persistentvolume controller if it exists.
If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
exists.
More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default).
+featureGate=VolumeAttributesClass
+optional | | +| storageClassName | string| `string` | | | storageClassName is the name of the StorageClass required by the claim.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | | +| volumeAttributesClassName | string| `string` | | | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.
If specified, the CSI driver will create or update the volume with the attributes defined
in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName,
it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass
will be applied to the claim but it's not allowed to reset this field to empty string once it is set.
If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass
will be set by the persistentvolume controller if it exists.
If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be
set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource
exists.
More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/
(Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | | | volumeMode | [PersistentVolumeMode](#persistent-volume-mode)| `PersistentVolumeMode` | | | | | -| volumeName | string| `string` | | | volumeName is the binding reference to the PersistentVolume backing this claim.
+optional | | +| volumeName | string| `string` | | | volumeName is the binding reference to the PersistentVolume backing this claim. | | @@ -2606,22 +191,8 @@ PersistentVolumeClaim objects as part of an EphemeralVolumeSource. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| annotations | map of string| `map[string]string` | | | Annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
+optional | | -| creationTimestamp | string| `string` | | | CreationTimestamp is a timestamp representing the server time when this object was
created. It is not guaranteed to be set in happens-before order across separate operations.
Clients may not set this value. It is represented in RFC3339 form and is in UTC.

Populated by the system.
Read-only.
Null for lists.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+optional | | -| deletionGracePeriodSeconds | int64 (formatted integer)| `int64` | | | Number of seconds allowed for this object to gracefully terminate before
it will be removed from the system. Only set when deletionTimestamp is also set.
May only be shortened.
Read-only.
+optional | | -| deletionTimestamp | string| `string` | | | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
field is set by the server when a graceful deletion is requested by the user, and is not
directly settable by a client. The resource is expected to be deleted (no longer visible
from resource lists, and not reachable by name) after the time in this field, once the
finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
Once the deletionTimestamp is set, this value may not be unset or be set further into the
future, although it may be shortened or the resource may be deleted prior to this time.
For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
remove the pod from the API. In the presence of network partitions, this object may still
exist after this timestamp, until an administrator or automated process can determine the
resource is fully terminated.
If not set, graceful deletion of the object has not been requested.

Populated by the system when a graceful deletion is requested.
Read-only.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+optional | | -| finalizers | []string| `[]string` | | | Must be empty before the object is deleted from the registry. Each entry
is an identifier for the responsible component that will remove the entry
from the list. If the deletionTimestamp of the object is non-nil, entries
in this list can only be removed.
Finalizers may be processed and removed in any order. Order is NOT enforced
because it introduces significant risk of stuck finalizers.
finalizers is a shared field, any actor with permission can reorder it.
If the finalizer list is processed in order, then this can lead to a situation
in which the component responsible for the first finalizer in the list is
waiting for a signal (field value, external system, or other) produced by a
component responsible for a finalizer later in the list, resulting in a deadlock.
Without enforced ordering finalizers are free to order amongst themselves and
are not vulnerable to ordering changes in the list.
+optional
+patchStrategy=merge
+listType=set | | -| generateName | string| `string` | | | GenerateName is an optional prefix, used by the server, to generate a unique
name ONLY IF the Name field has not been provided.
If this field is used, the name returned to the client will be different
than the name passed. This value will also be combined with a unique suffix.
The provided value has the same validation rules as the Name field,
and may be truncated by the length of the suffix required to make the value
unique on the server.

If this field is specified and the generated name exists, the server will return a 409.

Applied only if Name is not specified.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
+optional | | -| generation | int64 (formatted integer)| `int64` | | | A sequence number representing a specific generation of the desired state.
Populated by the system. Read-only.
+optional | | -| labels | map of string| `map[string]string` | | | Map of string keys and values that can be used to organize and categorize
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
+optional | | -| managedFields | [][ManagedFieldsEntry](#managed-fields-entry)| `[]*ManagedFieldsEntry` | | | ManagedFields maps workflow-id and version to the set of fields
that are managed by that workflow. This is mostly for internal
housekeeping, and users typically shouldn't need to set or
understand this field. A workflow can be the user's name, a
controller's name, or the name of a specific apply path like
"ci-cd". The set of fields is always in the version that the
workflow used when modifying the object.

+optional
+listType=atomic | | -| name | string| `string` | | | Name must be unique within a namespace. Is required when creating resources, although
some resources may allow a client to request the generation of an appropriate name
automatically. Name is primarily intended for creation idempotence and configuration
definition.
Cannot be updated.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
+optional | | -| namespace | string| `string` | | | Namespace defines the space within which each name must be unique. An empty namespace is
equivalent to the "default" namespace, but "default" is the canonical representation.
Not all objects are required to be scoped to a namespace - the value of this field for
those objects will be empty.

Must be a DNS_LABEL.
Cannot be updated.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
+optional | | -| ownerReferences | [][OwnerReference](#owner-reference)| `[]*OwnerReference` | | | List of objects depended by this object. If ALL objects in the list have
been deleted, this object will be garbage collected. If this object is managed by a controller,
then an entry in this list will point to this controller, with the controller field set to true.
There cannot be more than one managing controller.
+optional
+patchMergeKey=uid
+patchStrategy=merge
+listType=map
+listMapKey=uid | | -| resourceVersion | string| `string` | | | An opaque value that represents the internal version of this object that can
be used by clients to determine when objects have changed. May be used for optimistic
concurrency, change detection, and the watch operation on a resource or set of resources.
Clients must treat these values as opaque and passed unmodified back to the server.
They may only be valid for a particular resource or set of resources.

Populated by the system.
Read-only.
Value must be treated as opaque by clients and .
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
+optional | | -| selfLink | string| `string` | | | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
+optional | | +| metadata | [V1ObjectMeta](#v1-object-meta)| `V1ObjectMeta` | | | | | | spec | [PersistentVolumeClaimSpec](#persistent-volume-claim-spec)| `PersistentVolumeClaimSpec` | | | | | -| uid | [UID](#uid)| `UID` | | | | | @@ -2642,21 +213,18 @@ type of volume that is owned by someone else (the system). | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | claimName | string| `string` | | | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.
More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | | -| readOnly | boolean| `bool` | | | readOnly Will force the ReadOnly setting in VolumeMounts.
Default false.
+optional | | +| readOnly | boolean| `bool` | | | readOnly Will force the ReadOnly setting in VolumeMounts.
Default false. | | ### PersistentVolumeMode -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| PersistentVolumeMode | string| string | | +enum | | +| PersistentVolumeMode | string| string | | | | @@ -2684,7 +252,7 @@ type of volume that is owned by someone else (the system). -[interface{}](#interface) +[any](#any) ### PodAffinity @@ -2697,8 +265,8 @@ type of volume that is owned by someone else (the system). | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| preferredDuringSchedulingIgnoredDuringExecution | [][WeightedPodAffinityTerm](#weighted-pod-affinity-term)| `[]*WeightedPodAffinityTerm` | | | The scheduler will prefer to schedule pods to nodes that satisfy
the affinity expressions specified by this field, but it may choose
a node that violates one or more of the expressions. The node that is
most preferred is the one with the greatest sum of weights, i.e.
for each node that meets all of the scheduling requirements (resource
request, requiredDuringScheduling affinity expressions, etc.),
compute a sum by iterating through the elements of this field and adding
"weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
node(s) with the highest sum are the most preferred.
+optional
+listType=atomic | | -| requiredDuringSchedulingIgnoredDuringExecution | [][PodAffinityTerm](#pod-affinity-term)| `[]*PodAffinityTerm` | | | If the affinity requirements specified by this field are not met at
scheduling time, the pod will not be scheduled onto the node.
If the affinity requirements specified by this field cease to be met
at some point during pod execution (e.g. due to a pod label update), the
system may or may not try to eventually evict the pod from its node.
When there are multiple elements, the lists of nodes corresponding to each
podAffinityTerm are intersected, i.e. all terms must be satisfied.
+optional
+listType=atomic | | +| preferredDuringSchedulingIgnoredDuringExecution | [][WeightedPodAffinityTerm](#weighted-pod-affinity-term)| `[]*WeightedPodAffinityTerm` | | | The scheduler will prefer to schedule pods to nodes that satisfy
the affinity expressions specified by this field, but it may choose
a node that violates one or more of the expressions. The node that is
most preferred is the one with the greatest sum of weights, i.e.
for each node that meets all of the scheduling requirements (resource
request, requiredDuringScheduling affinity expressions, etc.),
compute a sum by iterating through the elements of this field and adding
"weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
node(s) with the highest sum are the most preferred. | | +| requiredDuringSchedulingIgnoredDuringExecution | [][PodAffinityTerm](#pod-affinity-term)| `[]*PodAffinityTerm` | | | If the affinity requirements specified by this field are not met at
scheduling time, the pod will not be scheduled onto the node.
If the affinity requirements specified by this field cease to be met
at some point during pod execution (e.g. due to a pod label update), the
system may or may not try to eventually evict the pod from its node.
When there are multiple elements, the lists of nodes corresponding to each
podAffinityTerm are intersected, i.e. all terms must be satisfied. | | @@ -2722,10 +290,10 @@ a pod of the set of pods is running | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | labelSelector | [LabelSelector](#label-selector)| `LabelSelector` | | | | | -| matchLabelKeys | []string| `[]string` | | | MatchLabelKeys is a set of pod label keys to select which pods will
be taken into consideration. The keys are used to lookup values from the
incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
to select the group of existing pods which pods will be taken into consideration
for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
pod labels will be ignored. The default value is empty.
The same key is forbidden to exist in both matchLabelKeys and labelSelector.
Also, matchLabelKeys cannot be set when labelSelector isn't set.
This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).

+listType=atomic
+optional | | -| mismatchLabelKeys | []string| `[]string` | | | MismatchLabelKeys is a set of pod label keys to select which pods will
be taken into consideration. The keys are used to lookup values from the
incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
to select the group of existing pods which pods will be taken into consideration
for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
pod labels will be ignored. The default value is empty.
The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).

+listType=atomic
+optional | | +| matchLabelKeys | []string| `[]string` | | | MatchLabelKeys is a set of pod label keys to select which pods will
be taken into consideration. The keys are used to lookup values from the
incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
to select the group of existing pods which pods will be taken into consideration
for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
pod labels will be ignored. The default value is empty.
The same key is forbidden to exist in both matchLabelKeys and labelSelector.
Also, matchLabelKeys cannot be set when labelSelector isn't set.
This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | | +| mismatchLabelKeys | []string| `[]string` | | | MismatchLabelKeys is a set of pod label keys to select which pods will
be taken into consideration. The keys are used to lookup values from the
incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
to select the group of existing pods which pods will be taken into consideration
for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
pod labels will be ignored. The default value is empty.
The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | | | namespaceSelector | [LabelSelector](#label-selector)| `LabelSelector` | | | | | -| namespaces | []string| `[]string` | | | namespaces specifies a static list of namespace names that the term applies to.
The term is applied to the union of the namespaces listed in this field
and the ones selected by namespaceSelector.
null or empty namespaces list and null namespaceSelector means "this pod's namespace".
+optional
+listType=atomic | | +| namespaces | []string| `[]string` | | | namespaces specifies a static list of namespace names that the term applies to.
The term is applied to the union of the namespaces listed in this field
and the ones selected by namespaceSelector.
null or empty namespaces list and null namespaceSelector means "this pod's namespace". | | | topologyKey | string| `string` | | | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
the labelSelector in the specified namespaces, where co-located is defined as running on a node
whose value of the label with key topologyKey matches that of any node on which any of the
selected pods is running.
Empty topologyKey is not allowed. | | @@ -2741,8 +309,8 @@ a pod of the set of pods is running | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| preferredDuringSchedulingIgnoredDuringExecution | [][WeightedPodAffinityTerm](#weighted-pod-affinity-term)| `[]*WeightedPodAffinityTerm` | | | The scheduler will prefer to schedule pods to nodes that satisfy
the anti-affinity expressions specified by this field, but it may choose
a node that violates one or more of the expressions. The node that is
most preferred is the one with the greatest sum of weights, i.e.
for each node that meets all of the scheduling requirements (resource
request, requiredDuringScheduling anti-affinity expressions, etc.),
compute a sum by iterating through the elements of this field and adding
"weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
node(s) with the highest sum are the most preferred.
+optional
+listType=atomic | | -| requiredDuringSchedulingIgnoredDuringExecution | [][PodAffinityTerm](#pod-affinity-term)| `[]*PodAffinityTerm` | | | If the anti-affinity requirements specified by this field are not met at
scheduling time, the pod will not be scheduled onto the node.
If the anti-affinity requirements specified by this field cease to be met
at some point during pod execution (e.g. due to a pod label update), the
system may or may not try to eventually evict the pod from its node.
When there are multiple elements, the lists of nodes corresponding to each
podAffinityTerm are intersected, i.e. all terms must be satisfied.
+optional
+listType=atomic | | +| preferredDuringSchedulingIgnoredDuringExecution | [][WeightedPodAffinityTerm](#weighted-pod-affinity-term)| `[]*WeightedPodAffinityTerm` | | | The scheduler will prefer to schedule pods to nodes that satisfy
the anti-affinity expressions specified by this field, but it may choose
a node that violates one or more of the expressions. The node that is
most preferred is the one with the greatest sum of weights, i.e.
for each node that meets all of the scheduling requirements (resource
request, requiredDuringScheduling anti-affinity expressions, etc.),
compute a sum by iterating through the elements of this field and adding
"weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
node(s) with the highest sum are the most preferred. | | +| requiredDuringSchedulingIgnoredDuringExecution | [][PodAffinityTerm](#pod-affinity-term)| `[]*PodAffinityTerm` | | | If the anti-affinity requirements specified by this field are not met at
scheduling time, the pod will not be scheduled onto the node.
If the anti-affinity requirements specified by this field cease to be met
at some point during pod execution (e.g. due to a pod label update), the
system may or may not try to eventually evict the pod from its node.
When there are multiple elements, the lists of nodes corresponding to each
podAffinityTerm are intersected, i.e. all terms must be satisfied. | | @@ -2751,14 +319,13 @@ a pod of the set of pods is running > PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume when volume is mounted. -+enum | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| PodFSGroupChangePolicy | string| string | | PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume
when volume is mounted.
+enum | | +| PodFSGroupChangePolicy | string| string | | PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume
when volume is mounted. | | @@ -2789,17 +356,17 @@ container.securityContext take precedence over field values of PodSecurityContex | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | appArmorProfile | [AppArmorProfile](#app-armor-profile)| `AppArmorProfile` | | | | | -| fsGroup | int64 (formatted integer)| `int64` | | | 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.
+optional | | +| fsGroup | int64 (formatted integer)| `int64` | | | 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. | | | fsGroupChangePolicy | [PodFSGroupChangePolicy](#pod-f-s-group-change-policy)| `PodFSGroupChangePolicy` | | | | | -| runAsGroup | int64 (formatted integer)| `int64` | | | 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.
+optional | | -| runAsNonRoot | boolean| `bool` | | | 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.
+optional | | -| runAsUser | int64 (formatted integer)| `int64` | | | 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.
+optional | | +| runAsGroup | int64 (formatted integer)| `int64` | | | 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. | | +| runAsNonRoot | boolean| `bool` | | | 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. | | +| runAsUser | int64 (formatted integer)| `int64` | | | 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. | | | seLinuxChangePolicy | [PodSELinuxChangePolicy](#pod-s-e-linux-change-policy)| `PodSELinuxChangePolicy` | | | | | | seLinuxOptions | [SELinuxOptions](#s-e-linux-options)| `SELinuxOptions` | | | | | | seccompProfile | [SeccompProfile](#seccomp-profile)| `SeccompProfile` | | | | | -| supplementalGroups | []int64 (formatted integer)| `[]int64` | | | A list of groups applied to the first process run in each container, in
addition to the container's primary GID and fsGroup (if specified). If
the SupplementalGroupsPolicy feature is enabled, the
supplementalGroupsPolicy field determines whether these are in addition
to or instead of any group memberships defined in the container image.
If unspecified, no additional groups are added, though group memberships
defined in the container image may still be used, depending on the
supplementalGroupsPolicy field.
Note that this field cannot be set when spec.os.name is windows.
+optional
+listType=atomic | | +| supplementalGroups | []int64 (formatted integer)| `[]int64` | | | A list of groups applied to the first process run in each container, in
addition to the container's primary GID and fsGroup (if specified). If
the SupplementalGroupsPolicy feature is enabled, the
supplementalGroupsPolicy field determines whether these are in addition
to or instead of any group memberships defined in the container image.
If unspecified, no additional groups are added, though group memberships
defined in the container image may still be used, depending on the
supplementalGroupsPolicy field.
Note that this field cannot be set when spec.os.name is windows. | | | supplementalGroupsPolicy | [SupplementalGroupsPolicy](#supplemental-groups-policy)| `SupplementalGroupsPolicy` | | | | | -| sysctls | [][Sysctl](#sysctl)| `[]*Sysctl` | | | 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.
+optional
+listType=atomic | | +| sysctls | [][Sysctl](#sysctl)| `[]*Sysctl` | | | 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. | | | windowsOptions | [WindowsSecurityContextOptions](#windows-security-context-options)| `WindowsSecurityContextOptions` | | | | | @@ -2816,7 +383,7 @@ container.securityContext take precedence over field values of PodSecurityContex | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | fsType | string| `string` | | | fSType represents the filesystem type to mount
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. | | -| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | +| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts. | | | volumeID | string| `string` | | | volumeID uniquely identifies a Portworx volume | | @@ -2857,29 +424,26 @@ alive or ready to receive traffic. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | exec | [ExecAction](#exec-action)| `ExecAction` | | | | | -| failureThreshold | int32 (formatted integer)| `int32` | | | Minimum consecutive failures for the probe to be considered failed after having succeeded.
Defaults to 3. Minimum value is 1.
+optional | | +| failureThreshold | int32 (formatted integer)| `int32` | | | Minimum consecutive failures for the probe to be considered failed after having succeeded.
Defaults to 3. Minimum value is 1. | | | grpc | [GRPCAction](#g-rpc-action)| `GRPCAction` | | | | | | httpGet | [HTTPGetAction](#http-get-action)| `HTTPGetAction` | | | | | -| initialDelaySeconds | int32 (formatted integer)| `int32` | | | Number of seconds after the container has started before liveness probes are initiated.
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+optional | | -| periodSeconds | int32 (formatted integer)| `int32` | | | How often (in seconds) to perform the probe.
Default to 10 seconds. Minimum value is 1.
+optional | | -| successThreshold | int32 (formatted integer)| `int32` | | | Minimum consecutive successes for the probe to be considered successful after having failed.
Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.
+optional | | +| initialDelaySeconds | int32 (formatted integer)| `int32` | | | Number of seconds after the container has started before liveness probes are initiated.
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | | +| periodSeconds | int32 (formatted integer)| `int32` | | | How often (in seconds) to perform the probe.
Default to 10 seconds. Minimum value is 1. | | +| successThreshold | int32 (formatted integer)| `int32` | | | Minimum consecutive successes for the probe to be considered successful after having failed.
Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. | | | tcpSocket | [TCPSocketAction](#tcp-socket-action)| `TCPSocketAction` | | | | | -| terminationGracePeriodSeconds | int64 (formatted integer)| `int64` | | | Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
The grace period is the duration in seconds after the processes running in the pod are sent
a termination signal and the time when the processes are forcibly halted with a kill signal.
Set this value longer than the expected cleanup time for your process.
If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
value overrides the value provided by the pod spec.
Value must be non-negative integer. The value zero indicates stop immediately via
the kill signal (no opportunity to shut down).
This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.
+optional | | -| timeoutSeconds | int32 (formatted integer)| `int32` | | | Number of seconds after which the probe times out.
Defaults to 1 second. Minimum value is 1.
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
+optional | | +| terminationGracePeriodSeconds | int64 (formatted integer)| `int64` | | | Optional duration in seconds the pod needs to terminate gracefully upon probe failure.
The grace period is the duration in seconds after the processes running in the pod are sent
a termination signal and the time when the processes are forcibly halted with a kill signal.
Set this value longer than the expected cleanup time for your process.
If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this
value overrides the value provided by the pod spec.
Value must be non-negative integer. The value zero indicates stop immediately via
the kill signal (no opportunity to shut down).
This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.
Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. | | +| timeoutSeconds | int32 (formatted integer)| `int32` | | | Number of seconds after which the probe times out.
Defaults to 1 second. Minimum value is 1.
More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | | ### ProcMountType -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| ProcMountType | string| string | | +enum | | +| ProcMountType | string| string | | | | @@ -2908,8 +472,8 @@ alive or ready to receive traffic. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| defaultMode | int32 (formatted integer)| `int32` | | | defaultMode are the mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| sources | [][VolumeProjection](#volume-projection)| `[]*VolumeProjection` | | | sources is the list of volume projections. Each entry in this list
handles one source.
+optional
+listType=atomic | | +| defaultMode | int32 (formatted integer)| `int32` | | | defaultMode are the mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set. | | +| sources | [][VolumeProjection](#volume-projection)| `[]*VolumeProjection` | | | sources is the list of volume projections. Each entry in this list
handles one source. | | @@ -2940,14 +504,11 @@ alive or ready to receive traffic. ### Protocol -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| Protocol | string| string | | +enum | | +| Protocol | string| string | | | | @@ -2955,14 +516,13 @@ alive or ready to receive traffic. > PullPolicy describes a policy for if/when to pull a container image -+enum | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| PullPolicy | string| string | | PullPolicy describes a policy for if/when to pull a container image
+enum | | +| PullPolicy | string| string | | PullPolicy describes a policy for if/when to pull a container image | | @@ -3006,16 +566,16 @@ Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: -No precision is lost -No fractional digits will be emitted -The exponent (or suffix) is as large as possible. +- No precision is lost +- No fractional digits will be emitted +- The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: -1.5 will be serialized as "1500m" -1.5Gi will be serialized as "1536Mi" +- 1.5 will be serialized as "1500m" +- 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. @@ -3027,18 +587,11 @@ form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. - -+protobuf=true -+protobuf.embed=string -+protobuf.options.marshal=false -+protobuf.options.(gogoproto.goproto_stringer)=false -+k8s:deepcopy-gen=true -+k8s:openapi-gen=true -[interface{}](#interface) +[any](#any) ### QuobyteVolumeSource @@ -3054,11 +607,11 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| group | string| `string` | | | group to map volume access to
Default is no group
+optional | | -| readOnly | boolean| `bool` | | | readOnly here will force the Quobyte volume to be mounted with read-only permissions.
Defaults to false.
+optional | | +| group | string| `string` | | | group to map volume access to
Default is no group | | +| readOnly | boolean| `bool` | | | readOnly here will force the Quobyte volume to be mounted with read-only permissions.
Defaults to false. | | | registry | string| `string` | | | registry represents a single or multiple Quobyte Registry services
specified as a string as host:port pair (multiple entries are separated with commas)
which acts as the central registry for volumes | | -| tenant | string| `string` | | | tenant owning the given Quobyte volume in the Backend
Used with dynamically provisioned Quobyte volumes, value is set by the plugin
+optional | | -| user | string| `string` | | | user to map volume access to
Defaults to serivceaccount user
+optional | | +| tenant | string| `string` | | | tenant owning the given Quobyte volume in the Backend
Used with dynamically provisioned Quobyte volumes, value is set by the plugin | | +| user | string| `string` | | | user to map volume access to
Defaults to serivceaccount user | | | volume | string| `string` | | | volume is a string that references an already created Quobyte volume by name. | | @@ -3077,14 +630,14 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
TODO: how do we prevent errors in the filesystem from compromising the machine
+optional | | +| fsType | string| `string` | | | fsType is the filesystem type of the volume that you want to mount.
Tip: Ensure that the filesystem type is supported by the host operating system.
Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd
TODO: how do we prevent errors in the filesystem from compromising the machine | | | image | string| `string` | | | image is the rados image name.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | -| keyring | string| `string` | | | keyring is the path to key ring for RBDUser.
Default is /etc/ceph/keyring.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
+optional
+default="/etc/ceph/keyring" | | -| monitors | []string| `[]string` | | | monitors is a collection of Ceph monitors.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
+listType=atomic | | -| pool | string| `string` | | | pool is the rados pool name.
Default is rbd.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
+optional
+default="rbd" | | -| readOnly | boolean| `bool` | | | readOnly here will force the ReadOnly setting in VolumeMounts.
Defaults to false.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
+optional | | +| keyring | string| `string` | | | keyring is the path to key ring for RBDUser.
Default is /etc/ceph/keyring.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +| monitors | []string| `[]string` | | | monitors is a collection of Ceph monitors.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +| pool | string| `string` | | | pool is the rados pool name.
Default is rbd.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | +| readOnly | boolean| `bool` | | | readOnly here will force the ReadOnly setting in VolumeMounts.
Defaults to false.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | | secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| user | string| `string` | | | user is the rados user name.
Default is admin.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
+optional
+default="admin" | | +| user | string| `string` | | | user is the rados user name.
Default is admin.
More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | | @@ -3129,7 +682,7 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | name | string| `string` | | | Name must match the name of one entry in pod.spec.resourceClaims of
the Pod where this field is used. It makes that resource available
inside a container. | | -| request | string| `string` | | | Request is the name chosen for a request in the referenced claim.
If empty, everything from the claim is made available, otherwise
only the result of this request.

+optional | | +| request | string| `string` | | | Request is the name chosen for a request in the referenced claim.
If empty, everything from the claim is made available, otherwise
only the result of this request. | | @@ -3137,7 +690,6 @@ cause implementors to also use a fixed point implementation. > ResourceFieldSelector represents container resources (cpu, memory) and their output format -+structType=atomic @@ -3148,9 +700,9 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| containerName | string| `string` | | | Container name: required for volumes, optional for env vars
+optional | | +| containerName | string| `string` | | | Container name: required for volumes, optional for env vars | | | divisor | [Quantity](#quantity)| `Quantity` | | | | | -| resource | string| `string` | | | Required: resource to select | | +| resource | string| `string` | | | | | @@ -3183,7 +735,7 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| claims | [][ResourceClaim](#resource-claim)| `[]*ResourceClaim` | | | Claims lists the names of resources, defined in spec.resourceClaims,
that are used by this container.

This is an alpha field and requires enabling the
DynamicResourceAllocation feature gate.

This field is immutable. It can only be set for containers.

+listType=map
+listMapKey=name
+featureGate=DynamicResourceAllocation
+optional | | +| claims | [][ResourceClaim](#resource-claim)| `[]*ResourceClaim` | | | Claims lists the names of resources, defined in spec.resourceClaims,
that are used by this container.

This is an alpha field and requires enabling the
DynamicResourceAllocation feature gate.

This field is immutable. It can only be set for containers. | | | limits | [ResourceList](#resource-list)| `ResourceList` | | | | | | requests | [ResourceList](#resource-list)| `ResourceList` | | | | | @@ -3248,7 +800,7 @@ cause implementors to also use a fixed point implementation. -[interface{}](#interface) +[any](#any) ### RetryPolicy @@ -3348,10 +900,10 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| level | string| `string` | | | Level is SELinux level label that applies to the container.
+optional | | -| role | string| `string` | | | Role is a SELinux role label that applies to the container.
+optional | | -| type | string| `string` | | | Type is a SELinux type label that applies to the container.
+optional | | -| user | string| `string` | | | User is a SELinux user label that applies to the container.
+optional | | +| level | string| `string` | | | Level is SELinux level label that applies to the container. | | +| role | string| `string` | | | Role is a SELinux role label that applies to the container. | | +| type | string| `string` | | | Type is a SELinux type label that applies to the container. | | +| user | string| `string` | | | User is a SELinux user label that applies to the container. | | @@ -3369,14 +921,14 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs".
Default is "xfs".
+optional
+default="xfs" | | +| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs".
Default is "xfs". | | | gateway | string| `string` | | | gateway is the host address of the ScaleIO API Gateway. | | -| protectionDomain | string| `string` | | | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.
+optional | | -| readOnly | boolean| `bool` | | | readOnly Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | +| protectionDomain | string| `string` | | | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. | | +| readOnly | boolean| `bool` | | | readOnly Defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts. | | | secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | -| sslEnabled | boolean| `bool` | | | sslEnabled Flag enable/disable SSL communication with Gateway, default false
+optional | | -| storageMode | string| `string` | | | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
Default is ThinProvisioned.
+optional
+default="ThinProvisioned" | | -| storagePool | string| `string` | | | storagePool is the ScaleIO Storage Pool associated with the protection domain.
+optional | | +| sslEnabled | boolean| `bool` | | | sslEnabled Flag enable/disable SSL communication with Gateway, default false | | +| storageMode | string| `string` | | | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.
Default is ThinProvisioned. | | +| storagePool | string| `string` | | | storagePool is the ScaleIO Storage Pool associated with the protection domain. | | | system | string| `string` | | | system is the name of the storage system as configured in ScaleIO. | | | volumeName | string| `string` | | | volumeName is the name of a volume already created in the ScaleIO system
that is associated with this volume source. | | @@ -3396,31 +948,31 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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
+optional
+listType=atomic | | -| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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
+optional
+listType=atomic | | -| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated.
+optional
+patchMergeKey=name
+patchStrategy=merge
+listType=map
+listMapKey=name | | -| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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.
+optional
+listType=atomic | | -| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional | | +| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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 | | +| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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 | | +| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated. | | +| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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. | | +| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets. | | | imagePullPolicy | [PullPolicy](#pull-policy)| `PullPolicy` | | | | | | lifecycle | [Lifecycle](#lifecycle)| `Lifecycle` | | | | | | livenessProbe | [Probe](#probe)| `Probe` | | | | | | name | string| `string` | | | Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL).
Cannot be updated. | | -| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated.
+optional
+patchMergeKey=containerPort
+patchStrategy=merge
+listType=map
+listMapKey=containerPort
+listMapKey=protocol | | +| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated. | | | readinessProbe | [Probe](#probe)| `Probe` | | | | | -| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container.
+featureGate=InPlacePodVerticalScaling
+optional
+listType=atomic | | +| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container. | | | resources | [ResourceRequirements](#resource-requirements)| `ResourceRequirements` | | | | | | restartPolicy | [ContainerRestartPolicy](#container-restart-policy)| `ContainerRestartPolicy` | | | | | | securityContext | [SecurityContext](#security-context)| `SecurityContext` | | | | | | source | string| `string` | | | Source contains the source code of the script to execute | | | startupProbe | [Probe](#probe)| `Probe` | | | | | -| stdin | boolean| `bool` | | | 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.
+optional | | -| stdinOnce | boolean| `bool` | | | 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
+optional | | -| terminationMessagePath | string| `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.
+optional | | +| stdin | boolean| `bool` | | | 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. | | +| stdinOnce | boolean| `bool` | | | 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 | | +| terminationMessagePath | string| `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. | | | terminationMessagePolicy | [TerminationMessagePolicy](#termination-message-policy)| `TerminationMessagePolicy` | | | | | -| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false.
+optional | | -| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container.
+patchMergeKey=devicePath
+patchStrategy=merge
+listType=map
+listMapKey=devicePath
+optional | | -| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated.
+optional
+patchMergeKey=mountPath
+patchStrategy=merge
+listType=map
+listMapKey=mountPath | | -| workingDir | string| `string` | | | 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.
+optional | | +| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false. | | +| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container. | | +| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated. | | +| workingDir | string| `string` | | | 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. | | @@ -3428,7 +980,6 @@ cause implementors to also use a fixed point implementation. > Only one profile source may be set. -+union @@ -3439,7 +990,7 @@ cause implementors to also use a fixed point implementation. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| localhostProfile | string| `string` | | | localhostProfile indicates a profile defined in a file on the node should be used.
The profile must be preconfigured on the node to work.
Must be a descending path, relative to the kubelet's configured seccomp profile location.
Must be set if type is "Localhost". Must NOT be set for any other type.
+optional | | +| localhostProfile | string| `string` | | | localhostProfile indicates a profile defined in a file on the node should be used.
The profile must be preconfigured on the node to work.
Must be a descending path, relative to the kubelet's configured seccomp profile location.
Must be set if type is "Localhost". Must NOT be set for any other type. | | | type | [SeccompProfileType](#seccomp-profile-type)| `SeccompProfileType` | | | | | @@ -3447,14 +998,11 @@ cause implementors to also use a fixed point implementation. ### SeccompProfileType -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| SeccompProfileType | string| string | | +enum | | +| SeccompProfileType | string| string | | | | @@ -3473,28 +1021,25 @@ key-value pairs as environment variables. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | Specify whether the Secret must be defined
+optional | | +| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | +| optional | boolean| `bool` | | | Specify whether the Secret must be defined | | ### SecretKeySelector -> +structType=atomic - - **Properties** | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | key | string| `string` | | | The key of the secret to select from. Must be a valid secret key. | | -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | Specify whether the Secret or its key must be defined
+optional | | +| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | +| optional | boolean| `bool` | | | Specify whether the Secret or its key must be defined | | @@ -3515,9 +1060,9 @@ mode. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items if unspecified, each key-value pair in the Data field of the referenced
Secret will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the Secret,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
+listType=atomic | | -| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
+optional
+default=""
+kubebuilder:default=""
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | -| optional | boolean| `bool` | | | optional field specify whether the Secret or its key must be defined
+optional | | +| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items if unspecified, each key-value pair in the Data field of the referenced
Secret will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the Secret,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'. | | +| name | string| `string` | | | Name of the referent.
This field is effectively required, but due to backwards compatibility is
allowed to be empty. Instances of this type with an empty value here are
almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. | | +| optional | boolean| `bool` | | | optional field specify whether the Secret or its key must be defined | | @@ -3537,10 +1082,10 @@ Secret volumes support ownership management and SELinux relabeling. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| defaultMode | int32 (formatted integer)| `int32` | | | defaultMode is Optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values
for mode bits. Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set.
+optional | | -| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items If unspecified, each key-value pair in the Data field of the referenced
Secret will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the Secret,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'.
+optional
+listType=atomic | | -| optional | boolean| `bool` | | | optional field specify whether the Secret or its keys must be defined
+optional | | -| secretName | string| `string` | | | secretName is the name of the secret in the pod's namespace to use.
More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
+optional | | +| defaultMode | int32 (formatted integer)| `int32` | | | defaultMode is Optional: mode bits used to set permissions on created files by default.
Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
YAML accepts both octal and decimal values, JSON requires decimal values
for mode bits. Defaults to 0644.
Directories within the path are not affected by this setting.
This might be in conflict with other options that affect the file
mode, like fsGroup, and the result can be other mode bits set. | | +| items | [][KeyToPath](#key-to-path)| `[]*KeyToPath` | | | items If unspecified, each key-value pair in the Data field of the referenced
Secret will be projected into the volume as a file whose name is the
key and content is the value. If specified, the listed keys will be
projected into the specified paths, and unlisted keys will not be
present. If a key is specified which is not present in the Secret,
the volume setup will error unless it is marked optional. Paths must be
relative and may not contain the '..' path or start with '..'. | | +| optional | boolean| `bool` | | | optional field specify whether the Secret or its keys must be defined | | +| secretName | string| `string` | | | secretName is the name of the secret in the pod's namespace to use.
More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | | @@ -3559,15 +1104,15 @@ are set, the values in SecurityContext take precedence. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| allowPrivilegeEscalation | boolean| `bool` | | | AllowPrivilegeEscalation controls whether a process can gain more
privileges than its parent process. This bool directly controls if
the no_new_privs flag will be set on the container process.
AllowPrivilegeEscalation is true always when the container is:
1) run as Privileged
2) has CAP_SYS_ADMIN
Note that this field cannot be set when spec.os.name is windows.
+optional | | +| allowPrivilegeEscalation | boolean| `bool` | | | AllowPrivilegeEscalation controls whether a process can gain more
privileges than its parent process. This bool directly controls if
the no_new_privs flag will be set on the container process.
AllowPrivilegeEscalation is true always when the container is:
1) run as Privileged
2) has CAP_SYS_ADMIN
Note that this field cannot be set when spec.os.name is windows. | | | appArmorProfile | [AppArmorProfile](#app-armor-profile)| `AppArmorProfile` | | | | | | capabilities | [Capabilities](#capabilities)| `Capabilities` | | | | | -| privileged | boolean| `bool` | | | Run container in privileged mode.
Processes in privileged containers are essentially equivalent to root on the host.
Defaults to false.
Note that this field cannot be set when spec.os.name is windows.
+optional | | +| privileged | boolean| `bool` | | | Run container in privileged mode.
Processes in privileged containers are essentially equivalent to root on the host.
Defaults to false.
Note that this field cannot be set when spec.os.name is windows. | | | procMount | [ProcMountType](#proc-mount-type)| `ProcMountType` | | | | | -| readOnlyRootFilesystem | boolean| `bool` | | | Whether this container has a read-only root filesystem.
Default is false.
Note that this field cannot be set when spec.os.name is windows.
+optional | | -| runAsGroup | int64 (formatted integer)| `int64` | | | The GID to run the entrypoint of the container process.
Uses runtime default if unset.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
Note that this field cannot be set when spec.os.name is windows.
+optional | | -| runAsNonRoot | boolean| `bool` | | | 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 PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
+optional | | -| runAsUser | int64 (formatted integer)| `int64` | | | The UID to run the entrypoint of the container process.
Defaults to user specified in image metadata if unspecified.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
Note that this field cannot be set when spec.os.name is windows.
+optional | | +| readOnlyRootFilesystem | boolean| `bool` | | | Whether this container has a read-only root filesystem.
Default is false.
Note that this field cannot be set when spec.os.name is windows. | | +| runAsGroup | int64 (formatted integer)| `int64` | | | The GID to run the entrypoint of the container process.
Uses runtime default if unset.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
Note that this field cannot be set when spec.os.name is windows. | | +| runAsNonRoot | boolean| `bool` | | | 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 PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence. | | +| runAsUser | int64 (formatted integer)| `int64` | | | The UID to run the entrypoint of the container process.
Defaults to user specified in image metadata if unspecified.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
Note that this field cannot be set when spec.os.name is windows. | | | seLinuxOptions | [SELinuxOptions](#s-e-linux-options)| `SELinuxOptions` | | | | | | seccompProfile | [SeccompProfile](#seccomp-profile)| `SeccompProfile` | | | | | | windowsOptions | [WindowsSecurityContextOptions](#windows-security-context-options)| `WindowsSecurityContextOptions` | | | | | @@ -3589,7 +1134,7 @@ are set, the values in SecurityContext take precedence. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | configMapKeyRef | [ConfigMapKeySelector](#config-map-key-selector)| `ConfigMapKeySelector` | | | | | -| namespace | string| `string` | | `"[namespace of workflow]"`| | | +| namespace | string| `string` | | | Namespace is the namespace of the configmap, default: [namespace of workflow] | | @@ -3631,8 +1176,8 @@ otherwise). | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| audience | string| `string` | | | audience is the intended audience of the token. A recipient of a token
must identify itself with an identifier specified in the audience of the
token, and otherwise should reject the token. The audience defaults to the
identifier of the apiserver.
+optional | | -| expirationSeconds | int64 (formatted integer)| `int64` | | | expirationSeconds is the requested duration of validity of the service
account token. As the token approaches expiration, the kubelet volume
plugin will proactively rotate the service account token. The kubelet will
start trying to rotate the token if the token is older than 80 percent of
its time to live or if the token is older than 24 hours.Defaults to 1 hour
and must be at least 10 minutes.
+optional | | +| audience | string| `string` | | | audience is the intended audience of the token. A recipient of a token
must identify itself with an identifier specified in the audience of the
token, and otherwise should reject the token. The audience defaults to the
identifier of the apiserver. | | +| expirationSeconds | int64 (formatted integer)| `int64` | | | expirationSeconds is the requested duration of validity of the service
account token. As the token approaches expiration, the kubelet volume
plugin will proactively rotate the service account token. The kubelet will
start trying to rotate the token if the token is older than 80 percent of
its time to live or if the token is older than 24 hours.Defaults to 1 hour
and must be at least 10 minutes. | | | path | string| `string` | | | path is the path relative to the mount point of the file to project the
token into. | | @@ -3674,11 +1219,11 @@ otherwise). | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+optional | | -| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts.
+optional | | +| fsType | string| `string` | | | fsType is the filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. | | +| readOnly | boolean| `bool` | | | readOnly defaults to false (read/write). ReadOnly here will force
the ReadOnly setting in VolumeMounts. | | | secretRef | [LocalObjectReference](#local-object-reference)| `LocalObjectReference` | | | | | | volumeName | string| `string` | | | volumeName is the human-readable name of the StorageOS volume. Volume
names are only unique within a namespace. | | -| volumeNamespace | string| `string` | | | volumeNamespace specifies the scope of the volume within StorageOS. If no
namespace is specified then the Pod's namespace will be used. This allows the
Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
Set VolumeName to any name to override the default behaviour.
Set to "default" if you are not using namespaces within StorageOS.
Namespaces that do not pre-exist within StorageOS will be created.
+optional | | +| volumeNamespace | string| `string` | | | volumeNamespace specifies the scope of the volume within StorageOS. If no
namespace is specified then the Pod's namespace will be used. This allows the
Kubernetes name scoping to be mirrored within StorageOS for tighter integration.
Set VolumeName to any name to override the default behaviour.
Set to "default" if you are not using namespaces within StorageOS.
Namespaces that do not pre-exist within StorageOS will be created. | | @@ -3687,14 +1232,13 @@ otherwise). > SupplementalGroupsPolicy defines how supplemental groups of the first container processes are calculated. -+enum | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| SupplementalGroupsPolicy | string| string | | SupplementalGroupsPolicy defines how supplemental groups
of the first container processes are calculated.
+enum | | +| SupplementalGroupsPolicy | string| string | | SupplementalGroupsPolicy defines how supplemental groups
of the first container processes are calculated. | | @@ -3703,7 +1247,7 @@ of the first container processes are calculated. -[interface{}](#interface) +[any](#any) ### SuspendTemplate @@ -3777,7 +1321,7 @@ of the first container processes are calculated. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| host | string| `string` | | | Optional: Host name to connect to, defaults to the pod IP.
+optional | | +| host | string| `string` | | | Optional: Host name to connect to, defaults to the pod IP. | | | port | [IntOrString](#int-or-string)| `IntOrString` | | | | | @@ -3785,14 +1329,11 @@ of the first container processes are calculated. ### TaintEffect -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| TaintEffect | string| string | | +enum | | +| TaintEffect | string| string | | | | @@ -3839,9 +1380,9 @@ of the first container processes are calculated. | data | [Data](#data)| `Data` | | | | | | executor | [ExecutorConfig](#executor-config)| `ExecutorConfig` | | | | | | failFast | boolean| `bool` | | | FailFast, if specified, will fail this template if any of its child pods has failed. This is useful for when this
template is expanded with `withItems`, etc. | | -| hostAliases | [][HostAlias](#host-alias)| `[]*HostAlias` | | | HostAliases is an optional list of hosts and IPs that will be injected into the pod spec
+patchStrategy=merge
+patchMergeKey=ip | | +| hostAliases | [][HostAlias](#host-alias)| `[]*HostAlias` | | | HostAliases is an optional list of hosts and IPs that will be injected into the pod spec | | | http | [HTTP](#http)| `HTTP` | | | | | -| initContainers | [][UserContainer](#user-container)| `[]*UserContainer` | | | InitContainers is a list of containers which run before the main container.
+patchStrategy=merge
+patchMergeKey=name | | +| initContainers | [][UserContainer](#user-container)| `[]*UserContainer` | | | InitContainers is a list of containers which run before the main container. | | | inputs | [Inputs](#inputs)| `Inputs` | | | | | | memoize | [Memoize](#memoize)| `Memoize` | | | | | | metadata | [Metadata](#metadata)| `Metadata` | | | | | @@ -3856,17 +1397,17 @@ of the first container processes are calculated. | priorityClassName | string| `string` | | | PriorityClassName to apply to workflow pods. | | | resource | [ResourceTemplate](#resource-template)| `ResourceTemplate` | | | | | | retryStrategy | [RetryStrategy](#retry-strategy)| `RetryStrategy` | | | | | -| schedulerName | string| `string` | | | If specified, the pod will be dispatched by specified scheduler.
Or it will be dispatched by workflow scope scheduler if specified.
If neither specified, the pod will be dispatched by default scheduler.
+optional | | +| schedulerName | string| `string` | | | If specified, the pod will be dispatched by specified scheduler.
Or it will be dispatched by workflow scope scheduler if specified.
If neither specified, the pod will be dispatched by default scheduler. | | | script | [ScriptTemplate](#script-template)| `ScriptTemplate` | | | | | | securityContext | [PodSecurityContext](#pod-security-context)| `PodSecurityContext` | | | | | | serviceAccountName | string| `string` | | | ServiceAccountName to apply to workflow pods | | -| sidecars | [][UserContainer](#user-container)| `[]*UserContainer` | | | Sidecars is a list of containers which run alongside the main container
Sidecars are automatically killed when the main container completes
+patchStrategy=merge
+patchMergeKey=name | | +| sidecars | [][UserContainer](#user-container)| `[]*UserContainer` | | | Sidecars is a list of containers which run alongside the main container
Sidecars are automatically killed when the main container completes | | | steps | [][ParallelSteps](#parallel-steps)| `[]ParallelSteps` | | | Steps define a series of sequential/parallel workflow steps | | | suspend | [SuspendTemplate](#suspend-template)| `SuspendTemplate` | | | | | | synchronization | [Synchronization](#synchronization)| `Synchronization` | | | | | | timeout | string| `string` | | | Timeout allows to set the total node execution timeout duration counting from the node's start time.
This duration also includes time in which the node spends in Pending state. This duration may not be applied to Step or DAG templates. | | -| tolerations | [][Toleration](#toleration)| `[]*Toleration` | | | Tolerations to apply to workflow pods.
+patchStrategy=merge
+patchMergeKey=key | | -| volumes | [][Volume](#volume)| `[]*Volume` | | | Volumes is a list of volumes that can be mounted by containers in a template.
+patchStrategy=merge
+patchMergeKey=name | | +| tolerations | [][Toleration](#toleration)| `[]*Toleration` | | | Tolerations to apply to workflow pods. | | +| volumes | [][Volume](#volume)| `[]*Volume` | | | Volumes is a list of volumes that can be mounted by containers in a template. | | @@ -3890,14 +1431,11 @@ of the first container processes are calculated. ### TerminationMessagePolicy -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| TerminationMessagePolicy | string| string | | +enum | | +| TerminationMessagePolicy | string| string | | | | @@ -3917,24 +1455,21 @@ the triple using the matching operator . | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| | effect | [TaintEffect](#taint-effect)| `TaintEffect` | | | | | -| key | string| `string` | | | Key is the taint key that the toleration applies to. Empty means match all taint keys.
If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+optional | | +| key | string| `string` | | | Key is the taint key that the toleration applies to. Empty means match all taint keys.
If the key is empty, operator must be Exists; this combination means to match all values and all keys. | | | operator | [TolerationOperator](#toleration-operator)| `TolerationOperator` | | | | | -| tolerationSeconds | int64 (formatted integer)| `int64` | | | TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
it is not set, which means tolerate the taint forever (do not evict). Zero and
negative values will be treated as 0 (evict immediately) by the system.
+optional | | -| value | string| `string` | | | Value is the taint value the toleration matches to.
If the operator is Exists, the value should be empty, otherwise just a regular string.
+optional | | +| tolerationSeconds | int64 (formatted integer)| `int64` | | | TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
it is not set, which means tolerate the taint forever (do not evict). Zero and
negative values will be treated as 0 (evict immediately) by the system. | | +| value | string| `string` | | | Value is the taint value the toleration matches to.
If the operator is Exists, the value should be empty, otherwise just a regular string. | | ### TolerationOperator -> +enum - - | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| TolerationOperator | string| string | | +enum | | +| TolerationOperator | string| string | | | | @@ -3974,20 +1509,8 @@ the triple using the matching operator . ### TypedLocalObjectReference -> New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. -1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular -restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". -Those cannot be well described when embedded. -2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. -3. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity -during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple -and the version of the actual struct is irrelevant. -4. We cannot easily change it. Because this type is embedded in many locations, updates to this type -will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. - -Instead of using this type, create a locally provided and used type that is well-focused on your reference. -For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . -+structType=atomic +> TypedLocalObjectReference contains enough information to let you locate the +typed referenced object inside the same namespace. @@ -3998,7 +1521,7 @@ For example, ServiceReferences for admission registration: https://github.com/ku | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| apiGroup | string| `string` | | | APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
+optional | | +| apiGroup | string| `string` | | | APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required. | | | kind | string| `string` | | | Kind is the type of resource being referenced | | | name | string| `string` | | | Name is the name of resource being referenced | | @@ -4018,10 +1541,10 @@ For example, ServiceReferences for admission registration: https://github.com/ku | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| apiGroup | string| `string` | | | APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required.
+optional | | +| apiGroup | string| `string` | | | APIGroup is the group for the resource being referenced.
If APIGroup is not specified, the specified Kind must be in the core API group.
For any other third-party types, APIGroup is required. | | | kind | string| `string` | | | Kind is the type of resource being referenced | | | name | string| `string` | | | Name is the name of resource being referenced | | -| namespace | string| `string` | | | Namespace is the namespace of resource being referenced
Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
+featureGate=CrossNamespaceVolumeDataSource
+optional | | +| namespace | string| `string` | | | Namespace is the namespace of resource being referenced
Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.
(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. | | @@ -4045,14 +1568,13 @@ intent and helps make sure that UIDs and names do not get conflated. > URIScheme identifies the scheme used for connection to a host for Get actions -+enum | Name | Type | Go type | Default | Description | Example | |------|------|---------| ------- |-------------|---------| -| URIScheme | string| string | | URIScheme identifies the scheme used for connection to a host for Get actions
+enum | | +| URIScheme | string| string | | URIScheme identifies the scheme used for connection to a host for Get actions | | @@ -4067,31 +1589,100 @@ intent and helps make sure that UIDs and names do not get conflated. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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
+optional
+listType=atomic | | -| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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
+optional
+listType=atomic | | -| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated.
+optional
+patchMergeKey=name
+patchStrategy=merge
+listType=map
+listMapKey=name | | -| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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.
+optional
+listType=atomic | | -| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets.
+optional | | +| args | []string| `[]string` | | | Arguments to the entrypoint.
The container 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 | | +| command | []string| `[]string` | | | Entrypoint array. Not executed within a shell.
The container 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 | | +| env | [][EnvVar](#env-var)| `[]*EnvVar` | | | List of environment variables to set in the container.
Cannot be updated. | | +| envFrom | [][EnvFromSource](#env-from-source)| `[]*EnvFromSource` | | | 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. | | +| image | string| `string` | | | Container image name.
More info: https://kubernetes.io/docs/concepts/containers/images
This field is optional to allow higher level config management to default or override
container images in workload controllers like Deployments and StatefulSets. | | | imagePullPolicy | [PullPolicy](#pull-policy)| `PullPolicy` | | | | | | lifecycle | [Lifecycle](#lifecycle)| `Lifecycle` | | | | | | livenessProbe | [Probe](#probe)| `Probe` | | | | | | mirrorVolumeMounts | boolean| `bool` | | | MirrorVolumeMounts will mount the same volumes specified in the main container
to the container (including artifacts), at the same mountPaths. This enables
dind daemon to partially see the same filesystem as the main container in
order to use features such as docker volume binding | | | name | string| `string` | | | Name of the container specified as a DNS_LABEL.
Each container in a pod must have a unique name (DNS_LABEL).
Cannot be updated. | | -| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated.
+optional
+patchMergeKey=containerPort
+patchStrategy=merge
+listType=map
+listMapKey=containerPort
+listMapKey=protocol | | +| ports | [][ContainerPort](#container-port)| `[]*ContainerPort` | | | List of ports to expose from the container. Not specifying a port here
DOES NOT prevent that port from being exposed. Any port which is
listening on the default "0.0.0.0" address inside a container will be
accessible from the network.
Modifying this array with strategic merge patch may corrupt the data.
For more information See https://github.com/kubernetes/kubernetes/issues/108255.
Cannot be updated. | | | readinessProbe | [Probe](#probe)| `Probe` | | | | | -| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container.
+featureGate=InPlacePodVerticalScaling
+optional
+listType=atomic | | +| resizePolicy | [][ContainerResizePolicy](#container-resize-policy)| `[]*ContainerResizePolicy` | | | Resources resize policy for the container. | | | resources | [ResourceRequirements](#resource-requirements)| `ResourceRequirements` | | | | | | restartPolicy | [ContainerRestartPolicy](#container-restart-policy)| `ContainerRestartPolicy` | | | | | | securityContext | [SecurityContext](#security-context)| `SecurityContext` | | | | | | startupProbe | [Probe](#probe)| `Probe` | | | | | -| stdin | boolean| `bool` | | | 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.
+optional | | -| stdinOnce | boolean| `bool` | | | 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
+optional | | -| terminationMessagePath | string| `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.
+optional | | +| stdin | boolean| `bool` | | | 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. | | +| stdinOnce | boolean| `bool` | | | 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 | | +| terminationMessagePath | string| `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. | | | terminationMessagePolicy | [TerminationMessagePolicy](#termination-message-policy)| `TerminationMessagePolicy` | | | | | -| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false.
+optional | | -| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container.
+patchMergeKey=devicePath
+patchStrategy=merge
+listType=map
+listMapKey=devicePath
+optional | | -| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated.
+optional
+patchMergeKey=mountPath
+patchStrategy=merge
+listType=map
+listMapKey=mountPath | | -| workingDir | string| `string` | | | 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.
+optional | | +| tty | boolean| `bool` | | | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.
Default is false. | | +| volumeDevices | [][VolumeDevice](#volume-device)| `[]*VolumeDevice` | | | volumeDevices is the list of block devices to be used by the container. | | +| volumeMounts | [][VolumeMount](#volume-mount)| `[]*VolumeMount` | | | Pod volumes to mount into the container's filesystem.
Cannot be updated. | | +| workingDir | string| `string` | | | 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. | | + + + +### V1HTTPHeader + + +> HTTPHeader describes a custom header to be used in HTTP probes + + + + + + +**Properties** + +| Name | Type | Go type | Required | Default | Description | Example | +|------|------|---------|:--------:| ------- |-------------|---------| +| name | string| `string` | | | The header field name.
This will be canonicalized upon output, so case-variant names will be understood as the same header. | | +| value | string| `string` | | | The header field value | | + + + +### V1ObjectMeta + + +> ObjectMeta is metadata that all persisted resources must have, which includes all objects +users must create. + + + + + + +**Properties** + +| Name | Type | Go type | Required | Default | Description | Example | +|------|------|---------|:--------:| ------- |-------------|---------| +| annotations | map of string| `map[string]string` | | | Annotations is an unstructured key value map stored with a resource that may be
set by external tools to store and retrieve arbitrary metadata. They are not
queryable and should be preserved when modifying objects.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations | | +| creationTimestamp | string| `string` | | | CreationTimestamp is a timestamp representing the server time when this object was
created. It is not guaranteed to be set in happens-before order across separate operations.
Clients may not set this value. It is represented in RFC3339 form and is in UTC.

Populated by the system.
Read-only.
Null for lists.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | | +| deletionGracePeriodSeconds | int64 (formatted integer)| `int64` | | | Number of seconds allowed for this object to gracefully terminate before
it will be removed from the system. Only set when deletionTimestamp is also set.
May only be shortened.
Read-only. | | +| deletionTimestamp | string| `string` | | | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This
field is set by the server when a graceful deletion is requested by the user, and is not
directly settable by a client. The resource is expected to be deleted (no longer visible
from resource lists, and not reachable by name) after the time in this field, once the
finalizers list is empty. As long as the finalizers list contains items, deletion is blocked.
Once the deletionTimestamp is set, this value may not be unset or be set further into the
future, although it may be shortened or the resource may be deleted prior to this time.
For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react
by sending a graceful termination signal to the containers in the pod. After that 30 seconds,
the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup,
remove the pod from the API. In the presence of network partitions, this object may still
exist after this timestamp, until an administrator or automated process can determine the
resource is fully terminated.
If not set, graceful deletion of the object has not been requested.

Populated by the system when a graceful deletion is requested.
Read-only.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | | +| finalizers | []string| `[]string` | | | Must be empty before the object is deleted from the registry. Each entry
is an identifier for the responsible component that will remove the entry
from the list. If the deletionTimestamp of the object is non-nil, entries
in this list can only be removed.
Finalizers may be processed and removed in any order. Order is NOT enforced
because it introduces significant risk of stuck finalizers.
finalizers is a shared field, any actor with permission can reorder it.
If the finalizer list is processed in order, then this can lead to a situation
in which the component responsible for the first finalizer in the list is
waiting for a signal (field value, external system, or other) produced by a
component responsible for a finalizer later in the list, resulting in a deadlock.
Without enforced ordering finalizers are free to order amongst themselves and
are not vulnerable to ordering changes in the list. | | +| generateName | string| `string` | | | GenerateName is an optional prefix, used by the server, to generate a unique
name ONLY IF the Name field has not been provided.
If this field is used, the name returned to the client will be different
than the name passed. This value will also be combined with a unique suffix.
The provided value has the same validation rules as the Name field,
and may be truncated by the length of the suffix required to make the value
unique on the server.

If this field is specified and the generated name exists, the server will return a 409.

Applied only if Name is not specified.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency | | +| generation | int64 (formatted integer)| `int64` | | | A sequence number representing a specific generation of the desired state.
Populated by the system. Read-only. | | +| labels | map of string| `map[string]string` | | | Map of string keys and values that can be used to organize and categorize
(scope and select) objects. May match selectors of replication controllers
and services.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels | | +| managedFields | [][ManagedFieldsEntry](#managed-fields-entry)| `[]*ManagedFieldsEntry` | | | ManagedFields maps workflow-id and version to the set of fields
that are managed by that workflow. This is mostly for internal
housekeeping, and users typically shouldn't need to set or
understand this field. A workflow can be the user's name, a
controller's name, or the name of a specific apply path like
"ci-cd". The set of fields is always in the version that the
workflow used when modifying the object. | | +| name | string| `string` | | | Name must be unique within a namespace. Is required when creating resources, although
some resources may allow a client to request the generation of an appropriate name
automatically. Name is primarily intended for creation idempotence and configuration
definition.
Cannot be updated.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | | +| namespace | string| `string` | | | Namespace defines the space within which each name must be unique. An empty namespace is
equivalent to the "default" namespace, but "default" is the canonical representation.
Not all objects are required to be scoped to a namespace - the value of this field for
those objects will be empty.

Must be a DNS_LABEL.
Cannot be updated.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces | | +| ownerReferences | [][OwnerReference](#owner-reference)| `[]*OwnerReference` | | | List of objects depended by this object. If ALL objects in the list have
been deleted, this object will be garbage collected. If this object is managed by a controller,
then an entry in this list will point to this controller, with the controller field set to true.
There cannot be more than one managing controller. | | +| resourceVersion | string| `string` | | | An opaque value that represents the internal version of this object that can
be used by clients to determine when objects have changed. May be used for optimistic
concurrency, change detection, and the watch operation on a resource or set of resources.
Clients must treat these values as opaque and passed unmodified back to the server.
They may only be valid for a particular resource or set of resources.

Populated by the system.
Read-only.
Value must be treated as opaque by clients and .
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | | +| selfLink | string| `string` | | | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | | +| uid | [UID](#uid)| `UID` | | | | | + + + +### V1alpha1HTTPHeader + + + + + + +**Properties** + +| Name | Type | Go type | Required | Default | Description | Example | +|------|------|---------|:--------:| ------- |-------------|---------| +| name | string| `string` | | | | | +| value | string| `string` | | | | | +| valueFrom | [HTTPHeaderSource](#http-header-source)| `HTTPHeaderSource` | | | | | @@ -4196,10 +1787,10 @@ intent and helps make sure that UIDs and names do not get conflated. | mountPath | string| `string` | | | Path within the container at which the volume should be mounted. Must
not contain ':'. | | | mountPropagation | [MountPropagationMode](#mount-propagation-mode)| `MountPropagationMode` | | | | | | name | string| `string` | | | This must match the Name of a Volume. | | -| readOnly | boolean| `bool` | | | Mounted read-only if true, read-write otherwise (false or unspecified).
Defaults to false.
+optional | | +| readOnly | boolean| `bool` | | | Mounted read-only if true, read-write otherwise (false or unspecified).
Defaults to false. | | | recursiveReadOnly | [RecursiveReadOnlyMode](#recursive-read-only-mode)| `RecursiveReadOnlyMode` | | | | | -| subPath | string| `string` | | | Path within the volume from which the container's volume should be mounted.
Defaults to "" (volume's root).
+optional | | -| subPathExpr | string| `string` | | | Expanded path within the volume from which the container's volume should be mounted.
Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
Defaults to "" (volume's root).
SubPathExpr and SubPath are mutually exclusive.
+optional | | +| subPath | string| `string` | | | Path within the volume from which the container's volume should be mounted.
Defaults to "" (volume's root). | | +| subPathExpr | string| `string` | | | Expanded path within the volume from which the container's volume should be mounted.
Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.
Defaults to "" (volume's root).
SubPathExpr and SubPath are mutually exclusive. | | @@ -4252,9 +1843,9 @@ intent and helps make sure that UIDs and names do not get conflated. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| fsType | string| `string` | | | fsType is filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+optional | | -| storagePolicyID | string| `string` | | | storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+optional | | -| storagePolicyName | string| `string` | | | storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+optional | | +| fsType | string| `string` | | | fsType is filesystem type to mount.
Must be a filesystem type supported by the host operating system.
Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. | | +| storagePolicyID | string| `string` | | | storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. | | +| storagePolicyName | string| `string` | | | storagePolicyName is the storage Policy Based Management (SPBM) profile name. | | | volumePath | string| `string` | | | volumePath is the path that identifies vSphere volume vmdk | | @@ -4289,10 +1880,10 @@ intent and helps make sure that UIDs and names do not get conflated. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| gmsaCredentialSpec | string| `string` | | | GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field.
+optional | | -| gmsaCredentialSpecName | string| `string` | | | GMSACredentialSpecName is the name of the GMSA credential spec to use.
+optional | | -| hostProcess | boolean| `bool` | | | HostProcess determines if a container should be run as a 'Host Process' container.
All of a Pod's containers must have the same effective HostProcess value
(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
In addition, if HostProcess is true then HostNetwork must also be set to true.
+optional | | -| runAsUserName | string| `string` | | | The UserName in Windows to run the entrypoint of the container process.
Defaults to the user specified in image metadata if unspecified.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence.
+optional | | +| gmsaCredentialSpec | string| `string` | | | GMSACredentialSpec is where the GMSA admission webhook
(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
GMSA credential spec named by the GMSACredentialSpecName field. | | +| gmsaCredentialSpecName | string| `string` | | | GMSACredentialSpecName is the name of the GMSA credential spec to use. | | +| hostProcess | boolean| `bool` | | | HostProcess determines if a container should be run as a 'Host Process' container.
All of a Pod's containers must have the same effective HostProcess value
(it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
In addition, if HostProcess is true then HostNetwork must also be set to true. | | +| runAsUserName | string| `string` | | | The UserName in Windows to run the entrypoint of the container process.
Defaults to the user specified in image metadata if unspecified.
May also be set in PodSecurityContext. If set in both SecurityContext and
PodSecurityContext, the value specified in SecurityContext takes precedence. | | @@ -4307,7 +1898,7 @@ intent and helps make sure that UIDs and names do not get conflated. | Name | Type | Go type | Required | Default | Description | Example | |------|------|---------|:--------:| ------- |-------------|---------| -| metadata | [ObjectMeta](#object-meta)| `ObjectMeta` | ✓ | | | | +| metadata | [ExecutorObjectMeta](#executor-object-meta)| `ExecutorObjectMeta` | ✓ | | | | @@ -4319,4 +1910,4 @@ intent and helps make sure that UIDs and names do not get conflated. -[interface{}](#interface) +[any](#any) diff --git a/docs/webhooks.md b/docs/webhooks.md index c0cb45b7fe6e..ac47433506bd 100644 --- a/docs/webhooks.md +++ b/docs/webhooks.md @@ -14,6 +14,8 @@ Additionally create: * A secret named `argo-workflows-webhook-clients` listing the service accounts: [example](https://raw.githubusercontent.com/argoproj/argo-workflows/main/manifests/quick-start/base/webhooks/argo-workflows-webhook-clients-secret.yaml) +Webhook request bodies are limited to a maximum size of 2MB. + The secret `argo-workflows-webhook-clients` tells Argo: * What type of webhook the account can be used for, e.g. `github`. diff --git a/go.mod b/go.mod index d5dbf7bbc4af..a8f793526bec 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/argoproj/argo-workflows/v3 -go 1.24.4 +go 1.25.0 require ( cloud.google.com/go/storage v1.50.0 @@ -22,7 +22,7 @@ require ( github.com/expr-lang/expr v1.17.7 github.com/gavv/httpexpect/v2 v2.16.0 github.com/go-git/go-git/v5 v5.14.0 - github.com/go-jose/go-jose/v3 v3.0.4 + github.com/go-jose/go-jose/v3 v3.0.5 github.com/go-openapi/jsonreference v0.21.0 github.com/go-sql-driver/mysql v1.7.1 github.com/gogo/protobuf v1.3.2 @@ -47,26 +47,26 @@ require ( github.com/spf13/cobra v1.9.1 github.com/spf13/pflag v1.0.6 github.com/spf13/viper v1.20.0 - github.com/stretchr/testify v1.10.0 + github.com/stretchr/testify v1.11.1 github.com/tidwall/gjson v1.18.0 github.com/upper/db/v4 v4.7.0 github.com/valyala/fasttemplate v1.2.2 github.com/xeipuuv/gojsonschema v1.2.0 go.opentelemetry.io/contrib/instrumentation/runtime v0.48.0 - go.opentelemetry.io/otel v1.34.0 + go.opentelemetry.io/otel v1.39.0 go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.23.0 go.opentelemetry.io/otel/exporters/prometheus v0.45.1 - go.opentelemetry.io/otel/metric v1.34.0 - go.opentelemetry.io/otel/sdk v1.34.0 - go.opentelemetry.io/otel/sdk/metric v1.34.0 - golang.org/x/crypto v0.36.0 + go.opentelemetry.io/otel/metric v1.39.0 + go.opentelemetry.io/otel/sdk v1.39.0 + go.opentelemetry.io/otel/sdk/metric v1.39.0 + golang.org/x/crypto v0.52.0 golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 - golang.org/x/oauth2 v0.28.0 - golang.org/x/sync v0.12.0 + golang.org/x/oauth2 v0.34.0 + golang.org/x/sync v0.20.0 golang.org/x/time v0.11.0 google.golang.org/api v0.228.0 - google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb - google.golang.org/grpc v1.71.1 + google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 + google.golang.org/grpc v1.79.3 gopkg.in/go-playground/webhooks.v5 v5.17.0 k8s.io/api v0.32.2 k8s.io/apimachinery v0.32.2 @@ -82,12 +82,12 @@ require ( ) require ( - cel.dev/expr v0.19.2 // indirect + cel.dev/expr v0.25.1 // indirect cloud.google.com/go/auth v0.15.0 // indirect cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect cloud.google.com/go/monitoring v1.24.0 // indirect dario.cat/mergo v1.0.1 // indirect - github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 // indirect + github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.30.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.50.0 // indirect github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.50.0 // indirect github.com/TylerBrock/colorjson v0.0.0-20200706003622-8a50f05110d2 // indirect @@ -97,16 +97,17 @@ require ( github.com/blang/semver/v4 v4.0.0 // indirect github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/cloudflare/circl v1.6.0 // indirect - github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 // indirect + github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5 // indirect github.com/containerd/stargz-snapshotter/estargz v0.14.3 // indirect github.com/cyphar/filepath-securejoin v0.4.1 // indirect github.com/distribution/reference v0.6.0 // indirect - github.com/envoyproxy/go-control-plane/envoy v1.32.4 // indirect - github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect + github.com/envoyproxy/go-control-plane/envoy v1.36.0 // indirect + github.com/envoyproxy/protoc-gen-validate v1.3.0 // indirect github.com/evilmonkeyinc/jsonpath v0.8.1 // indirect github.com/fatih/color v1.18.0 // indirect github.com/fxamacker/cbor/v2 v2.7.0 // indirect github.com/go-ini/ini v1.67.0 // indirect + github.com/go-jose/go-jose/v4 v4.1.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-viper/mapstructure/v2 v2.2.1 // indirect github.com/gobwas/glob v0.2.4-0.20181002190808-e7a84e9525fe // indirect @@ -114,7 +115,7 @@ require ( github.com/golang-jwt/jwt/v5 v5.2.2 // indirect github.com/google/gnostic-models v0.6.9 // indirect github.com/google/s2a-go v0.1.9 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 // indirect github.com/jackc/chunkreader/v2 v2.0.1 // indirect github.com/jackc/pgconn v1.14.3 // indirect github.com/jackc/pgio v1.0.0 // indirect @@ -134,23 +135,24 @@ require ( github.com/pjbgf/sha1cd v0.3.2 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect - github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/client_model v0.6.2 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect github.com/sagikazarmark/locafero v0.7.0 // indirect github.com/segmentio/fasthash v1.0.3 // indirect github.com/skeema/knownhosts v1.3.1 // indirect github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spiffe/go-spiffe/v2 v2.6.0 // indirect github.com/vbatts/tar-split v0.11.3 // indirect github.com/x448/float16 v0.8.4 // indirect - go.opentelemetry.io/auto/sdk v1.1.0 // indirect - go.opentelemetry.io/contrib/detectors/gcp v1.34.0 // indirect + go.opentelemetry.io/auto/sdk v1.2.1 // indirect + go.opentelemetry.io/contrib/detectors/gcp v1.39.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 // indirect - go.opentelemetry.io/otel/trace v1.34.0 // indirect - go.opentelemetry.io/proto/otlp v1.3.1 // indirect + go.opentelemetry.io/otel/trace v1.39.0 // indirect + go.opentelemetry.io/proto/otlp v1.7.1 // indirect go.uber.org/multierr v1.11.0 // indirect google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect modernc.org/libc v1.41.0 // indirect modernc.org/mathutil v1.6.0 // indirect @@ -162,7 +164,7 @@ require ( require ( cloud.google.com/go v0.119.0 // indirect - cloud.google.com/go/compute/metadata v0.6.0 // indirect + cloud.google.com/go/compute/metadata v0.9.0 // indirect cloud.google.com/go/iam v1.4.1 // indirect github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.17.0 @@ -221,7 +223,7 @@ require ( github.com/go-errors/errors v1.4.2 // indirect github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect github.com/go-git/go-billy/v5 v5.6.2 // indirect - github.com/go-logr/logr v1.4.2 // indirect + github.com/go-logr/logr v1.4.3 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect github.com/golang-jwt/jwt/v4 v4.5.2 // indirect @@ -296,11 +298,11 @@ require ( github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect github.com/yudai/gojsondiff v1.0.0 // indirect github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect - golang.org/x/net v0.38.0 - golang.org/x/sys v0.31.0 - golang.org/x/term v0.30.0 - golang.org/x/text v0.23.0 // indirect - google.golang.org/protobuf v1.36.6 // indirect + golang.org/x/net v0.55.0 + golang.org/x/sys v0.45.0 + golang.org/x/term v0.43.0 + golang.org/x/text v0.37.0 // indirect + google.golang.org/protobuf v1.36.10 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/warnings.v0 v0.1.2 // indirect diff --git a/go.sum b/go.sum index 36c9db202858..060a446e180b 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -cel.dev/expr v0.19.2 h1:V354PbqIXr9IQdwy4SYA4xa0HXaWq1BUPAGzugBY5V4= -cel.dev/expr v0.19.2/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= +cel.dev/expr v0.25.1 h1:1KrZg61W6TWSxuNZ37Xy49ps13NUovb66QLprthtwi4= +cel.dev/expr v0.25.1/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.119.0 h1:tw7OjErMzJKbbjaEHkrt60KQrK5Wus/boCZ7tm5/RNE= @@ -8,8 +8,8 @@ cloud.google.com/go/auth v0.15.0 h1:Ly0u4aA5vG/fsSsxu98qCQBemXtAtJf+95z9HK+cxps= cloud.google.com/go/auth v0.15.0/go.mod h1:WJDGqZ1o9E9wKIL+IwStfyn/+s59zl4Bi+1KQNVXLZ8= cloud.google.com/go/auth/oauth2adapt v0.2.8 h1:keo8NaayQZ6wimpNSmW5OPc283g65QNIiLpZnkHRbnc= cloud.google.com/go/auth/oauth2adapt v0.2.8/go.mod h1:XQ9y31RkqZCcwJWNSx2Xvric3RrU88hAYYbjDWYDL+c= -cloud.google.com/go/compute/metadata v0.6.0 h1:A6hENjEsCDtC1k8byVsgwvVcioamEHvZ4j01OwKxG9I= -cloud.google.com/go/compute/metadata v0.6.0/go.mod h1:FjyFAW1MW0C203CEOMDTu3Dk1FlqW3Rga40jzHL4hfg= +cloud.google.com/go/compute/metadata v0.9.0 h1:pDUj4QMoPejqq20dK0Pg2N4yG9zIkYGdBtwLoEkH9Zs= +cloud.google.com/go/compute/metadata v0.9.0/go.mod h1:E0bWwX5wTnLPedCKqk3pJmVgCBSM6qQI1yTBdEb3C10= cloud.google.com/go/iam v1.4.1 h1:cFC25Nv+u5BkTR/BT1tXdoF2daiVbZ1RLx2eqfQ9RMM= cloud.google.com/go/iam v1.4.1/go.mod h1:2vUEJpUG3Q9p2UdsyksaKpDzlwOrnMzS30isdReIcLM= cloud.google.com/go/logging v1.13.0 h1:7j0HgAp0B94o1YRDqiqm26w4q1rDMH7XNRU34lJXHYc= @@ -74,8 +74,8 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.4.0/go.mod h1:wP83 github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 h1:3c8yed4lgqTt+oTQ+JNMDo+F4xprBf+O/il4ZC0nRLw= -github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0/go.mod h1:obipzmGjfSjam60XLwGfqUkJsfiheAl+TUjG+4yzyPM= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.30.0 h1:sBEjpZlNHzK1voKq9695PJSX2o5NEXl7/OL3coiIY0c= +github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.30.0/go.mod h1:P4WPRUkOhJC13W//jWpyfJNDAIpvRbAUIYLX/4jtlE0= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.50.0 h1:5IT7xOdq17MtcdtL/vtl6mGfzhaq4m4vpollPRmlsBQ= github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.50.0/go.mod h1:ZV4VOm0/eHR06JLrXWe09068dHpr3TRpY9Uo7T+anuA= github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/cloudmock v0.50.0 h1:nNMpRpnkWDAaqcpxMJvxa/Ud98gjbYwayJY4/9bdjiU= @@ -179,8 +179,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/cloudflare/circl v1.6.0 h1:cr5JKic4HI+LkINy2lg3W2jF8sHCVTBncJr5gIIq7qk= github.com/cloudflare/circl v1.6.0/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 h1:Om6kYQYDUk5wWbT0t0q6pvyM49i9XZAv9dDrkDA7gjk= -github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= +github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5 h1:6xNmx7iTtyBRev0+D/Tv1FZd4SCg8axKApyNyRsAt/w= +github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5/go.mod h1:KdCmV+x/BuvyMxRnYBlmVaq4OLiKW6iRQfvC62cvdkI= github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/colinmarc/hdfs/v2 v2.4.0 h1:v6R8oBx/Wu9fHpdPoJJjpGSUxo8NhHIwrwsfhFvU9W0= @@ -234,15 +234,15 @@ github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FM github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.13.4 h1:zEqyPVyku6IvWCFwux4x9RxkLOMUL+1vC9xUFv5l2/M= -github.com/envoyproxy/go-control-plane v0.13.4/go.mod h1:kDfuBlDVsSj2MjrLEtRWtHlsWIFcGyB2RMO44Dc5GZA= -github.com/envoyproxy/go-control-plane/envoy v1.32.4 h1:jb83lalDRZSpPWW2Z7Mck/8kXZ5CQAFYVjQcdVIr83A= -github.com/envoyproxy/go-control-plane/envoy v1.32.4/go.mod h1:Gzjc5k8JcJswLjAx1Zm+wSYE20UrLtt7JZMWiWQXQEw= +github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA= +github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU= +github.com/envoyproxy/go-control-plane/envoy v1.36.0 h1:yg/JjO5E7ubRyKX3m07GF3reDNEnfOboJ0QySbH736g= +github.com/envoyproxy/go-control-plane/envoy v1.36.0/go.mod h1:ty89S1YCCVruQAm9OtKeEkQLTb+Lkz0k8v9W0Oxsv98= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI= github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8= -github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= +github.com/envoyproxy/protoc-gen-validate v1.3.0 h1:TvGH1wof4H33rezVKWSpqKz5NXWg5VPuZ0uONDT6eb4= +github.com/envoyproxy/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA= github.com/evanphx/json-patch v5.8.0+incompatible h1:1Av9pn2FyxPdvrWNQszj1g6D6YthSmvCfcN6SYclTJg= github.com/evanphx/json-patch v5.8.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evilmonkeyinc/jsonpath v0.8.1 h1:W8K4t8u7aipkQE0hcTICGAdAN0Xph349LtjgSoofvVo= @@ -286,16 +286,18 @@ github.com/go-git/go-git/v5 v5.14.0/go.mod h1:Z5Xhoia5PcWA3NF8vRLURn9E5FRhSl7dGj github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-ini/ini v1.67.0 h1:z6ZrTEZqSWOTyH2FlglNbNgARyHG8oLW9gMELqKr06A= github.com/go-ini/ini v1.67.0/go.mod h1:ByCAeIL28uOIIG0E3PJtZPDL8WnHpFKFOtgjp+3Ies8= -github.com/go-jose/go-jose/v3 v3.0.4 h1:Wp5HA7bLQcKnf6YYao/4kpRpVMp/yf6+pJKV8WFSaNY= -github.com/go-jose/go-jose/v3 v3.0.4/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= +github.com/go-jose/go-jose/v3 v3.0.5 h1:BLLJWbC4nMZOfuPVxoZIxeYsn6Nl2r1fITaJ78UQlVQ= +github.com/go-jose/go-jose/v3 v3.0.5/go.mod h1:5b+7YgP7ZICgJDBdfjZaIt+H/9L9T/YQrVfLAMboGkQ= +github.com/go-jose/go-jose/v4 v4.1.3 h1:CVLmWDhDVRa6Mi/IgCgaopNosCaHz7zrMeF9MlZRkrs= +github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= -github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/logr v1.4.3 h1:CjnDlHq8ikf6E492q6eKboGOC0T8CDaOvkHCIg8idEI= +github.com/go-logr/logr v1.4.3/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= @@ -408,8 +410,8 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92Bcuy github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3 h1:5ZPtiqj0JL5oKWmcsq4VMaAW5ukBEgSGXEN89zeH1Jo= -github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.3/go.mod h1:ndYquD05frm2vACXE1nsccT4oJzjhw2arTS2cpUD1PI= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1 h1:X5VWvz21y3gzm9Nw/kaUeku/1+uBhcekkmy4IkffJww= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.1/go.mod h1:Zanoh4+gvIgluNqcfMVTJueD4wSS5hT7zTt4Mrutd90= github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -641,8 +643,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH github.com/prometheus/client_golang v1.21.1 h1:DOvXXTqVzvkIewV/CDPFdejpMCGeMcbGCQ8YOmu+Ibk= github.com/prometheus/client_golang v1.21.1/go.mod h1:U9NM32ykUErtVBxdvD3zfi+EuFkkaBvMb09mIfe0Zgg= github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= -github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= +github.com/prometheus/client_model v0.6.2 h1:oBsgwpGs7iVziMvrGhE53c/GrLUsZdHnqNwqPLxwZyk= +github.com/prometheus/client_model v0.6.2/go.mod h1:y3m2F6Gdpfy6Ut/GBsUqTWZqCUvMVzSfMLjcu6wAwpE= github.com/prometheus/common v0.62.0 h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io= github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkqml0W5zIY1I= github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= @@ -708,6 +710,8 @@ github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o= github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.20.0 h1:zrxIyR3RQIOsarIrgL8+sAvALXul9jeEPa06Y0Ph6vY= github.com/spf13/viper v1.20.0/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4= +github.com/spiffe/go-spiffe/v2 v2.6.0 h1:l+DolpxNWYgruGQVV0xsfeya3CsC7m8iBzDnMpsbLuo= +github.com/spiffe/go-spiffe/v2 v2.6.0/go.mod h1:gm2SeUoMZEtpnzPNs2Csc0D/gX33k1xIx7lEzqblHEs= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= @@ -727,8 +731,8 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/tailscale/depaware v0.0.0-20210622194025-720c4b409502/go.mod h1:p9lPsd+cx33L3H9nNoecRRxPssFKUwwI50I3pZ0yT+8= @@ -777,34 +781,34 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= -go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= -go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= -go.opentelemetry.io/contrib/detectors/gcp v1.34.0 h1:JRxssobiPg23otYU5SbWtQC//snGVIM3Tx6QRzlQBao= -go.opentelemetry.io/contrib/detectors/gcp v1.34.0/go.mod h1:cV4BMFcscUR/ckqLkbfQmF0PRsq8w/lMGzdbCSveBHo= +go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= +go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y= +go.opentelemetry.io/contrib/detectors/gcp v1.39.0 h1:kWRNZMsfBHZ+uHjiH4y7Etn2FK26LAGkNFw7RHv1DhE= +go.opentelemetry.io/contrib/detectors/gcp v1.39.0/go.mod h1:t/OGqzHBa5v6RHZwrDBJ2OirWc+4q/w2fTbLZwAKjTk= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 h1:rgMkmiGfix9vFJDcDi1PK8WEQP4FLQwLDfhp5ZLpFeE= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0/go.mod h1:ijPqXp5P6IRRByFVVg9DY8P5HkxkHE5ARIa+86aXPf4= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 h1:CV7UdSGJt/Ao6Gp4CXckLxVRRsRgDHoI8XjbL3PDl8s= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0/go.mod h1:FRmFuRJfag1IZ2dPkHnEoSFVgTVPUd2qf5Vi69hLb8I= go.opentelemetry.io/contrib/instrumentation/runtime v0.48.0 h1:dJlCKeq+zmO5Og4kgxqPvvJrzuD/mygs1g/NYM9dAsU= go.opentelemetry.io/contrib/instrumentation/runtime v0.48.0/go.mod h1:p+hpBCpLHpuUrR0lHgnHbUnbCBll1IhrcMIlycC+xYs= -go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= -go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= +go.opentelemetry.io/otel v1.39.0 h1:8yPrr/S0ND9QEfTfdP9V+SiwT4E0G7Y5MO7p85nis48= +go.opentelemetry.io/otel v1.39.0/go.mod h1:kLlFTywNWrFyEdH0oj2xK0bFYZtHRYUdv1NklR/tgc8= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.23.0 h1:97CpJflo7dJK4A4SLMNoP2loDEAiG0ifF6MnLhtSHUY= go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.23.0/go.mod h1:YzC+4JHcK24PylBTZ78U0XJSYbhHY0uHYNqr+OlcLCs= go.opentelemetry.io/otel/exporters/prometheus v0.45.1 h1:R/bW3afad6q6VGU+MFYpnEdo0stEARMCdhWu6+JI6aI= go.opentelemetry.io/otel/exporters/prometheus v0.45.1/go.mod h1:wnHAfKRav5Dfp4iZhyWZ7SzQfT+rDZpEpYG7To+qJ1k= go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0 h1:WDdP9acbMYjbKIyJUhTvtzj601sVJOqgWdUxSdR/Ysc= go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.29.0/go.mod h1:BLbf7zbNIONBLPwvFnwNHGj4zge8uTCM/UPIVW1Mq2I= -go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= -go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= -go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= -go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= -go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= -go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= -go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= -go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= -go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= -go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= +go.opentelemetry.io/otel/metric v1.39.0 h1:d1UzonvEZriVfpNKEVmHXbdf909uGTOQjA0HF0Ls5Q0= +go.opentelemetry.io/otel/metric v1.39.0/go.mod h1:jrZSWL33sD7bBxg1xjrqyDjnuzTUB0x1nBERXd7Ftcs= +go.opentelemetry.io/otel/sdk v1.39.0 h1:nMLYcjVsvdui1B/4FRkwjzoRVsMK8uL/cj0OyhKzt18= +go.opentelemetry.io/otel/sdk v1.39.0/go.mod h1:vDojkC4/jsTJsE+kh+LXYQlbL8CgrEcwmt1ENZszdJE= +go.opentelemetry.io/otel/sdk/metric v1.39.0 h1:cXMVVFVgsIf2YL6QkRF4Urbr/aMInf+2WKg+sEJTtB8= +go.opentelemetry.io/otel/sdk/metric v1.39.0/go.mod h1:xq9HEVH7qeX69/JnwEfp6fVq5wosJsY1mt4lLfYdVew= +go.opentelemetry.io/otel/trace v1.39.0 h1:2d2vfpEDmCJ5zVYz7ijaJdOF59xLomrvj7bjt6/qCJI= +go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA= +go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOVAtj4= +go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= @@ -841,8 +845,8 @@ golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45 golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34= -golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc= +golang.org/x/crypto v0.52.0 h1:RMs7fP2rXdep0CftQlK8Uf+kibLm7qkCcradZWYz988= +golang.org/x/crypto v0.52.0/go.mod h1:1QgfPxDqh0T2M/elOJtp9RvuR95kVjir0e6/BvEmGbc= golang.org/x/exp v0.0.0-20181106170214-d68db9428509/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -891,12 +895,12 @@ golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= -golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8= -golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8= +golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= +golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.28.0 h1:CrgCKl8PPAVtLnU3c+EDw6x11699EWlsDeWNWKdIOkc= -golang.org/x/oauth2 v0.28.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8= +golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= +golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -906,8 +910,8 @@ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw= -golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= +golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -952,8 +956,8 @@ golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= +golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -963,8 +967,8 @@ golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU= golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.30.0 h1:PQ39fJZ+mfadBm0y5WlL4vlM7Sx1Hgf13sMIY2+QS9Y= -golang.org/x/term v0.30.0/go.mod h1:NYYFdzHoI5wRh/h5tDMdMqCqPJZEuNqVR5xJLd/n67g= +golang.org/x/term v0.43.0 h1:S4RLU2sB31O/NCl+zFN9Aru9A/Cq2aqKpTZJ6B+DwT4= +golang.org/x/term v0.43.0/go.mod h1:lrhlHNdQJHO+1qVYiHfFKVuVioJIheAc3fBSMFYEIsk= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -977,8 +981,8 @@ golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= -golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY= -golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4= +golang.org/x/text v0.37.0 h1:Cqjiwd9eSg8e0QAkyCaQTNHFIIzWtidPahFWR83rTrc= +golang.org/x/text v0.37.0/go.mod h1:a5sjxXGs9hsn/AJVwuElvCAo9v8QYLzvavO5z2PiM38= golang.org/x/time v0.11.0 h1:/bpjEDfN9tkoN/ryeYHnv5hcMlc8ncjMcM4XBk5NWV0= golang.org/x/time v0.11.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -1003,14 +1007,16 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.31.0 h1:0EedkvKDbh+qistFTd0Bcwe/YLh4vHwWEkiI0toFIBU= -golang.org/x/tools v0.31.0/go.mod h1:naFTU+Cev749tSJRXJlna0T3WxKvb1kWEx15xA4SdmQ= +golang.org/x/tools v0.44.0 h1:UP4ajHPIcuMjT1GqzDWRlalUEoY+uzoZKnhOjbIPD2c= +golang.org/x/tools v0.44.0/go.mod h1:KA0AfVErSdxRZIsOVipbv3rQhVXTnlU6UhKxHd1seDI= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= +gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= google.golang.org/api v0.228.0 h1:X2DJ/uoWGnY5obVjewbp8icSL5U4FzuCfy9OjbLSnLs= google.golang.org/api v0.228.0/go.mod h1:wNvRS1Pbe8r4+IfBIniV8fwCpGwTrYa+kMUDiC5z5a4= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= @@ -1021,26 +1027,26 @@ google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfG google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb h1:ITgPrl429bc6+2ZraNSzMDk3I95nmQln2fuPstKwFDE= google.golang.org/genproto v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:sAo5UzpjUwgFBCzupwhcLcxHVDK7vG5IqI30YnwX2eE= -google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb h1:p31xT4yrYrSM/G4Sn2+TNUkVhFCbG9y8itM2S6Th950= -google.golang.org/genproto/googleapis/api v0.0.0-20250303144028-a0af3efb3deb/go.mod h1:jbe3Bkdp+Dh2IrslsFCklNhweNTBgSYanP1UXhJDhKg= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 h1:iK2jbkWL86DXjEx0qiHcRE9dE4/Ahua5k6V8OWFb//c= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4/go.mod h1:LuRYeWDFV6WOn90g357N17oMCaxpgCnbi/44qJvDn2I= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 h1:fCvbg86sFXwdrl5LgVcTEvNC+2txB5mgROGmRL5mrls= +google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:+rXWjjaukWZun3mLfjmVnQi18E1AsFbDN9QdJ5YXLto= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217 h1:gRkg/vSppuSQoDjxyiGfN4Upv/h/DQmIR10ZU8dh4Ww= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251202230838-ff82c1b0f217/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.71.1 h1:ffsFWr7ygTUscGPI0KKK6TLrGz0476KUvvsbqWK0rPI= -google.golang.org/grpc v1.71.1/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec= +google.golang.org/grpc v1.79.3 h1:sybAEdRIEtvcD68Gx7dmnwjZKlyfuc61Dyo9pGXXkKE= +google.golang.org/grpc v1.79.3/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= -google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= +google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= +google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/plugins/executor/swagger.yml b/pkg/plugins/executor/swagger.yml index 1e4778d4f6be..f5bceb0e66f3 100644 --- a/pkg/plugins/executor/swagger.yml +++ b/pkg/plugins/executor/swagger.yml @@ -16,7 +16,6 @@ definitions: Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine - +optional type: string partition: description: |- @@ -24,14 +23,12 @@ definitions: If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - +optional format: int32 type: integer readOnly: description: |- readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - +optional type: boolean volumeID: description: |- @@ -51,17 +48,15 @@ definitions: title: Affinity is a group of affinity scheduling rules. type: object Amount: - description: +kubebuilder:validation:Type=number title: Amount represent a numeric amount. type: object AnyString: description: |- - It will unmarshall int64, int32, float64, float32, boolean, a plain string and represents it as string. - It will marshall back to string - marshalling is not symmetric. - title: It's JSON type is just string. + - It will unmarshall int64, int32, float64, float32, boolean, a plain string and represents it as string. + - It will marshall back to string - marshalling is not symmetric. + title: '- It''s JSON type is just string.' type: string AppArmorProfile: - description: +union properties: localhostProfile: description: |- @@ -69,14 +64,12 @@ definitions: The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost". - +optional type: string type: $ref: '#/definitions/AppArmorProfileType' title: AppArmorProfile defines a pod or container's AppArmor settings. type: object AppArmorProfileType: - description: +enum type: string ArchiveStrategy: description: ArchiveStrategy describes how to archive files/directory when saving artifacts @@ -94,10 +87,7 @@ definitions: artifacts: $ref: '#/definitions/Artifacts' parameters: - description: |- - Parameters is the list of parameters to pass to the template or workflow - +patchStrategy=merge - +patchMergeKey=name + description: Parameters is the list of parameters to pass to the template or workflow items: $ref: '#/definitions/Parameter' type: array @@ -307,10 +297,8 @@ definitions: type: boolean type: object AzureDataDiskCachingMode: - description: +enum type: string AzureDataDiskKind: - description: +enum type: string AzureDiskVolumeSource: properties: @@ -327,8 +315,6 @@ definitions: fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - +optional - +default="ext4" type: string kind: $ref: '#/definitions/AzureDataDiskKind' @@ -336,8 +322,6 @@ definitions: description: |- readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional - +default=false type: boolean title: AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. type: object @@ -347,7 +331,6 @@ definitions: description: |- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean secretName: description: secretName is the name of secret that contains Azure Storage Account Name and Key @@ -394,7 +377,6 @@ definitions: fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. - +optional type: string nodePublishSecretRef: $ref: '#/definitions/LocalObjectReference' @@ -402,7 +384,6 @@ definitions: description: |- readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). - +optional type: boolean volumeAttributes: additionalProperties: @@ -410,7 +391,6 @@ definitions: description: |- volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. - +optional type: object type: object Cache: @@ -422,18 +402,12 @@ definitions: Capabilities: properties: add: - description: |- - Added capabilities - +optional - +listType=atomic + description: Added capabilities items: $ref: '#/definitions/Capability' type: array drop: - description: |- - Removed capabilities - +optional - +listType=atomic + description: Removed capabilities items: $ref: '#/definitions/Capability' type: array @@ -451,27 +425,22 @@ definitions: description: |- monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - +listType=atomic items: type: string type: array path: - description: |- - path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / - +optional + description: 'path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /' type: string readOnly: description: |- readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - +optional type: boolean secretFile: description: |- secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - +optional type: string secretRef: $ref: '#/definitions/LocalObjectReference' @@ -479,7 +448,6 @@ definitions: description: |- user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - +optional type: string type: object CinderVolumeSource: @@ -494,14 +462,12 @@ definitions: Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - +optional type: string readOnly: description: |- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' @@ -532,7 +498,6 @@ definitions: description: |- Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. - +optional type: string optional: description: |- @@ -541,7 +506,6 @@ definitions: allowed not to exist. If using signerName, then the combination of signerName and labelSelector is allowed to match zero ClusterTrustBundles. - +optional type: boolean path: description: Relative path from the volume root to write the bundle. @@ -551,7 +515,6 @@ definitions: Select all ClusterTrustBundles that match this signer name. Mutually-exclusive with name. The contents of all selected ClusterTrustBundles will be unified and deduplicated. - +optional type: string type: object ConfigMapEnvSource: @@ -566,22 +529,16 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - Specify whether the ConfigMap must be defined - +optional + description: Specify whether the ConfigMap must be defined type: boolean title: |- ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. type: object ConfigMapKeySelector: - description: +structType=atomic properties: key: description: The key to select. @@ -593,15 +550,10 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - Specify whether the ConfigMap or its key must be defined - +optional + description: Specify whether the ConfigMap or its key must be defined type: boolean title: Selects a key from a ConfigMap. type: object @@ -622,8 +574,6 @@ definitions: present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - +optional - +listType=atomic items: $ref: '#/definitions/KeyToPath' type: array @@ -634,15 +584,10 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - optional specify whether the ConfigMap or its keys must be defined - +optional + description: optional specify whether the ConfigMap or its keys must be defined type: boolean title: Adapts a ConfigMap into a projected volume. type: object @@ -662,7 +607,6 @@ definitions: Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer items: @@ -674,8 +618,6 @@ definitions: present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - +optional - +listType=atomic items: $ref: '#/definitions/KeyToPath' type: array @@ -686,15 +628,10 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - optional specify whether the ConfigMap or its keys must be defined - +optional + description: optional specify whether the ConfigMap or its keys must be defined type: boolean title: Adapts a ConfigMap into a volume. type: object @@ -710,8 +647,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -725,8 +660,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -734,11 +667,6 @@ definitions: description: |- List of environment variables to set in the container. Cannot be updated. - +optional - +patchMergeKey=name - +patchStrategy=merge - +listType=map - +listMapKey=name items: $ref: '#/definitions/EnvVar' type: array @@ -750,8 +678,6 @@ definitions: 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. - +optional - +listType=atomic items: $ref: '#/definitions/EnvFromSource' type: array @@ -761,7 +687,6 @@ definitions: More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - +optional type: string imagePullPolicy: $ref: '#/definitions/PullPolicy' @@ -784,23 +709,13 @@ definitions: Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. - +optional - +patchMergeKey=containerPort - +patchStrategy=merge - +listType=map - +listMapKey=containerPort - +listMapKey=protocol items: $ref: '#/definitions/ContainerPort' type: array readinessProbe: $ref: '#/definitions/Probe' resizePolicy: - description: |- - Resources resize policy for the container. - +featureGate=InPlacePodVerticalScaling - +optional - +listType=atomic + description: Resources resize policy for the container. items: $ref: '#/definitions/ContainerResizePolicy' type: array @@ -817,7 +732,6 @@ definitions: 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. - +optional type: boolean stdinOnce: description: |- @@ -828,7 +742,6 @@ definitions: 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 - +optional type: boolean terminationMessagePath: description: |- @@ -839,7 +752,6 @@ definitions: all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - +optional type: string terminationMessagePolicy: $ref: '#/definitions/TerminationMessagePolicy' @@ -847,16 +759,9 @@ definitions: description: |- Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - +optional type: boolean volumeDevices: - description: |- - volumeDevices is the list of block devices to be used by the container. - +patchMergeKey=devicePath - +patchStrategy=merge - +listType=map - +listMapKey=devicePath - +optional + description: volumeDevices is the list of block devices to be used by the container. items: $ref: '#/definitions/VolumeDevice' type: array @@ -864,11 +769,6 @@ definitions: description: |- Pod volumes to mount into the container's filesystem. Cannot be updated. - +optional - +patchMergeKey=mountPath - +patchStrategy=merge - +listType=map - +listMapKey=mountPath items: $ref: '#/definitions/VolumeMount' type: array @@ -878,7 +778,6 @@ definitions: If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - +optional type: string title: A single application container that you want to run within a pod. type: object @@ -894,8 +793,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -909,8 +806,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -922,11 +817,6 @@ definitions: description: |- List of environment variables to set in the container. Cannot be updated. - +optional - +patchMergeKey=name - +patchStrategy=merge - +listType=map - +listMapKey=name items: $ref: '#/definitions/EnvVar' type: array @@ -938,8 +828,6 @@ definitions: 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. - +optional - +listType=atomic items: $ref: '#/definitions/EnvFromSource' type: array @@ -949,7 +837,6 @@ definitions: More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - +optional type: string imagePullPolicy: $ref: '#/definitions/PullPolicy' @@ -972,23 +859,13 @@ definitions: Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. - +optional - +patchMergeKey=containerPort - +patchStrategy=merge - +listType=map - +listMapKey=containerPort - +listMapKey=protocol items: $ref: '#/definitions/ContainerPort' type: array readinessProbe: $ref: '#/definitions/Probe' resizePolicy: - description: |- - Resources resize policy for the container. - +featureGate=InPlacePodVerticalScaling - +optional - +listType=atomic + description: Resources resize policy for the container. items: $ref: '#/definitions/ContainerResizePolicy' type: array @@ -1005,7 +882,6 @@ definitions: 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. - +optional type: boolean stdinOnce: description: |- @@ -1016,7 +892,6 @@ definitions: 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 - +optional type: boolean terminationMessagePath: description: |- @@ -1027,7 +902,6 @@ definitions: all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - +optional type: string terminationMessagePolicy: $ref: '#/definitions/TerminationMessagePolicy' @@ -1035,16 +909,9 @@ definitions: description: |- Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - +optional type: boolean volumeDevices: - description: |- - volumeDevices is the list of block devices to be used by the container. - +patchMergeKey=devicePath - +patchStrategy=merge - +listType=map - +listMapKey=devicePath - +optional + description: volumeDevices is the list of block devices to be used by the container. items: $ref: '#/definitions/VolumeDevice' type: array @@ -1052,11 +919,6 @@ definitions: description: |- Pod volumes to mount into the container's filesystem. Cannot be updated. - +optional - +patchMergeKey=mountPath - +patchStrategy=merge - +listType=map - +listMapKey=mountPath items: $ref: '#/definitions/VolumeMount' type: array @@ -1066,7 +928,6 @@ definitions: If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - +optional type: string type: object ContainerPort: @@ -1078,9 +939,7 @@ definitions: format: int32 type: integer hostIP: - description: |- - What host IP to bind the external port to. - +optional + description: What host IP to bind the external port to. type: string hostPort: description: |- @@ -1088,7 +947,6 @@ definitions: If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. - +optional format: int32 type: integer name: @@ -1096,7 +954,6 @@ definitions: If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. - +optional type: string protocol: $ref: '#/definitions/Protocol' @@ -1142,10 +999,8 @@ definitions: description: It can be specified if the workflow should continue when the pod errors, fails or both. properties: error: - description: +optional type: boolean failed: - description: +optional type: boolean title: ContinueOn defines if a workflow should continue even if a task or step fails/errors. type: object @@ -1229,10 +1084,7 @@ definitions: description: Target are one or more names of targets to execute in a DAG type: string tasks: - description: |- - Tasks are a list of DAG tasks - +patchStrategy=merge - +patchMergeKey=name + description: Tasks are a list of DAG tasks items: $ref: '#/definitions/DAGTask' type: array @@ -1257,10 +1109,7 @@ definitions: mode. properties: items: - description: |- - Items is a list of DownwardAPIVolume file - +optional - +listType=atomic + description: Items is a list of DownwardAPIVolume file items: $ref: '#/definitions/DownwardAPIVolumeFile' type: array @@ -1279,11 +1128,9 @@ definitions: If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer path: - description: 'Required: Path is the relative path name of the file to be created. Must not be absolute or contain the ''..'' path. Must be utf-8 encoded. The first item of the relative path must not start with ''..''' type: string resourceFieldRef: $ref: '#/definitions/ResourceFieldSelector' @@ -1301,14 +1148,10 @@ definitions: Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer items: - description: |- - Items is a list of downward API volume file - +optional - +listType=atomic + description: Items is a list of downward API volume file items: $ref: '#/definitions/DownwardAPIVolumeFile' type: array @@ -1335,9 +1178,7 @@ definitions: configMapRef: $ref: '#/definitions/ConfigMapEnvSource' prefix: - description: |- - An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. - +optional + description: An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. type: string secretRef: $ref: '#/definitions/SecretEnvSource' @@ -1358,7 +1199,6 @@ definitions: Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". - +optional type: string valueFrom: $ref: '#/definitions/EnvVarSource' @@ -1391,8 +1231,6 @@ definitions: not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - +optional - +listType=atomic items: type: string type: array @@ -1422,6 +1260,15 @@ definitions: type: string title: ExecutorConfig holds configurations of an executor container. type: object + ExecutorObjectMeta: + properties: + name: + type: string + namespace: + type: string + uid: + type: string + type: object FCVolumeSource: description: |- Fibre Channel volumes can only be mounted as read/write once. @@ -1433,25 +1280,18 @@ definitions: Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine - +optional type: string lun: - description: |- - lun is Optional: FC target lun number - +optional + description: 'lun is Optional: FC target lun number' format: int32 type: integer readOnly: description: |- readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean targetWWNs: - description: |- - targetWWNs is Optional: FC target worldwide names (WWNs) - +optional - +listType=atomic + description: 'targetWWNs is Optional: FC target worldwide names (WWNs)' items: type: string type: array @@ -1459,8 +1299,6 @@ definitions: description: |- wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - +optional - +listType=atomic items: type: string type: array @@ -1477,7 +1315,6 @@ definitions: If a key maps to an empty Fields value, the field that key represents is part of the set. The exact format is defined in sigs.k8s.io/structured-merge-diff - +protobuf.options.(gogoproto.goproto_stringer)=false title: FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. type: object FlexVolumeSource: @@ -1493,20 +1330,16 @@ definitions: fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - +optional type: string options: additionalProperties: type: string - description: |- - options is Optional: this field holds extra command options if any. - +optional + description: 'options is Optional: this field holds extra command options if any.' type: object readOnly: description: |- readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' @@ -1520,12 +1353,9 @@ definitions: description: |- datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated - +optional type: string datasetUUID: - description: |- - datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset - +optional + description: datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset type: string title: Represents a Flocker volume mounted by the Flocker agent. type: object @@ -1543,7 +1373,6 @@ definitions: Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine - +optional type: string partition: description: |- @@ -1552,7 +1381,6 @@ definitions: Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - +optional format: int32 type: integer pdName: @@ -1565,7 +1393,6 @@ definitions: readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - +optional type: boolean title: Represents a Persistent Disk resource in Google Compute Engine. type: object @@ -1593,8 +1420,6 @@ definitions: (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. - +optional - +default="" type: string title: GRPCAction specifies an action involving a GRPC service. type: object @@ -1669,15 +1494,12 @@ definitions: Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. - +optional type: string repository: description: repository is the URL type: string revision: - description: |- - revision is the commit hash for the specified revision. - +optional + description: revision is the commit hash for the specified revision. type: string title: |- Represents a volume that is populated with the contents of a git repository. @@ -1702,7 +1524,6 @@ definitions: readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - +optional type: boolean title: Represents a Glusterfs mount that lasts the lifetime of a pod. type: object @@ -1816,20 +1637,14 @@ definitions: description: |- Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead. - +optional type: string httpHeaders: - description: |- - Custom headers to set in the request. HTTP allows repeated headers. - +optional - +listType=atomic + description: Custom headers to set in the request. HTTP allows repeated headers. items: - $ref: '#/definitions/HTTPHeader' + $ref: '#/definitions/V1HTTPHeader' type: array path: - description: |- - Path to access on the HTTP server. - +optional + description: Path to access on the HTTP server. type: string port: $ref: '#/definitions/IntOrString' @@ -1837,15 +1652,6 @@ definitions: $ref: '#/definitions/URIScheme' title: HTTPGetAction describes an action based on HTTP Get requests. type: object - HTTPHeader: - properties: - name: - type: string - value: - type: string - valueFrom: - $ref: '#/definitions/HTTPHeaderSource' - type: object HTTPHeaderSource: properties: secretKeyRef: @@ -1853,7 +1659,7 @@ definitions: type: object HTTPHeaders: items: - $ref: '#/definitions/HTTPHeader' + $ref: '#/definitions/V1alpha1HTTPHeader' type: array Header: description: Header indicate a key-value request header to be used when fetching artifacts over HTTP @@ -1883,20 +1689,15 @@ definitions: pod's hosts file. properties: hostnames: - description: |- - Hostnames for the above IP address. - +listType=atomic + description: Hostnames for the above IP address. items: type: string type: array ip: - description: |- - IP address of the host file entry. - +required + description: IP address of the host file entry. type: string type: object HostPathType: - description: +enum type: string HostPathVolumeSource: description: Host path volumes do not support ownership management or SELinux relabeling. @@ -1917,14 +1718,10 @@ definitions: ISCSI volumes support ownership management and SELinux relabeling. properties: chapAuthDiscovery: - description: |- - chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication - +optional + description: chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication type: boolean chapAuthSession: - description: |- - chapAuthSession defines whether support iSCSI Session CHAP authentication - +optional + description: chapAuthSession defines whether support iSCSI Session CHAP authentication type: boolean fsType: description: |- @@ -1933,14 +1730,12 @@ definitions: Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine - +optional type: string initiatorName: description: |- initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. - +optional type: string iqn: description: iqn is the target iSCSI Qualified Name. @@ -1949,8 +1744,6 @@ definitions: description: |- iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - +optional - +default="default" type: string lun: description: lun represents iSCSI Target Lun number. @@ -1960,8 +1753,6 @@ definitions: description: |- portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). - +optional - +listType=atomic items: type: string type: array @@ -1969,7 +1760,6 @@ definitions: description: |- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' @@ -1986,13 +1776,11 @@ definitions: $ref: '#/definitions/PullPolicy' reference: description: |- - Required: Image or artifact reference to be used. Behaves in the same way as pod.spec.containers[*].image. Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - +optional type: string title: ImageVolumeSource represents a image volume resource. type: object @@ -2002,19 +1790,18 @@ definitions: artifacts: $ref: '#/definitions/Artifacts' parameters: - description: |- - Parameters are a list of parameters passed as inputs - +patchStrategy=merge - +patchMergeKey=name + description: Parameters are a list of parameters passed as inputs items: $ref: '#/definitions/Parameter' type: array type: object IntOrString: description: |- - +protobuf=true - +protobuf.options.(gogoproto.goproto_stringer)=false - +k8s:openapi-gen=true + IntOrString is a type that can hold an int32 or a string. When used in + JSON or YAML marshalling and unmarshalling, it produces or consumes the + inner type. This allows you to have, for example, a JSON field that can + accept a name or number. + TODO: Rename to Int32OrString properties: IntVal: format: int32 @@ -2023,18 +1810,9 @@ definitions: type: string Type: $ref: '#/definitions/Type' - title: |- - IntOrString is a type that can hold an int32 or a string. When used in - JSON or YAML marshalling and unmarshalling, it produces or consumes the - inner type. This allows you to have, for example, a JSON field that can - accept a name or number. - TODO: Rename to Int32OrString type: object Item: description: |- - +protobuf.options.(gogoproto.goproto_stringer)=false - +kubebuilder:validation:Type=object - title: |- Item expands a single workflow step into multiple parallel steps The value of Item can be a map, string, bool, or number type: object @@ -2051,7 +1829,6 @@ definitions: If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer path: @@ -2068,13 +1845,9 @@ definitions: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. - +structType=atomic properties: matchExpressions: - description: |- - matchExpressions is a list of label selector requirements. The requirements are ANDed. - +optional - +listType=atomic + description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: $ref: '#/definitions/LabelSelectorRequirement' type: array @@ -2085,7 +1858,6 @@ definitions: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. - +optional type: object type: object LabelSelectorOperator: @@ -2107,8 +1879,6 @@ definitions: the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. - +optional - +listType=atomic items: type: string type: array @@ -2159,17 +1929,8 @@ definitions: type: object LocalObjectReference: description: |- - New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. - 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular - restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". - Those cannot be well described when embedded. - 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. - 3. We cannot easily change it. Because this type is embedded in many locations, updates to this type - will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. - - Instead of using this type, create a locally provided and used type that is well-focused on your reference. - For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . - +structType=atomic + LocalObjectReference contains enough information to let you locate the + referenced object inside the same namespace. properties: name: description: |- @@ -2178,14 +1939,8 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string - title: |- - LocalObjectReference contains enough information to let you locate the - referenced object inside the same namespace. type: object ManagedFieldsEntry: description: |- @@ -2228,7 +1983,6 @@ definitions: changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. - +optional type: string type: object ManagedFieldsOperationType: @@ -2283,7 +2037,6 @@ definitions: type: array type: object MountPropagationMode: - description: +enum title: MountPropagationMode describes mount propagation. type: string Mutex: @@ -2293,7 +2046,7 @@ definitions: description: name of the mutex type: string namespace: - default: '[namespace of workflow]' + description: 'Namespace is the namespace of the mutex, default: [namespace of workflow]' type: string type: object NFSVolumeSource: @@ -2309,7 +2062,6 @@ definitions: readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - +optional type: boolean server: description: |- @@ -2331,8 +2083,6 @@ definitions: compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. - +optional - +listType=atomic items: $ref: '#/definitions/PreferredSchedulingTerm' type: array @@ -2359,12 +2109,9 @@ definitions: A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. - +structType=atomic properties: nodeSelectorTerms: - description: |- - Required. A list of node selector terms. The terms are ORed. - +listType=atomic + description: Required. A list of node selector terms. The terms are ORed. items: $ref: '#/definitions/NodeSelectorTerm' type: array @@ -2373,7 +2120,6 @@ definitions: description: |- A node selector operator is the set of operators that can be used in a node selector requirement. - +enum type: string NodeSelectorRequirement: description: |- @@ -2392,8 +2138,6 @@ definitions: the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. - +optional - +listType=atomic items: type: string type: array @@ -2403,21 +2147,14 @@ definitions: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - +structType=atomic properties: matchExpressions: - description: |- - A list of node selector requirements by node's labels. - +optional - +listType=atomic + description: A list of node selector requirements by node's labels. items: $ref: '#/definitions/NodeSelectorRequirement' type: array matchFields: - description: |- - A list of node selector requirements by node's fields. - +optional - +listType=atomic + description: A list of node selector requirements by node's fields. items: $ref: '#/definitions/NodeSelectorRequirement' type: array @@ -2497,27 +2234,15 @@ definitions: type: integer type: object ObjectFieldSelector: - description: +structType=atomic properties: apiVersion: - description: |- - Version of the schema the FieldPath is written in terms of, defaults to "v1". - +optional + description: Version of the schema the FieldPath is written in terms of, defaults to "v1". type: string fieldPath: description: Path of the field to select in the specified API version. type: string title: ObjectFieldSelector selects an APIVersioned field of an object. type: object - ObjectMeta: - properties: - name: - type: string - namespace: - type: string - uid: - type: string - type: object Outputs: description: Outputs hold parameters, artifacts, and results from a step properties: @@ -2527,10 +2252,7 @@ definitions: description: ExitCode holds the exit code of a script template type: string parameters: - description: |- - Parameters holds the list of output parameters produced by a step - +patchStrategy=merge - +patchMergeKey=name + description: Parameters holds the list of output parameters produced by a step items: $ref: '#/definitions/Parameter' type: array @@ -2543,7 +2265,6 @@ definitions: OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. - +structType=atomic properties: apiVersion: description: API version of the referent. @@ -2558,12 +2279,9 @@ definitions: Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. - +optional type: boolean controller: - description: |- - If true, this reference points to the managing controller. - +optional + description: If true, this reference points to the managing controller. type: boolean kind: description: |- @@ -2579,7 +2297,6 @@ definitions: $ref: '#/definitions/UID' type: object ParallelSteps: - description: +kubebuilder:validation:Type=array type: object Parameter: description: Parameter indicate a passed string parameter to a service template with an optional default value @@ -2607,7 +2324,6 @@ definitions: $ref: '#/definitions/ValueFrom' type: object PersistentVolumeAccessMode: - description: +enum type: string PersistentVolumeClaimSpec: description: |- @@ -2618,8 +2334,6 @@ definitions: description: |- accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - +optional - +listType=atomic items: $ref: '#/definitions/PersistentVolumeAccessMode' type: array @@ -2635,7 +2349,6 @@ definitions: description: |- storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - +optional type: string volumeAttributesClassName: description: |- @@ -2651,15 +2364,11 @@ definitions: exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). - +featureGate=VolumeAttributesClass - +optional type: string volumeMode: $ref: '#/definitions/PersistentVolumeMode' volumeName: - description: |- - volumeName is the binding reference to the PersistentVolume backing this claim. - +optional + description: volumeName is the binding reference to the PersistentVolume backing this claim. type: string type: object PersistentVolumeClaimTemplate: @@ -2667,187 +2376,10 @@ definitions: PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. properties: - annotations: - additionalProperties: - type: string - description: |- - Annotations is an unstructured key value map stored with a resource that may be - set by external tools to store and retrieve arbitrary metadata. They are not - queryable and should be preserved when modifying objects. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations - +optional - type: object - creationTimestamp: - description: |- - CreationTimestamp is a timestamp representing the server time when this object was - created. It is not guaranteed to be set in happens-before order across separate operations. - Clients may not set this value. It is represented in RFC3339 form and is in UTC. - - Populated by the system. - Read-only. - Null for lists. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - +optional - type: string - deletionGracePeriodSeconds: - description: |- - Number of seconds allowed for this object to gracefully terminate before - it will be removed from the system. Only set when deletionTimestamp is also set. - May only be shortened. - Read-only. - +optional - format: int64 - type: integer - deletionTimestamp: - description: |- - DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This - field is set by the server when a graceful deletion is requested by the user, and is not - directly settable by a client. The resource is expected to be deleted (no longer visible - from resource lists, and not reachable by name) after the time in this field, once the - finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. - Once the deletionTimestamp is set, this value may not be unset or be set further into the - future, although it may be shortened or the resource may be deleted prior to this time. - For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react - by sending a graceful termination signal to the containers in the pod. After that 30 seconds, - the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, - remove the pod from the API. In the presence of network partitions, this object may still - exist after this timestamp, until an administrator or automated process can determine the - resource is fully terminated. - If not set, graceful deletion of the object has not been requested. - - Populated by the system when a graceful deletion is requested. - Read-only. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata - +optional - type: string - finalizers: - description: |- - Must be empty before the object is deleted from the registry. Each entry - is an identifier for the responsible component that will remove the entry - from the list. If the deletionTimestamp of the object is non-nil, entries - in this list can only be removed. - Finalizers may be processed and removed in any order. Order is NOT enforced - because it introduces significant risk of stuck finalizers. - finalizers is a shared field, any actor with permission can reorder it. - If the finalizer list is processed in order, then this can lead to a situation - in which the component responsible for the first finalizer in the list is - waiting for a signal (field value, external system, or other) produced by a - component responsible for a finalizer later in the list, resulting in a deadlock. - Without enforced ordering finalizers are free to order amongst themselves and - are not vulnerable to ordering changes in the list. - +optional - +patchStrategy=merge - +listType=set - items: - type: string - type: array - generateName: - description: |- - GenerateName is an optional prefix, used by the server, to generate a unique - name ONLY IF the Name field has not been provided. - If this field is used, the name returned to the client will be different - than the name passed. This value will also be combined with a unique suffix. - The provided value has the same validation rules as the Name field, - and may be truncated by the length of the suffix required to make the value - unique on the server. - - If this field is specified and the generated name exists, the server will return a 409. - - Applied only if Name is not specified. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency - +optional - type: string - generation: - description: |- - A sequence number representing a specific generation of the desired state. - Populated by the system. Read-only. - +optional - format: int64 - type: integer - labels: - additionalProperties: - type: string - description: |- - Map of string keys and values that can be used to organize and categorize - (scope and select) objects. May match selectors of replication controllers - and services. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - +optional - type: object - managedFields: - description: |- - ManagedFields maps workflow-id and version to the set of fields - that are managed by that workflow. This is mostly for internal - housekeeping, and users typically shouldn't need to set or - understand this field. A workflow can be the user's name, a - controller's name, or the name of a specific apply path like - "ci-cd". The set of fields is always in the version that the - workflow used when modifying the object. - - +optional - +listType=atomic - items: - $ref: '#/definitions/ManagedFieldsEntry' - type: array - name: - description: |- - Name must be unique within a namespace. Is required when creating resources, although - some resources may allow a client to request the generation of an appropriate name - automatically. Name is primarily intended for creation idempotence and configuration - definition. - Cannot be updated. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names - +optional - type: string - namespace: - description: |- - Namespace defines the space within which each name must be unique. An empty namespace is - equivalent to the "default" namespace, but "default" is the canonical representation. - Not all objects are required to be scoped to a namespace - the value of this field for - those objects will be empty. - - Must be a DNS_LABEL. - Cannot be updated. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces - +optional - type: string - ownerReferences: - description: |- - List of objects depended by this object. If ALL objects in the list have - been deleted, this object will be garbage collected. If this object is managed by a controller, - then an entry in this list will point to this controller, with the controller field set to true. - There cannot be more than one managing controller. - +optional - +patchMergeKey=uid - +patchStrategy=merge - +listType=map - +listMapKey=uid - items: - $ref: '#/definitions/OwnerReference' - type: array - resourceVersion: - description: |- - An opaque value that represents the internal version of this object that can - be used by clients to determine when objects have changed. May be used for optimistic - concurrency, change detection, and the watch operation on a resource or set of resources. - Clients must treat these values as opaque and passed unmodified back to the server. - They may only be valid for a particular resource or set of resources. - - Populated by the system. - Read-only. - Value must be treated as opaque by clients and . - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency - +optional - type: string - selfLink: - description: |- - Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - +optional - type: string + metadata: + $ref: '#/definitions/V1ObjectMeta' spec: $ref: '#/definitions/PersistentVolumeClaimSpec' - uid: - $ref: '#/definitions/UID' type: object PersistentVolumeClaimVolumeSource: description: |- @@ -2864,12 +2396,10 @@ definitions: description: |- readOnly Will force the ReadOnly setting in VolumeMounts. Default false. - +optional type: boolean title: PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. type: object PersistentVolumeMode: - description: +enum title: PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem. type: string PhotonPersistentDiskVolumeSource: @@ -2901,8 +2431,6 @@ definitions: compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - +optional - +listType=atomic items: $ref: '#/definitions/WeightedPodAffinityTerm' type: array @@ -2915,8 +2443,6 @@ definitions: system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - +optional - +listType=atomic items: $ref: '#/definitions/PodAffinityTerm' type: array @@ -2944,9 +2470,6 @@ definitions: The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - - +listType=atomic - +optional items: type: string type: array @@ -2961,9 +2484,6 @@ definitions: The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - - +listType=atomic - +optional items: type: string type: array @@ -2975,8 +2495,6 @@ definitions: The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". - +optional - +listType=atomic items: type: string type: array @@ -3002,8 +2520,6 @@ definitions: compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. - +optional - +listType=atomic items: $ref: '#/definitions/WeightedPodAffinityTerm' type: array @@ -3016,8 +2532,6 @@ definitions: system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. - +optional - +listType=atomic items: $ref: '#/definitions/PodAffinityTerm' type: array @@ -3027,7 +2541,6 @@ definitions: description: |- PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume when volume is mounted. - +enum type: string PodSELinuxChangePolicy: title: PodSELinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. @@ -3051,7 +2564,6 @@ definitions: 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. - +optional format: int64 type: integer fsGroupChangePolicy: @@ -3064,7 +2576,6 @@ definitions: PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - +optional format: int64 type: integer runAsNonRoot: @@ -3075,7 +2586,6 @@ definitions: 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. - +optional type: boolean runAsUser: description: |- @@ -3085,7 +2595,6 @@ definitions: PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. - +optional format: int64 type: integer seLinuxChangePolicy: @@ -3105,8 +2614,6 @@ definitions: defined in the container image may still be used, depending on the supplementalGroupsPolicy field. Note that this field cannot be set when spec.os.name is windows. - +optional - +listType=atomic items: format: int64 type: integer @@ -3118,8 +2625,6 @@ definitions: 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. - +optional - +listType=atomic items: $ref: '#/definitions/Sysctl' type: array @@ -3139,7 +2644,6 @@ definitions: description: |- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean volumeID: description: volumeID uniquely identifies a Portworx volume @@ -3169,7 +2673,6 @@ definitions: description: |- Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. - +optional format: int32 type: integer grpc: @@ -3180,21 +2683,18 @@ definitions: description: |- Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - +optional format: int32 type: integer periodSeconds: description: |- How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. - +optional format: int32 type: integer successThreshold: description: |- Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - +optional format: int32 type: integer tcpSocket: @@ -3211,7 +2711,6 @@ definitions: the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - +optional format: int64 type: integer timeoutSeconds: @@ -3219,12 +2718,10 @@ definitions: Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - +optional format: int32 type: integer type: object ProcMountType: - description: +enum type: string Progress: title: Progress in N/M format. N is number of task complete. M is number of tasks. @@ -3240,15 +2737,12 @@ definitions: Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer sources: description: |- sources is the list of volume projections. Each entry in this list handles one source. - +optional - +listType=atomic items: $ref: '#/definitions/VolumeProjection' type: array @@ -3278,13 +2772,10 @@ definitions: type: string type: object Protocol: - description: +enum title: Protocol defines network protocols supported for things like container ports. type: string PullPolicy: - description: |- - PullPolicy describes a policy for if/when to pull a container image - +enum + description: PullPolicy describes a policy for if/when to pull a container image type: string Quantity: description: |- @@ -3325,16 +2816,16 @@ definitions: This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. + - No precision is lost + - No fractional digits will be emitted + - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" + - 1.5 will be serialized as "1500m" + - 1.5Gi will be serialized as "1536Mi" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. @@ -3346,13 +2837,6 @@ definitions: This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. - - +protobuf=true - +protobuf.embed=string - +protobuf.options.marshal=false - +protobuf.options.(gogoproto.goproto_stringer)=false - +k8s:deepcopy-gen=true - +k8s:openapi-gen=true title: |- Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, @@ -3365,13 +2849,11 @@ definitions: description: |- group to map volume access to Default is no group - +optional type: string readOnly: description: |- readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. - +optional type: boolean registry: description: |- @@ -3383,13 +2865,11 @@ definitions: description: |- tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin - +optional type: string user: description: |- user to map volume access to Defaults to serivceaccount user - +optional type: string volume: description: volume is a string that references an already created Quobyte volume by name. @@ -3406,7 +2886,6 @@ definitions: Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine - +optional type: string image: description: |- @@ -3418,14 +2897,11 @@ definitions: keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - +optional - +default="/etc/ceph/keyring" type: string monitors: description: |- monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - +listType=atomic items: type: string type: array @@ -3434,15 +2910,12 @@ definitions: pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - +optional - +default="rbd" type: string readOnly: description: |- readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' @@ -3451,8 +2924,6 @@ definitions: user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - +optional - +default="admin" type: string title: Represents a Rados Block Device mount that lasts the lifetime of a pod. type: object @@ -3479,25 +2950,18 @@ definitions: Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. - - +optional type: string title: ResourceClaim references one entry in PodSpec.ResourceClaims. type: object ResourceFieldSelector: - description: |- - ResourceFieldSelector represents container resources (cpu, memory) and their output format - +structType=atomic + description: ResourceFieldSelector represents container resources (cpu, memory) and their output format properties: containerName: - description: |- - Container name: required for volumes, optional for env vars - +optional + description: 'Container name: required for volumes, optional for env vars' type: string divisor: $ref: '#/definitions/Quantity' resource: - description: 'Required: resource to select' type: string type: object ResourceList: @@ -3519,11 +2983,6 @@ definitions: DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. - - +listType=map - +listMapKey=name - +featureGate=DynamicResourceAllocation - +optional items: $ref: '#/definitions/ResourceClaim' type: array @@ -3663,24 +3122,16 @@ definitions: description: SELinuxOptions are the labels to be applied to the container properties: level: - description: |- - Level is SELinux level label that applies to the container. - +optional + description: Level is SELinux level label that applies to the container. type: string role: - description: |- - Role is a SELinux role label that applies to the container. - +optional + description: Role is a SELinux role label that applies to the container. type: string type: - description: |- - Type is a SELinux type label that applies to the container. - +optional + description: Type is a SELinux type label that applies to the container. type: string user: - description: |- - User is a SELinux user label that applies to the container. - +optional + description: User is a SELinux user label that applies to the container. type: string type: object ScaleIOVolumeSource: @@ -3692,41 +3143,30 @@ definitions: Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". - +optional - +default="xfs" type: string gateway: description: gateway is the host address of the ScaleIO API Gateway. type: string protectionDomain: - description: |- - protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. - +optional + description: protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. type: string readOnly: description: |- readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' sslEnabled: - description: |- - sslEnabled Flag enable/disable SSL communication with Gateway, default false - +optional + description: sslEnabled Flag enable/disable SSL communication with Gateway, default false type: boolean storageMode: description: |- storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. - +optional - +default="ThinProvisioned" type: string storagePool: - description: |- - storagePool is the ScaleIO Storage Pool associated with the protection domain. - +optional + description: storagePool is the ScaleIO Storage Pool associated with the protection domain. type: string system: description: system is the name of the storage system as configured in ScaleIO. @@ -3750,8 +3190,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -3765,8 +3203,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -3774,11 +3210,6 @@ definitions: description: |- List of environment variables to set in the container. Cannot be updated. - +optional - +patchMergeKey=name - +patchStrategy=merge - +listType=map - +listMapKey=name items: $ref: '#/definitions/EnvVar' type: array @@ -3790,8 +3221,6 @@ definitions: 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. - +optional - +listType=atomic items: $ref: '#/definitions/EnvFromSource' type: array @@ -3801,7 +3230,6 @@ definitions: More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - +optional type: string imagePullPolicy: $ref: '#/definitions/PullPolicy' @@ -3824,23 +3252,13 @@ definitions: Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. - +optional - +patchMergeKey=containerPort - +patchStrategy=merge - +listType=map - +listMapKey=containerPort - +listMapKey=protocol items: $ref: '#/definitions/ContainerPort' type: array readinessProbe: $ref: '#/definitions/Probe' resizePolicy: - description: |- - Resources resize policy for the container. - +featureGate=InPlacePodVerticalScaling - +optional - +listType=atomic + description: Resources resize policy for the container. items: $ref: '#/definitions/ContainerResizePolicy' type: array @@ -3860,7 +3278,6 @@ definitions: 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. - +optional type: boolean stdinOnce: description: |- @@ -3871,7 +3288,6 @@ definitions: 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 - +optional type: boolean terminationMessagePath: description: |- @@ -3882,7 +3298,6 @@ definitions: all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - +optional type: string terminationMessagePolicy: $ref: '#/definitions/TerminationMessagePolicy' @@ -3890,16 +3305,9 @@ definitions: description: |- Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - +optional type: boolean volumeDevices: - description: |- - volumeDevices is the list of block devices to be used by the container. - +patchMergeKey=devicePath - +patchStrategy=merge - +listType=map - +listMapKey=devicePath - +optional + description: volumeDevices is the list of block devices to be used by the container. items: $ref: '#/definitions/VolumeDevice' type: array @@ -3907,11 +3315,6 @@ definitions: description: |- Pod volumes to mount into the container's filesystem. Cannot be updated. - +optional - +patchMergeKey=mountPath - +patchStrategy=merge - +listType=map - +listMapKey=mountPath items: $ref: '#/definitions/VolumeMount' type: array @@ -3921,13 +3324,10 @@ definitions: If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - +optional type: string type: object SeccompProfile: - description: |- - Only one profile source may be set. - +union + description: Only one profile source may be set. properties: localhostProfile: description: |- @@ -3935,14 +3335,12 @@ definitions: The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is "Localhost". Must NOT be set for any other type. - +optional type: string type: $ref: '#/definitions/SeccompProfileType' title: SeccompProfile defines a pod/container's seccomp profile settings. type: object SeccompProfileType: - description: +enum title: SeccompProfileType defines the supported seccomp profile types. type: string SecretEnvSource: @@ -3957,22 +3355,16 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - Specify whether the Secret must be defined - +optional + description: Specify whether the Secret must be defined type: boolean title: |- SecretEnvSource selects a Secret to populate the environment variables with. type: object SecretKeySelector: - description: +structType=atomic properties: key: description: The key of the secret to select from. Must be a valid secret key. @@ -3984,15 +3376,10 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - Specify whether the Secret or its key must be defined - +optional + description: Specify whether the Secret or its key must be defined type: boolean title: SecretKeySelector selects a key of a Secret. type: object @@ -4012,8 +3399,6 @@ definitions: present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - +optional - +listType=atomic items: $ref: '#/definitions/KeyToPath' type: array @@ -4024,15 +3409,10 @@ definitions: allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - +optional - +default="" - +kubebuilder:default="" TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string optional: - description: |- - optional field specify whether the Secret or its key must be defined - +optional + description: optional field specify whether the Secret or its key must be defined type: boolean title: Adapts a secret into a projected volume. type: object @@ -4051,7 +3431,6 @@ definitions: Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. - +optional format: int32 type: integer items: @@ -4063,21 +3442,16 @@ definitions: present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. - +optional - +listType=atomic items: $ref: '#/definitions/KeyToPath' type: array optional: - description: |- - optional field specify whether the Secret or its keys must be defined - +optional + description: optional field specify whether the Secret or its keys must be defined type: boolean secretName: description: |- secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - +optional type: string title: Adapts a Secret into a volume. type: object @@ -4095,7 +3469,6 @@ definitions: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. - +optional type: boolean appArmorProfile: $ref: '#/definitions/AppArmorProfile' @@ -4107,7 +3480,6 @@ definitions: Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. - +optional type: boolean procMount: $ref: '#/definitions/ProcMountType' @@ -4116,7 +3488,6 @@ definitions: Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. - +optional type: boolean runAsGroup: description: |- @@ -4125,7 +3496,6 @@ definitions: May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - +optional format: int64 type: integer runAsNonRoot: @@ -4136,7 +3506,6 @@ definitions: If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - +optional type: boolean runAsUser: description: |- @@ -4145,7 +3514,6 @@ definitions: May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. - +optional format: int64 type: integer seLinuxOptions: @@ -4162,7 +3530,7 @@ definitions: configMapKeyRef: $ref: '#/definitions/ConfigMapKeySelector' namespace: - default: '[namespace of workflow]' + description: 'Namespace is the namespace of the configmap, default: [namespace of workflow]' type: string type: object Sequence: @@ -4191,7 +3559,6 @@ definitions: must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. - +optional type: string expirationSeconds: description: |- @@ -4201,7 +3568,6 @@ definitions: start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. - +optional format: int64 type: integer path: @@ -4228,13 +3594,11 @@ definitions: fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - +optional type: string readOnly: description: |- readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. - +optional type: boolean secretRef: $ref: '#/definitions/LocalObjectReference' @@ -4251,7 +3615,6 @@ definitions: Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. - +optional type: string title: Represents a StorageOS persistent volume resource. type: object @@ -4259,7 +3622,6 @@ definitions: description: |- SupplementalGroupsPolicy defines how supplemental groups of the first container processes are calculated. - +enum type: string SuppliedValueFrom: title: SuppliedValueFrom is a placeholder for a value to be filled in directly, either through the CLI, API, etc. @@ -4305,15 +3667,12 @@ definitions: description: TCPSocketAction describes an action based on opening a socket properties: host: - description: |- - Optional: Host name to connect to, defaults to the pod IP. - +optional + description: 'Optional: Host name to connect to, defaults to the pod IP.' type: string port: $ref: '#/definitions/IntOrString' type: object TaintEffect: - description: +enum type: string TarStrategy: description: TarStrategy will tar and gzip the file or directory when saving @@ -4358,20 +3717,14 @@ definitions: template is expanded with `withItems`, etc. type: boolean hostAliases: - description: |- - HostAliases is an optional list of hosts and IPs that will be injected into the pod spec - +patchStrategy=merge - +patchMergeKey=ip + description: HostAliases is an optional list of hosts and IPs that will be injected into the pod spec items: $ref: '#/definitions/HostAlias' type: array http: $ref: '#/definitions/HTTP' initContainers: - description: |- - InitContainers is a list of containers which run before the main container. - +patchStrategy=merge - +patchMergeKey=name + description: InitContainers is a list of containers which run before the main container. items: $ref: '#/definitions/UserContainer' type: array @@ -4425,7 +3778,6 @@ definitions: If specified, the pod will be dispatched by specified scheduler. Or it will be dispatched by workflow scope scheduler if specified. If neither specified, the pod will be dispatched by default scheduler. - +optional type: string script: $ref: '#/definitions/ScriptTemplate' @@ -4438,8 +3790,6 @@ definitions: description: |- Sidecars is a list of containers which run alongside the main container Sidecars are automatically killed when the main container completes - +patchStrategy=merge - +patchMergeKey=name items: $ref: '#/definitions/UserContainer' type: array @@ -4458,18 +3808,12 @@ definitions: This duration also includes time in which the node spends in Pending state. This duration may not be applied to Step or DAG templates. type: string tolerations: - description: |- - Tolerations to apply to workflow pods. - +patchStrategy=merge - +patchMergeKey=key + description: Tolerations to apply to workflow pods. items: $ref: '#/definitions/Toleration' type: array volumes: - description: |- - Volumes is a list of volumes that can be mounted by containers in a template. - +patchStrategy=merge - +patchMergeKey=name + description: Volumes is a list of volumes that can be mounted by containers in a template. items: $ref: '#/definitions/Volume' type: array @@ -4488,7 +3832,6 @@ definitions: title: TemplateRef is a reference of template resource. type: object TerminationMessagePolicy: - description: +enum title: TerminationMessagePolicy describes how termination messages are retrieved from a container. type: string Toleration: @@ -4502,7 +3845,6 @@ definitions: description: |- Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. - +optional type: string operator: $ref: '#/definitions/TolerationOperator' @@ -4512,18 +3854,15 @@ definitions: of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. - +optional format: int64 type: integer value: description: |- Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. - +optional type: string type: object TolerationOperator: - description: +enum title: A toleration operator is the set of operators that can be used in a toleration. type: string Transformation: @@ -4542,27 +3881,14 @@ definitions: type: integer TypedLocalObjectReference: description: |- - New uses of this type are discouraged because of difficulty describing its usage when embedded in APIs. - 1. Invalid usage help. It is impossible to add specific help for individual usage. In most embedded usages, there are particular - restrictions like, "must refer only to types A and B" or "UID not honored" or "name must be restricted". - Those cannot be well described when embedded. - 2. Inconsistent validation. Because the usages are different, the validation rules are different by usage, which makes it hard for users to predict what will happen. - 3. The fields are both imprecise and overly precise. Kind is not a precise mapping to a URL. This can produce ambiguity - during interpretation and require a REST mapping. In most cases, the dependency is on the group,resource tuple - and the version of the actual struct is irrelevant. - 4. We cannot easily change it. Because this type is embedded in many locations, updates to this type - will affect numerous schemas. Don't make new APIs embed an underspecified API type they do not control. - - Instead of using this type, create a locally provided and used type that is well-focused on your reference. - For example, ServiceReferences for admission registration: https://github.com/kubernetes/api/blob/release-1.17/admissionregistration/v1/types.go#L533 . - +structType=atomic + TypedLocalObjectReference contains enough information to let you locate the + typed referenced object inside the same namespace. properties: apiGroup: description: |- APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - +optional type: string kind: description: Kind is the type of resource being referenced @@ -4570,9 +3896,6 @@ definitions: name: description: Name is the name of resource being referenced type: string - title: |- - TypedLocalObjectReference contains enough information to let you locate the - typed referenced object inside the same namespace. type: object TypedObjectReference: description: TypedObjectReference contains enough information to let you locate the typed referenced object @@ -4582,7 +3905,6 @@ definitions: APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. - +optional type: string kind: description: Kind is the type of resource being referenced @@ -4595,8 +3917,6 @@ definitions: Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - +featureGate=CrossNamespaceVolumeDataSource - +optional type: string type: object UID: @@ -4606,9 +3926,7 @@ definitions: intent and helps make sure that UIDs and names do not get conflated. type: string URIScheme: - description: |- - URIScheme identifies the scheme used for connection to a host for Get actions - +enum + description: URIScheme identifies the scheme used for connection to a host for Get actions type: string UserContainer: properties: @@ -4622,8 +3940,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -4637,8 +3953,6 @@ definitions: 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 - +optional - +listType=atomic items: type: string type: array @@ -4646,11 +3960,6 @@ definitions: description: |- List of environment variables to set in the container. Cannot be updated. - +optional - +patchMergeKey=name - +patchStrategy=merge - +listType=map - +listMapKey=name items: $ref: '#/definitions/EnvVar' type: array @@ -4662,8 +3971,6 @@ definitions: 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. - +optional - +listType=atomic items: $ref: '#/definitions/EnvFromSource' type: array @@ -4673,7 +3980,6 @@ definitions: More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. - +optional type: string imagePullPolicy: $ref: '#/definitions/PullPolicy' @@ -4703,23 +4009,13 @@ definitions: Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. - +optional - +patchMergeKey=containerPort - +patchStrategy=merge - +listType=map - +listMapKey=containerPort - +listMapKey=protocol items: $ref: '#/definitions/ContainerPort' type: array readinessProbe: $ref: '#/definitions/Probe' resizePolicy: - description: |- - Resources resize policy for the container. - +featureGate=InPlacePodVerticalScaling - +optional - +listType=atomic + description: Resources resize policy for the container. items: $ref: '#/definitions/ContainerResizePolicy' type: array @@ -4736,7 +4032,6 @@ definitions: 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. - +optional type: boolean stdinOnce: description: |- @@ -4747,7 +4042,6 @@ definitions: 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 - +optional type: boolean terminationMessagePath: description: |- @@ -4758,7 +4052,6 @@ definitions: all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. - +optional type: string terminationMessagePolicy: $ref: '#/definitions/TerminationMessagePolicy' @@ -4766,16 +4059,9 @@ definitions: description: |- Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. - +optional type: boolean volumeDevices: - description: |- - volumeDevices is the list of block devices to be used by the container. - +patchMergeKey=devicePath - +patchStrategy=merge - +listType=map - +listMapKey=devicePath - +optional + description: volumeDevices is the list of block devices to be used by the container. items: $ref: '#/definitions/VolumeDevice' type: array @@ -4783,11 +4069,6 @@ definitions: description: |- Pod volumes to mount into the container's filesystem. Cannot be updated. - +optional - +patchMergeKey=mountPath - +patchStrategy=merge - +listType=map - +listMapKey=mountPath items: $ref: '#/definitions/VolumeMount' type: array @@ -4797,10 +4078,193 @@ definitions: If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. - +optional type: string title: UserContainer is a container specified by a user. type: object + V1HTTPHeader: + description: HTTPHeader describes a custom header to be used in HTTP probes + properties: + name: + description: |- + The header field name. + This will be canonicalized upon output, so case-variant names will be understood as the same header. + type: string + value: + description: The header field value + type: string + type: object + V1ObjectMeta: + description: |- + ObjectMeta is metadata that all persisted resources must have, which includes all objects + users must create. + properties: + annotations: + additionalProperties: + type: string + description: |- + Annotations is an unstructured key value map stored with a resource that may be + set by external tools to store and retrieve arbitrary metadata. They are not + queryable and should be preserved when modifying objects. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations + type: object + creationTimestamp: + description: |- + CreationTimestamp is a timestamp representing the server time when this object was + created. It is not guaranteed to be set in happens-before order across separate operations. + Clients may not set this value. It is represented in RFC3339 form and is in UTC. + + Populated by the system. + Read-only. + Null for lists. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + type: string + deletionGracePeriodSeconds: + description: |- + Number of seconds allowed for this object to gracefully terminate before + it will be removed from the system. Only set when deletionTimestamp is also set. + May only be shortened. + Read-only. + format: int64 + type: integer + deletionTimestamp: + description: |- + DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This + field is set by the server when a graceful deletion is requested by the user, and is not + directly settable by a client. The resource is expected to be deleted (no longer visible + from resource lists, and not reachable by name) after the time in this field, once the + finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. + Once the deletionTimestamp is set, this value may not be unset or be set further into the + future, although it may be shortened or the resource may be deleted prior to this time. + For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react + by sending a graceful termination signal to the containers in the pod. After that 30 seconds, + the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, + remove the pod from the API. In the presence of network partitions, this object may still + exist after this timestamp, until an administrator or automated process can determine the + resource is fully terminated. + If not set, graceful deletion of the object has not been requested. + + Populated by the system when a graceful deletion is requested. + Read-only. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + type: string + finalizers: + description: |- + Must be empty before the object is deleted from the registry. Each entry + is an identifier for the responsible component that will remove the entry + from the list. If the deletionTimestamp of the object is non-nil, entries + in this list can only be removed. + Finalizers may be processed and removed in any order. Order is NOT enforced + because it introduces significant risk of stuck finalizers. + finalizers is a shared field, any actor with permission can reorder it. + If the finalizer list is processed in order, then this can lead to a situation + in which the component responsible for the first finalizer in the list is + waiting for a signal (field value, external system, or other) produced by a + component responsible for a finalizer later in the list, resulting in a deadlock. + Without enforced ordering finalizers are free to order amongst themselves and + are not vulnerable to ordering changes in the list. + items: + type: string + type: array + generateName: + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique + name ONLY IF the Name field has not been provided. + If this field is used, the name returned to the client will be different + than the name passed. This value will also be combined with a unique suffix. + The provided value has the same validation rules as the Name field, + and may be truncated by the length of the suffix required to make the value + unique on the server. + + If this field is specified and the generated name exists, the server will return a 409. + + Applied only if Name is not specified. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + type: string + generation: + description: |- + A sequence number representing a specific generation of the desired state. + Populated by the system. Read-only. + format: int64 + type: integer + labels: + additionalProperties: + type: string + description: |- + Map of string keys and values that can be used to organize and categorize + (scope and select) objects. May match selectors of replication controllers + and services. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels + type: object + managedFields: + description: |- + ManagedFields maps workflow-id and version to the set of fields + that are managed by that workflow. This is mostly for internal + housekeeping, and users typically shouldn't need to set or + understand this field. A workflow can be the user's name, a + controller's name, or the name of a specific apply path like + "ci-cd". The set of fields is always in the version that the + workflow used when modifying the object. + items: + $ref: '#/definitions/ManagedFieldsEntry' + type: array + name: + description: |- + Name must be unique within a namespace. Is required when creating resources, although + some resources may allow a client to request the generation of an appropriate name + automatically. Name is primarily intended for creation idempotence and configuration + definition. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names + type: string + namespace: + description: |- + Namespace defines the space within which each name must be unique. An empty namespace is + equivalent to the "default" namespace, but "default" is the canonical representation. + Not all objects are required to be scoped to a namespace - the value of this field for + those objects will be empty. + + Must be a DNS_LABEL. + Cannot be updated. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces + type: string + ownerReferences: + description: |- + List of objects depended by this object. If ALL objects in the list have + been deleted, this object will be garbage collected. If this object is managed by a controller, + then an entry in this list will point to this controller, with the controller field set to true. + There cannot be more than one managing controller. + items: + $ref: '#/definitions/OwnerReference' + type: array + resourceVersion: + description: |- + An opaque value that represents the internal version of this object that can + be used by clients to determine when objects have changed. May be used for optimistic + concurrency, change detection, and the watch operation on a resource or set of resources. + Clients must treat these values as opaque and passed unmodified back to the server. + They may only be valid for a particular resource or set of resources. + + Populated by the system. + Read-only. + Value must be treated as opaque by clients and . + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + type: string + selfLink: + description: 'Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.' + type: string + x-deprecated: true + uid: + $ref: '#/definitions/UID' + type: object + V1alpha1HTTPHeader: + properties: + name: + type: string + value: + type: string + valueFrom: + $ref: '#/definitions/HTTPHeaderSource' + type: object ValueFrom: description: ValueFrom describes a location in which to obtain the value to a parameter properties: @@ -4927,7 +4391,6 @@ definitions: description: |- Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. - +optional type: boolean recursiveReadOnly: $ref: '#/definitions/RecursiveReadOnlyMode' @@ -4935,7 +4398,6 @@ definitions: description: |- Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root). - +optional type: string subPathExpr: description: |- @@ -4943,7 +4405,6 @@ definitions: Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to "" (volume's root). SubPathExpr and SubPath are mutually exclusive. - +optional type: string title: VolumeMount describes a mounting of a Volume within a container. type: object @@ -4977,17 +4438,12 @@ definitions: fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - +optional type: string storagePolicyID: - description: |- - storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. - +optional + description: storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. type: string storagePolicyName: - description: |- - storagePolicyName is the storage Policy Based Management (SPBM) profile name. - +optional + description: storagePolicyName is the storage Policy Based Management (SPBM) profile name. type: string volumePath: description: volumePath is the path that identifies vSphere volume vmdk @@ -5013,12 +4469,9 @@ definitions: GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. - +optional type: string gmsaCredentialSpecName: - description: |- - GMSACredentialSpecName is the name of the GMSA credential spec to use. - +optional + description: GMSACredentialSpecName is the name of the GMSA credential spec to use. type: string hostProcess: description: |- @@ -5026,7 +4479,6 @@ definitions: All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. - +optional type: boolean runAsUserName: description: |- @@ -5034,14 +4486,13 @@ definitions: Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. - +optional type: string title: WindowsSecurityContextOptions contain Windows-specific options and credentials. type: object Workflow: properties: metadata: - $ref: '#/definitions/ObjectMeta' + $ref: '#/definitions/ExecutorObjectMeta' required: - metadata type: object diff --git a/server/auth/webhook/interceptor.go b/server/auth/webhook/interceptor.go index 3179a907b1d3..78cfc00f7ab3 100644 --- a/server/auth/webhook/interceptor.go +++ b/server/auth/webhook/interceptor.go @@ -67,8 +67,16 @@ func addWebhookAuthorization(r *http.Request, kube kubernetes.Interface) error { return fmt.Errorf("failed to get webhook clients: %w", err) } // we need to read the request body to check the signature, but we still need it for the GRPC request, - // so read it all now, and then reinstate when we are done - buf, _ := io.ReadAll(r.Body) + // so read it all now, and then reinstate when we are done. + // Limit to 2MB to prevent denial-of-service via oversized webhook payloads. + const maxWebhookSize = 2 * 1024 * 1024 // 2MB + buf, err2 := io.ReadAll(io.LimitReader(r.Body, maxWebhookSize+1)) + if err2 != nil { + return fmt.Errorf("failed to read webhook request body: %w", err2) + } + if len(buf) > maxWebhookSize { + return fmt.Errorf("webhook request body exceeds maximum size of 2MB") + } defer func() { r.Body = io.NopCloser(bytes.NewBuffer(buf)) }() serviceAccountInterface := kube.CoreV1().ServiceAccounts(namespace) for serviceAccountName, data := range webhookClients.Data { diff --git a/server/auth/webhook/interceptor_test.go b/server/auth/webhook/interceptor_test.go index 5026ad943cee..1f27de58dd54 100644 --- a/server/auth/webhook/interceptor_test.go +++ b/server/auth/webhook/interceptor_test.go @@ -73,6 +73,26 @@ func TestInterceptor(t *testing.T) { }) } +func TestInterceptorOversizedBody(t *testing.T) { + k := fake.NewSimpleClientset( + &corev1.Secret{ + ObjectMeta: metav1.ObjectMeta{Name: "argo-workflows-webhook-clients", Namespace: "my-ns"}, + Data: map[string][]byte{ + "github": []byte("type: github\nsecret: sh!"), + }, + }, + ) + i := Interceptor(k) + w := httptest.NewRecorder() + // Create a body that exceeds 2MB + body := bytes.NewReader(make([]byte, 2*1024*1024+1)) + r := httptest.NewRequest("POST", "/api/v1/events/my-ns/my-d", body) + h := &testHTTPHandler{} + i(w, r, h) + assert.Equal(t, 403, w.Code) + assert.JSONEq(t, `{"message": "failed to process webhook request"}`, w.Body.String()) +} + func intercept(method string, target string, headers map[string]string) (*http.Request, *httptest.ResponseRecorder) { // set-up k := fake.NewSimpleClientset( diff --git a/util/grpc/mux.go b/util/grpc/mux.go index a18452f5abf0..bbfab1021c20 100644 --- a/util/grpc/mux.go +++ b/util/grpc/mux.go @@ -6,7 +6,7 @@ import ( "strings" "golang.org/x/net/http2" - "golang.org/x/net/http2/h2c" + "golang.org/x/net/http2/h2c" //nolint:staticcheck // h2c replacement requires broader refactor beyond CVE scope ) func IncomingHeaderMatcher(key string) (string, bool) { @@ -48,7 +48,7 @@ func IncomingHeaderMatcher(key string) (string, bool) { // to an HTTP/2 connection which is understandable to s.ServeConn. (s.ServeConn // understands HTTP/2 except for the h2c part of it.)" func NewMuxHandler(grpcServerHandler http.Handler, httpServerHandler http.Handler) http.Handler { - return h2c.NewHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + return h2c.NewHandler(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { //nolint:staticcheck // h2c replacement requires broader refactor beyond CVE scope // Match against "Content-Type", which is guaranteed to start with "application/grpc" for gRPC requests. // Spec: https://chromium.googlesource.com/external/github.com/grpc/grpc/+/HEAD/doc/PROTOCOL-HTTP2.md if r.ProtoMajor == 2 && strings.HasPrefix(r.Header.Get("Content-Type"), "application/grpc") { diff --git a/util/telemetry/exporter_prometheus_test.go b/util/telemetry/exporter_prometheus_test.go index 0bc76a3b5246..69c28afeb3c0 100644 --- a/util/telemetry/exporter_prometheus_test.go +++ b/util/telemetry/exporter_prometheus_test.go @@ -6,6 +6,7 @@ import ( "context" "fmt" "io" + "net" "net/http" "sync" "testing" @@ -19,17 +20,23 @@ import ( const testScopeName string = "argo-workflows-test" func TestDisablePrometheusServer(t *testing.T) { + // Use a random free port to avoid false passes when something else listens on 9090 + l, err := net.Listen("tcp", "localhost:0") + require.NoError(t, err) + port := l.Addr().(*net.TCPAddr).Port + l.Close() + config := Config{ Enabled: false, Path: DefaultPrometheusServerPath, - Port: DefaultPrometheusServerPort, + Port: port, } ctx, cancel := context.WithCancel(context.Background()) defer cancel() m, err := NewMetrics(ctx, testScopeName, testScopeName, &config) require.NoError(t, err) m.RunPrometheusServer(ctx, false) - resp, err := http.Get(fmt.Sprintf("http://localhost:%d%s", DefaultPrometheusServerPort, DefaultPrometheusServerPath)) + resp, err := http.Get(fmt.Sprintf("http://localhost:%d%s", port, DefaultPrometheusServerPath)) if resp != nil { defer resp.Body.Close() } diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 637e8b108710..8fbff685b8f9 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -4011,6 +4011,15 @@ func (woc *wfOperationCtx) retryStrategy(tmpl *wfv1.Template) *wfv1.RetryStrateg func (woc *wfOperationCtx) setExecWorkflow(ctx context.Context) error { if woc.wf.Spec.WorkflowTemplateRef != nil { // not-woc-misuse + // When workflow restrictions require template referencing (Strict/Secure mode), + // reject workflows that set any non-allowed fields, as they could override + // security settings defined in the WorkflowTemplate. + if woc.controller.Config.WorkflowRestrictions.MustUseReference() { // not-woc-misuse: intentionally checking the user-submitted spec + if err := wfutil.ValidateUserOverrides(&woc.wf.Spec); err != nil { // not-woc-misuse + woc.markWorkflowError(ctx, err) + return err + } + } err := woc.setStoredWfSpec(ctx) if err != nil { woc.markWorkflowError(ctx, err) @@ -4123,8 +4132,14 @@ func (woc *wfOperationCtx) setStoredWfSpec(ctx context.Context) error { } // Update the Entrypoint, ShutdownStrategy and Suspend if woc.needsStoredWfSpecUpdate() { + // In reference mode, sanitize the user spec before merging so that + // only allow-listed fields participate in the strategic merge patch. + userSpec := &woc.wf.Spec // not-woc-misuse + if woc.controller.Config.WorkflowRestrictions.MustUseReference() { + userSpec = wfutil.SanitizeUserWorkflowSpec(&woc.wf.Spec) // not-woc-misuse + } // Join workflow, workflow template, and workflow default metadata to workflow spec. - mergedWf, err := wfutil.JoinWorkflowSpec(&woc.wf.Spec, workflowTemplateSpec, &wfDefault.Spec) // not-woc-misuse + mergedWf, err := wfutil.JoinWorkflowSpec(userSpec, workflowTemplateSpec, &wfDefault.Spec) if err != nil { return err } @@ -4135,7 +4150,11 @@ func (woc *wfOperationCtx) setStoredWfSpec(ctx context.Context) error { if err != nil { return err } - mergedWf, err := wfutil.JoinWorkflowSpec(&woc.wf.Spec, wftHolder.GetWorkflowSpec(), &wfDefault.Spec) // not-woc-misuse + userSpec := &woc.wf.Spec // not-woc-misuse + if woc.controller.Config.WorkflowRestrictions.MustUseReference() { + userSpec = wfutil.SanitizeUserWorkflowSpec(&woc.wf.Spec) // not-woc-misuse + } + mergedWf, err := wfutil.JoinWorkflowSpec(userSpec, wftHolder.GetWorkflowSpec(), &wfDefault.Spec) if err != nil { return err } diff --git a/workflow/controller/operator_test.go b/workflow/controller/operator_test.go index 9878e932d04c..6a396a3fb475 100644 --- a/workflow/controller/operator_test.go +++ b/workflow/controller/operator_test.go @@ -5442,6 +5442,160 @@ func TestValidReferenceMode(t *testing.T) { assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) } +func TestReferenceModeBlocksDisallowedFields(t *testing.T) { + wf := wfv1.MustUnmarshalWorkflow("@testdata/workflow-template-ref.yaml") + wfTmpl := wfv1.MustUnmarshalWorkflowTemplate("@testdata/workflow-template-submittable.yaml") + + t.Run("Strict rejects podSpecPatch", func(t *testing.T) { + wfWithPatch := wf.DeepCopy() + wfWithPatch.Spec.PodSpecPatch = `{"containers":[{"name":"main","securityContext":{"privileged":true}}]}` + cancel, controller := newController(wfWithPatch, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfWithPatch, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "PodSpecPatch") + assert.Contains(t, woc.wf.Status.Message, "not permitted") + }) + + t.Run("Secure rejects podSpecPatch", func(t *testing.T) { + wfWithPatch := wf.DeepCopy() + wfWithPatch.Spec.PodSpecPatch = `{"containers":[{"name":"main","securityContext":{"runAsUser":0}}]}` + cancel, controller := newController(wfWithPatch, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingSecure, + } + woc := newWorkflowOperationCtx(wfWithPatch, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "PodSpecPatch") + assert.Contains(t, woc.wf.Status.Message, "not permitted") + }) + + t.Run("Strict rejects ServiceAccountName", func(t *testing.T) { + wfCopy := wf.DeepCopy() + wfCopy.Spec.ServiceAccountName = "admin" + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "ServiceAccountName") + }) + + t.Run("Strict rejects SecurityContext", func(t *testing.T) { + wfCopy := wf.DeepCopy() + wfCopy.Spec.SecurityContext = &apiv1.PodSecurityContext{} + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "SecurityContext") + }) + + t.Run("Strict rejects Templates", func(t *testing.T) { + wfCopy := wf.DeepCopy() + wfCopy.Spec.Templates = []wfv1.Template{{Name: "injected"}} + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "Templates") + }) + + t.Run("Strict rejects Volumes", func(t *testing.T) { + wfCopy := wf.DeepCopy() + wfCopy.Spec.Volumes = []apiv1.Volume{{Name: "secret-vol"}} + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "Volumes") + }) + + t.Run("Strict rejects HostNetwork", func(t *testing.T) { + wfCopy := wf.DeepCopy() + hostNet := true + wfCopy.Spec.HostNetwork = &hostNet + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowError, woc.wf.Status.Phase) + assert.Contains(t, woc.wf.Status.Message, "HostNetwork") + }) + + t.Run("No restrictions allows podSpecPatch", func(t *testing.T) { + wfWithPatch := wf.DeepCopy() + wfWithPatch.Spec.PodSpecPatch = `{"containers":[{"name":"main","resources":{"limits":{"cpu":"1"}}}]}` + cancel, controller := newController(wfWithPatch, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = nil + woc := newWorkflowOperationCtx(wfWithPatch, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowRunning, woc.wf.Status.Phase) + }) + + t.Run("Allowed fields pass in Strict mode", func(t *testing.T) { + wfCopy := wf.DeepCopy() + // Set allowed fields only - entrypoint must match one defined in the template + wfCopy.Spec.Entrypoint = "whalesay-template" + wfCopy.Spec.Shutdown = wfv1.ShutdownStrategyTerminate + cancel, controller := newController(wfCopy, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wfCopy, controller) + woc.operate(t.Context()) + // Shutdown=Terminate means it won't reach Running, but it shouldn't be Error + assert.NotEqual(t, wfv1.WorkflowError, woc.wf.Status.Phase) + }) + + t.Run("Without disallowed fields still works in Strict mode", func(t *testing.T) { + cancel, controller := newController(wf, wfTmpl) + defer cancel() + + controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{ + TemplateReferencing: config.TemplateReferencingStrict, + } + woc := newWorkflowOperationCtx(wf, controller) + woc.operate(t.Context()) + assert.Equal(t, wfv1.WorkflowRunning, woc.wf.Status.Phase) + }) +} + var workflowStatusMetric = ` metadata: name: retry-to-completion-rngcr diff --git a/workflow/util/merge.go b/workflow/util/merge.go index c6a0226968b7..7c98d852a0ca 100644 --- a/workflow/util/merge.go +++ b/workflow/util/merge.go @@ -2,6 +2,9 @@ package util import ( "encoding/json" + "fmt" + "reflect" + "sort" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/strategicpatch" @@ -9,6 +12,73 @@ import ( wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1" ) +// allowedUserOverrideFields lists WorkflowSpec fields that users may set when +// submitting a workflow via workflowTemplateRef under Strict/Secure mode. +// Any field NOT in this set is blocked by default, ensuring new fields added +// to WorkflowSpec are denied until explicitly reviewed. +var allowedUserOverrideFields = map[string]bool{ + "Arguments": true, + "Entrypoint": true, + "Shutdown": true, + "Suspend": true, + "ActiveDeadlineSeconds": true, + "Priority": true, + "TTLStrategy": true, + "PodGC": true, + "VolumeClaimGC": true, + "ArchiveLogs": true, + "WorkflowMetadata": true, + "WorkflowTemplateRef": true, + "Metrics": true, + "ArtifactGC": true, +} + +// ValidateUserOverrides checks that a user-submitted WorkflowSpec only sets +// fields from the allow-list. Returns an error listing all violations. +func ValidateUserOverrides(userSpec *wfv1.WorkflowSpec) error { + if userSpec == nil { + return nil + } + v := reflect.ValueOf(userSpec).Elem() + t := v.Type() + zero := reflect.New(t).Elem() + + var violations []string + for i := 0; i < t.NumField(); i++ { + fieldName := t.Field(i).Name + if allowedUserOverrideFields[fieldName] { + continue + } + if !reflect.DeepEqual(v.Field(i).Interface(), zero.Field(i).Interface()) { + violations = append(violations, fieldName) + } + } + if len(violations) > 0 { + sort.Strings(violations) + return fmt.Errorf("fields %v are not permitted when using workflowTemplateRef with templateReferencing restriction", violations) + } + return nil +} + +// SanitizeUserWorkflowSpec returns a copy of userSpec with only allow-listed +// fields preserved. This provides defense-in-depth after validation. +func SanitizeUserWorkflowSpec(userSpec *wfv1.WorkflowSpec) *wfv1.WorkflowSpec { + if userSpec == nil { + return nil + } + sanitized := &wfv1.WorkflowSpec{} + src := reflect.ValueOf(userSpec).Elem() + dst := reflect.ValueOf(sanitized).Elem() + t := src.Type() + + for i := 0; i < t.NumField(); i++ { + if allowedUserOverrideFields[t.Field(i).Name] { + dst.Field(i).Set(src.Field(i)) + } + } + return sanitized +} + // MergeTo will merge one workflow (the "patch" workflow) into another (the "target" workflow. // If the target workflow defines a field, this take precedence over the patch. func MergeTo(patch, target *wfv1.Workflow) error { diff --git a/workflow/util/merge_test.go b/workflow/util/merge_test.go index 2306dd8f3dde..50818f628ce9 100644 --- a/workflow/util/merge_test.go +++ b/workflow/util/merge_test.go @@ -1,11 +1,14 @@ package util import ( + "reflect" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/utils/ptr" wfv1 "github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1" ) @@ -79,40 +82,40 @@ func TestMergeMetaDataTo(t *testing.T) { } var wfDefault = ` -metadata: - annotations: +metadata: + annotations: testAnnotation: default - labels: + labels: testLabel: default -spec: +spec: entrypoint: whalesay activeDeadlineSeconds: 7200 - arguments: - artifacts: + arguments: + artifacts: - name: message path: /tmp/message - parameters: - - + parameters: + - name: message value: "hello world" onExit: whalesay-exit serviceAccountName: default - templates: - - - container: - args: + templates: + - + container: + args: - "hello from the default exit handler" - command: + command: - cowsay image: docker/whalesay name: whalesay-exit - ttlStrategy: + ttlStrategy: secondsAfterCompletion: 60 - volumes: - - + volumes: + - name: test - secret: + secret: secretName: test ` @@ -124,7 +127,7 @@ metadata: namespace: default spec: workflowMetaData: - annotations: + annotations: testAnnotation: wft labels: testLabel: wft @@ -147,16 +150,16 @@ spec: var wf = ` apiVersion: argoproj.io/v1alpha1 kind: Workflow -metadata: +metadata: generateName: hello-world- -spec: +spec: entrypoint: whalesay - templates: - - - container: - args: + templates: + - + container: + args: - "hello world" - command: + command: - cowsay image: "docker/whalesay:latest" name: whalesay @@ -165,62 +168,62 @@ spec: var resultSpec = ` apiVersion: argoproj.io/v1alpha1 kind: Workflow -metadata: +metadata: generateName: hello-world- -spec: +spec: activeDeadlineSeconds: 7200 workflowMetadata: annotations: testAnnotation: wft - labels: - testLabel: wft - arguments: - artifacts: - - + labels: + testLabel: wft + arguments: + artifacts: + - name: message path: /tmp/message - parameters: - - + parameters: + - name: message value: "hello world" entrypoint: whalesay onExit: whalesay-exit serviceAccountName: default - templates: - - - container: - args: + templates: + - + container: + args: - "hello world" - command: + command: - cowsay image: "docker/whalesay:latest" name: whalesay - - - container: - args: + - + container: + args: - "{{inputs.parameters.message}}" - command: + command: - cowsay image: docker/whalesay - inputs: - parameters: - - + inputs: + parameters: + - name: message name: whalesay-template - - - container: - args: + - + container: + args: - "hello from the default exit handler" - command: + command: - cowsay image: docker/whalesay name: whalesay-exit - ttlStrategy: + ttlStrategy: secondsAfterCompletion: 60 - volumes: - - + volumes: + - name: test - secret: + secret: secretName: test ` @@ -491,3 +494,179 @@ func TestMergeHooks(t *testing.T) { assert.Equal(t, "b", targetHookWf.Spec.Hooks[`bar`].Template) }) } + +// blockedUserOverrideFields is used by TestAllWorkflowSpecFieldsAccountedFor +// to verify that every WorkflowSpec field is consciously classified as either +// allowed or blocked. +var blockedUserOverrideFields = map[string]bool{ + "Templates": true, + "TemplateDefaults": true, + "ServiceAccountName": true, + "AutomountServiceAccountToken": true, + "Executor": true, + "Volumes": true, + "VolumeClaimTemplates": true, + "Parallelism": true, + "NodeSelector": true, + "Affinity": true, + "Tolerations": true, + "ImagePullSecrets": true, + "HostNetwork": true, + "DNSPolicy": true, + "DNSConfig": true, + "OnExit": true, + "SchedulerName": true, + "PodPriority": true, + "PodPriorityClassName": true, + "HostAliases": true, + "SecurityContext": true, + "PodSpecPatch": true, + "PodDisruptionBudget": true, + "ArtifactRepositoryRef": true, + "Synchronization": true, + "RetryStrategy": true, + "PodMetadata": true, + "Hooks": true, +} + +func TestValidateUserOverrides_AllowedFields(t *testing.T) { + spec := &wfv1.WorkflowSpec{ + Entrypoint: "main", + Arguments: wfv1.Arguments{ + Parameters: []wfv1.Parameter{{Name: "msg", Value: wfv1.AnyStringPtr("hello")}}, + }, + Shutdown: wfv1.ShutdownStrategyTerminate, + Priority: ptr.To[int32](10), + WorkflowTemplateRef: &wfv1.WorkflowTemplateRef{Name: "my-template"}, + } + err := ValidateUserOverrides(spec) + assert.NoError(t, err) +} + +func TestValidateUserOverrides_BlockedFields(t *testing.T) { + tests := []struct { + name string + spec wfv1.WorkflowSpec + field string + }{ + { + name: "ServiceAccountName", + spec: wfv1.WorkflowSpec{ServiceAccountName: "admin"}, + field: "ServiceAccountName", + }, + { + name: "SecurityContext", + spec: wfv1.WorkflowSpec{SecurityContext: &apiv1.PodSecurityContext{}}, + field: "SecurityContext", + }, + { + name: "Templates", + spec: wfv1.WorkflowSpec{Templates: []wfv1.Template{{Name: "evil"}}}, + field: "Templates", + }, + { + name: "Volumes", + spec: wfv1.WorkflowSpec{Volumes: []apiv1.Volume{{Name: "secret-vol"}}}, + field: "Volumes", + }, + { + name: "HostNetwork", + spec: wfv1.WorkflowSpec{HostNetwork: ptr.To(true)}, + field: "HostNetwork", + }, + { + name: "PodSpecPatch", + spec: wfv1.WorkflowSpec{PodSpecPatch: `{"containers":[]}`}, + field: "PodSpecPatch", + }, + { + name: "OnExit", + spec: wfv1.WorkflowSpec{OnExit: "backdoor"}, + field: "OnExit", + }, + { + name: "Hooks", + spec: wfv1.WorkflowSpec{Hooks: wfv1.LifecycleHooks{"exit": wfv1.LifecycleHook{Template: "evil"}}}, + field: "Hooks", + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := ValidateUserOverrides(&tt.spec) + require.Error(t, err) + assert.Contains(t, err.Error(), tt.field) + assert.Contains(t, err.Error(), "not permitted") + }) + } +} + +func TestValidateUserOverrides_MultipleViolations(t *testing.T) { + spec := &wfv1.WorkflowSpec{ + ServiceAccountName: "admin", + HostNetwork: ptr.To(true), + PodSpecPatch: `{}`, + Templates: []wfv1.Template{{Name: "evil"}}, + } + err := ValidateUserOverrides(spec) + require.Error(t, err) + msg := err.Error() + assert.Contains(t, msg, "ServiceAccountName") + assert.Contains(t, msg, "HostNetwork") + assert.Contains(t, msg, "PodSpecPatch") + assert.Contains(t, msg, "Templates") +} + +func TestValidateUserOverrides_NilSpec(t *testing.T) { + assert.NoError(t, ValidateUserOverrides(nil)) +} + +func TestSanitizeUserWorkflowSpec(t *testing.T) { + spec := &wfv1.WorkflowSpec{ + Entrypoint: "main", + ServiceAccountName: "admin", + HostNetwork: ptr.To(true), + Arguments: wfv1.Arguments{ + Parameters: []wfv1.Parameter{{Name: "msg", Value: wfv1.AnyStringPtr("hello")}}, + }, + Volumes: []apiv1.Volume{{Name: "secret-vol"}}, + Templates: []wfv1.Template{{Name: "evil"}}, + Shutdown: wfv1.ShutdownStrategyTerminate, + WorkflowTemplateRef: &wfv1.WorkflowTemplateRef{Name: "my-template"}, + } + + sanitized := SanitizeUserWorkflowSpec(spec) + + // Allowed fields are preserved + assert.Equal(t, "main", sanitized.Entrypoint) + assert.Equal(t, wfv1.ShutdownStrategyTerminate, sanitized.Shutdown) + assert.Len(t, sanitized.Arguments.Parameters, 1) + assert.Equal(t, "my-template", sanitized.WorkflowTemplateRef.Name) + + // Blocked fields are zeroed + assert.Empty(t, sanitized.ServiceAccountName) + assert.Nil(t, sanitized.HostNetwork) + assert.Nil(t, sanitized.Volumes) + assert.Nil(t, sanitized.Templates) +} + +func TestSanitizeUserWorkflowSpec_Nil(t *testing.T) { + assert.Nil(t, SanitizeUserWorkflowSpec(nil)) +} + +// TestAllWorkflowSpecFieldsAccountedFor is a compile-time safety net. +// It ensures that every field in WorkflowSpec appears in either the +// allowed or blocked list, so new fields force a conscious decision. +func TestAllWorkflowSpecFieldsAccountedFor(t *testing.T) { + specType := reflect.TypeOf(wfv1.WorkflowSpec{}) + for i := 0; i < specType.NumField(); i++ { + fieldName := specType.Field(i).Name + inAllowed := allowedUserOverrideFields[fieldName] + inBlocked := blockedUserOverrideFields[fieldName] + if !inAllowed && !inBlocked { + t.Errorf("WorkflowSpec field %q is not classified in either allowedUserOverrideFields or blockedUserOverrideFields — add it to one of them", fieldName) + } + if inAllowed && inBlocked { + t.Errorf("WorkflowSpec field %q appears in both allowedUserOverrideFields and blockedUserOverrideFields — it should be in exactly one", fieldName) + } + } +}