Skip to content

Commit 9644c37

Browse files
author
AWS
committed
AWS Batch Update: This feature allows AWS Batch to support configuration of imagePullSecrets and allowPrivilegeEscalation for jobs running on EKS
1 parent 5c6079d commit 9644c37

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
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 to support configuration of imagePullSecrets and allowPrivilegeEscalation for jobs running on EKS"
6+
}

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,10 @@
19231923
"shape":"Boolean",
19241924
"documentation":"<p>When this parameter is <code>true</code>, the container is given elevated permissions on the host container instance. The level of permissions are similar to the <code>root</code> user permissions. The default value is <code>false</code>. This parameter maps to <code>privileged</code> policy in the <a href=\"https://kubernetes.io/docs/concepts/security/pod-security-policy/#privileged\">Privileged pod security policies</a> in the <i>Kubernetes documentation</i>.</p>"
19251925
},
1926+
"allowPrivilegeEscalation":{
1927+
"shape":"Boolean",
1928+
"documentation":"<p>Whether or not a container or a Kubernetes pod is allowed to gain more privileges than its parent process. The default value is <code>false</code>.</p>"
1929+
},
19261930
"readOnlyRootFilesystem":{
19271931
"shape":"Boolean",
19281932
"documentation":"<p>When this parameter is <code>true</code>, the container is given read-only access to its root file system. The default value is <code>false</code>. This parameter maps to <code>ReadOnlyRootFilesystem</code> policy in the <a href=\"https://kubernetes.io/docs/concepts/security/pod-security-policy/#volumes-and-file-systems\">Volumes and file systems pod security policies</a> in the <i>Kubernetes documentation</i>.</p>"
@@ -2019,6 +2023,10 @@
20192023
"shape":"String",
20202024
"documentation":"<p>The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the <code>hostNetwork</code> parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>. <code>ClusterFirst</code> indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy\">Pod's DNS policy</a> in the <i>Kubernetes documentation</i>.</p> <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code> </p>"
20212025
},
2026+
"imagePullSecrets":{
2027+
"shape":"ImagePullSecrets",
2028+
"documentation":"<p>References a Kubernetes secret resource. This object must start and end with an alphanumeric character, is required to be lowercase, can include periods (.) and hyphens (-), and can't contain more than 253 characters.</p> <p> <code>ImagePullSecret$name</code> is required when this object is used.</p>"
2029+
},
20222030
"containers":{
20232031
"shape":"EksContainers",
20242032
"documentation":"<p>The properties of the container that's used on the Amazon EKS pod.</p>"
@@ -2057,6 +2065,10 @@
20572065
"shape":"String",
20582066
"documentation":"<p>The DNS policy for the pod. The default value is <code>ClusterFirst</code>. If the <code>hostNetwork</code> parameter is not specified, the default is <code>ClusterFirstWithHostNet</code>. <code>ClusterFirst</code> indicates that any DNS query that does not match the configured cluster domain suffix is forwarded to the upstream nameserver inherited from the node. If no value was specified for <code>dnsPolicy</code> in the <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_RegisterJobDefinition.html\">RegisterJobDefinition</a> API operation, then no value will be returned for <code>dnsPolicy</code> by either of <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobDefinitions.html\">DescribeJobDefinitions</a> or <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_DescribeJobs.html\">DescribeJobs</a> API operations. The pod spec setting will contain either <code>ClusterFirst</code> or <code>ClusterFirstWithHostNet</code>, depending on the value of the <code>hostNetwork</code> parameter. For more information, see <a href=\"https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy\">Pod's DNS policy</a> in the <i>Kubernetes documentation</i>.</p> <p>Valid values: <code>Default</code> | <code>ClusterFirst</code> | <code>ClusterFirstWithHostNet</code> </p>"
20592067
},
2068+
"imagePullSecrets":{
2069+
"shape":"ImagePullSecrets",
2070+
"documentation":"<p>Displays the reference pointer to the Kubernetes secret resource.</p>"
2071+
},
20602072
"containers":{
20612073
"shape":"EksContainerDetails",
20622074
"documentation":"<p>The properties of the container that's used on the Amazon EKS pod.</p>"
@@ -2269,6 +2281,21 @@
22692281
"max":256,
22702282
"min":1
22712283
},
2284+
"ImagePullSecret":{
2285+
"type":"structure",
2286+
"required":["name"],
2287+
"members":{
2288+
"name":{
2289+
"shape":"String",
2290+
"documentation":"<p>Provides a unique identifier for the <code>ImagePullSecret</code>. This object is required when <code>EksPodProperties$imagePullSecrets</code> is used.</p>"
2291+
}
2292+
},
2293+
"documentation":"<p>References a Kubernetes configuration resource that holds a list of secrets. These secrets help to gain access to pull an image from a private registry.</p>"
2294+
},
2295+
"ImagePullSecrets":{
2296+
"type":"list",
2297+
"member":{"shape":"ImagePullSecret"}
2298+
},
22722299
"ImageType":{
22732300
"type":"string",
22742301
"max":256,

0 commit comments

Comments
 (0)