public abstract class AbstractKubernetesStepDecorator extends Object implements KubernetesStepDecorator
KubernetesStepDecorator
contains common implementations for different plug-in
features.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
AbstractKubernetesStepDecorator() |
Modifier and Type | Method and Description |
---|---|
List<io.fabric8.kubernetes.api.model.HasMetadata> |
buildAccompanyingKubernetesResources()
Note that the method could have a side effect of modifying the Flink Configuration object,
such as update the JobManager address.
|
FlinkPod |
decorateFlinkPod(FlinkPod flinkPod)
Apply transformations on the given FlinkPod in accordance to this feature.
|
public FlinkPod decorateFlinkPod(FlinkPod flinkPod)
So this is correct:
Pod decoratedPod = new PodBuilder(pod) // Keeps the original state
...
.build()
Container decoratedContainer = new ContainerBuilder(container) // Keeps the original state
...
.build()
FlinkPod decoratedFlinkPod = new FlinkPodBuilder(flinkPod) // Keeps the original state
...
.build()
And this is the incorrect:
Pod decoratedPod = new PodBuilder() // Loses the original state
...
.build()
Container decoratedContainer = new ContainerBuilder() // Loses the original state
...
.build()
FlinkPod decoratedFlinkPod = new FlinkPodBuilder() // Loses the original state
...
.build()
decorateFlinkPod
in interface KubernetesStepDecorator
public List<io.fabric8.kubernetes.api.model.HasMetadata> buildAccompanyingKubernetesResources() throws IOException
buildAccompanyingKubernetesResources
in interface KubernetesStepDecorator
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.