Package org.cdk8s.plus24
Interface WorkloadProps
-
- All Superinterfaces:
AbstractPodProps,software.amazon.jsii.JsiiSerializable,ResourceProps
- All Known Subinterfaces:
DaemonSetProps,DeploymentProps,JobProps,StatefulSetProps
- All Known Implementing Classes:
DaemonSetProps.Jsii$Proxy,DeploymentProps.Jsii$Proxy,JobProps.Jsii$Proxy,StatefulSetProps.Jsii$Proxy,WorkloadProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-08T02:54:19.335Z") @Stability(Stable) public interface WorkloadProps extends software.amazon.jsii.JsiiSerializable, AbstractPodProps
Properties for `Workload`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWorkloadProps.BuilderA builder forWorkloadPropsstatic classWorkloadProps.Jsii$ProxyAn implementation forWorkloadProps
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static WorkloadProps.Builderbuilder()default org.cdk8s.ApiObjectMetadatagetPodMetadata()The pod metadata of this workload.default BooleangetSelect()Automatically allocates a pod label selector for this workload and add it to the pod metadata.-
Methods inherited from interface org.cdk8s.plus24.AbstractPodProps
getAutomountServiceAccountToken, getContainers, getDns, getDockerRegistryAuth, getHostAliases, getInitContainers, getRestartPolicy, getSecurityContext, getServiceAccount, getVolumes
-
Methods inherited from interface org.cdk8s.plus24.ResourceProps
getMetadata
-
-
-
-
Method Detail
-
getPodMetadata
@Stability(Stable) @Nullable default org.cdk8s.ApiObjectMetadata getPodMetadata()
The pod metadata of this workload.
-
getSelect
@Stability(Stable) @Nullable default Boolean getSelect()
Automatically allocates a pod label selector for this workload and add it to the pod metadata.This ensures this workload manages pods created by its pod template.
Default: true
-
builder
@Stability(Stable) static WorkloadProps.Builder builder()
- Returns:
- a
WorkloadProps.BuilderofWorkloadProps
-
-