Skip to content

Commit 98a0bb4

Browse files
author
AWS
committed
AWS Batch Update: This feature allows AWS Batch on Amazon EKS to support configuration of Pod Annotations, overriding Namespace on which the Batch job's Pod runs on, and allows Subpath and Persistent Volume claim to be set for AWS Batch on Amazon EKS jobs.
1 parent 5a5dc75 commit 98a0bb4

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Batch",
4+
"contributor": "",
5+
"description": "This feature allows AWS Batch on Amazon EKS to support configuration of Pod Annotations, overriding Namespace on which the Batch job's Pod runs on, and allows Subpath and Persistent Volume claim to be set for AWS Batch on Amazon EKS jobs."
6+
}

services/batch/src/main/resources/codegen-resources/service-2.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1742,6 +1742,11 @@
17421742
},
17431743
"documentation":"<p>The properties for a task definition that describes the container and volume definitions of an Amazon ECS task. You can specify which Docker images to use, the required resources, and other configurations related to launching the task definition through an Amazon ECS service or task.</p>"
17441744
},
1745+
"EksAnnotationsMap":{
1746+
"type":"map",
1747+
"key":{"shape":"String"},
1748+
"value":{"shape":"String"}
1749+
},
17451750
"EksAttemptContainerDetail":{
17461751
"type":"structure",
17471752
"members":{
@@ -2037,6 +2042,10 @@
20372042
"shape":"String",
20382043
"documentation":"<p>The path on the container where the volume is mounted.</p>"
20392044
},
2045+
"subPath":{
2046+
"shape":"String",
2047+
"documentation":"<p>A sub-path inside the referenced volume instead of its root.</p>"
2048+
},
20402049
"readOnly":{
20412050
"shape":"Boolean",
20422051
"documentation":"<p>If this value is <code>true</code>, the container has read-only access to the volume. Otherwise, the container can write to the volume. The default value is <code>false</code>.</p>"
@@ -2092,9 +2101,32 @@
20922101
"labels":{
20932102
"shape":"EksLabelsMap",
20942103
"documentation":"<p>Key-value pairs used to identify, sort, and organize cube resources. Can contain up to 63 uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). Labels can be added or modified at any time. Each resource can have multiple labels, but each key must be unique for a given object.</p>"
2104+
},
2105+
"annotations":{
2106+
"shape":"EksAnnotationsMap",
2107+
"documentation":"<p>Key-value pairs used to attach arbitrary, non-identifying metadata to Kubernetes objects. Valid annotation keys have two segments: an optional prefix and a name, separated by a slash (/). </p> <ul> <li> <p>The prefix is optional and must be 253 characters or less. If specified, the prefix must be a DNS subdomain− a series of DNS labels separated by dots (.), and it must end with a slash (/).</p> </li> <li> <p>The name segment is required and must be 63 characters or less. It can include alphanumeric characters ([a-z0-9A-Z]), dashes (-), underscores (_), and dots (.), but must begin and end with an alphanumeric character.</p> </li> </ul> <note> <p>Annotation values must be 255 characters or less.</p> </note> <p>Annotations can be added or modified at any time. Each resource can have multiple annotations. </p>"
2108+
},
2109+
"namespace":{
2110+
"shape":"String",
2111+
"documentation":"<p>The namespace of the Amazon EKS cluster. In Kubernetes, namespaces provide a mechanism for isolating groups of resources within a single cluster. Names of resources need to be unique within a namespace, but not across namespaces. Batch places Batch Job pods in this namespace. If this field is provided, the value can't be empty or null. It must meet the following requirements:</p> <ul> <li> <p>1-63 characters long</p> </li> <li> <p>Can't be set to default</p> </li> <li> <p>Can't start with <code>kube</code> </p> </li> <li> <p>Must match the following regular expression: <code>^[a-z0-9]([-a-z0-9]*[a-z0-9])?$</code> </p> </li> </ul> <p> For more information, see <a href=\"https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/\">Namespaces</a> in the <i>Kubernetes documentation</i>. This namespace can be different from the <code>kubernetesNamespace</code> set in the compute environment's <code>EksConfiguration</code>, but must have identical role-based access control (RBAC) roles as the compute environment's <code>kubernetesNamespace</code>. For multi-node parallel jobs, the same value must be provided across all the node ranges.</p>"
20952112
}
20962113
},
2097-
"documentation":"<p>Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the <code>jobID</code> for a job running in the pod. For more information, see <a href=\"https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/\">Understanding Kubernetes Objects</a> in the <i>Kubernetes documentation</i>.</p>"
2114+
"documentation":"<p>Describes and uniquely identifies Kubernetes resources. For example, the compute environment that a pod runs in or the <code>jobID</code> for a job running in the pod. For more information, see <a href=\"https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/\"> Understanding Kubernetes Objects</a> in the <i>Kubernetes documentation</i>.</p>"
2115+
},
2116+
"EksPersistentVolumeClaim":{
2117+
"type":"structure",
2118+
"required":["claimName"],
2119+
"members":{
2120+
"claimName":{
2121+
"shape":"String",
2122+
"documentation":"<p>The name of the <code>persistentVolumeClaim</code> bounded to a <code>persistentVolume</code>. For more information, see <a href=\"https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims\"> Persistent Volume Claims</a> in the <i>Kubernetes documentation</i>.</p>"
2123+
},
2124+
"readOnly":{
2125+
"shape":"Boolean",
2126+
"documentation":"<p>An optional boolean value indicating if the mount is read only. Default is false. For more information, see <a href=\"https://kubernetes.io/docs/concepts/storage/volumes/#read-only-mounts\"> Read Only Mounts</a> in the <i>Kubernetes documentation</i>.</p>"
2127+
}
2128+
},
2129+
"documentation":"<p>A <code>persistentVolumeClaim</code> volume is used to mount a <a href=\"https://kubernetes.io/docs/concepts/storage/persistent-volumes/\">PersistentVolume</a> into a Pod. PersistentVolumeClaims are a way for users to \"claim\" durable storage without knowing the details of the particular cloud environment. See the information about <a href=\"https://kubernetes.io/docs/concepts/storage/persistent-volumes/\">PersistentVolumes</a> in the <i>Kubernetes documentation</i>.</p>"
20982130
},
20992131
"EksPodProperties":{
21002132
"type":"structure",
@@ -2275,6 +2307,10 @@
22752307
"secret":{
22762308
"shape":"EksSecret",
22772309
"documentation":"<p>Specifies the configuration of a Kubernetes <code>secret</code> volume. For more information, see <a href=\"https://kubernetes.io/docs/concepts/storage/volumes/#secret\">secret</a> in the <i>Kubernetes documentation</i>.</p>"
2310+
},
2311+
"persistentVolumeClaim":{
2312+
"shape":"EksPersistentVolumeClaim",
2313+
"documentation":"<p>Specifies the configuration of a Kubernetes <code>persistentVolumeClaim</code> bounded to a <code>persistentVolume</code>. For more information, see <a href=\"https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims\"> Persistent Volume Claims</a> in the <i>Kubernetes documentation</i>.</p>"
22782314
}
22792315
},
22802316
"documentation":"<p>Specifies an Amazon EKS volume for a job definition.</p>"

0 commit comments

Comments
 (0)