Skip to content

Commit d26bec4

Browse files
author
awstools
committed
feat(client-batch): This feature allows Batch on EKS to support configuration of Pod Labels through Metadata for Batch on EKS Jobs.
1 parent 0001a10 commit d26bec4

File tree

3 files changed

+194
-96
lines changed

3 files changed

+194
-96
lines changed

clients/client-batch/src/models/models_0.ts

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2697,8 +2697,18 @@ export interface EksContainer {
26972697

26982698
/**
26992699
* @public
2700+
* <p>Describes and uniquely identifies Kubernetes resources. For example, the compute environment
2701+
* that a pod runs in or the <code>jobID</code> for a job running in the pod. For more information,
2702+
* see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/">Understanding Kubernetes Objects</a> in the <i>Kubernetes
2703+
* documentation</i>.</p>
27002704
*/
27012705
export interface EksMetadata {
2706+
/**
2707+
* <p>Key-value pairs used to identify, sort, and organize cube resources. Can contain up to 63
2708+
* uppercase letters, lowercase letters, numbers, hyphens (-), and underscores (_). Labels can be
2709+
* added or modified at any time. Each resource can have multiple labels, but each key must be
2710+
* unique for a given object.</p>
2711+
*/
27022712
labels?: Record<string, string>;
27032713
}
27042714

@@ -2850,6 +2860,13 @@ export interface EksPodProperties {
28502860
*/
28512861
volumes?: EksVolume[];
28522862

2863+
/**
2864+
* <p>Metadata about the
2865+
* Kubernetes
2866+
* pod. For
2867+
* more information, see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/">Understanding Kubernetes Objects</a> in the <i>Kubernetes
2868+
* documentation</i>.</p>
2869+
*/
28532870
metadata?: EksMetadata;
28542871
}
28552872

@@ -3513,8 +3530,8 @@ export interface ContainerDetail {
35133530
fargatePlatformConfiguration?: FargatePlatformConfiguration;
35143531

35153532
/**
3516-
* <p>The amount of ephemeral storage to allocate for the task. This parameter is used to expand
3517-
* the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on
3533+
* <p>The amount of ephemeral storage allocated for the task. This parameter is used to expand the
3534+
* total amount of ephemeral storage available, beyond the default amount, for tasks hosted on
35183535
* Fargate.</p>
35193536
*/
35203537
ephemeralStorage?: EphemeralStorage;
@@ -3743,6 +3760,14 @@ export interface EksPodPropertiesDetail {
37433760
* <p>The name of the node for this job.</p>
37443761
*/
37453762
nodeName?: string;
3763+
3764+
/**
3765+
* <p>Describes and uniquely identifies Kubernetes resources. For example, the compute environment
3766+
* that a pod runs in or the <code>jobID</code> for a job running in the pod. For more information,
3767+
* see <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/">Understanding Kubernetes Objects</a> in the <i>Kubernetes
3768+
* documentation</i>.</p>
3769+
*/
3770+
metadata?: EksMetadata;
37463771
}
37473772

37483773
/**
@@ -4624,6 +4649,10 @@ export interface EksPodPropertiesOverride {
46244649
*/
46254650
containers?: EksContainerOverride[];
46264651

4652+
/**
4653+
* <p>Metadata about the
4654+
* overrides for the container that's used on the Amazon EKS pod.</p>
4655+
*/
46274656
metadata?: EksMetadata;
46284657
}
46294658

clients/client-batch/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3426,6 +3426,7 @@ const deserializeAws_restJson1EksPodPropertiesDetail = (
34263426
output.containers != null ? deserializeAws_restJson1EksContainerDetails(output.containers, context) : undefined,
34273427
dnsPolicy: __expectString(output.dnsPolicy),
34283428
hostNetwork: __expectBoolean(output.hostNetwork),
3429+
metadata: output.metadata != null ? deserializeAws_restJson1EksMetadata(output.metadata, context) : undefined,
34293430
nodeName: __expectString(output.nodeName),
34303431
podName: __expectString(output.podName),
34313432
serviceAccountName: __expectString(output.serviceAccountName),

0 commit comments

Comments
 (0)