Interface PodDecorator
- All Superinterfaces:
ExtensionPoint
- All Known Implementing Classes:
DefaultNodeSelector
,DefaultRestartPolicy
,DefaultWorkspaceVolume
,RestrictedPssSecurityContextInjector
Allows to alter a pod definition after it has been built from the yaml and DSL/GUI configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionio.fabric8.kubernetes.api.model.Pod
decorate
(KubernetesCloud kubernetesCloud, io.fabric8.kubernetes.api.model.Pod pod) static io.fabric8.kubernetes.api.model.Pod
decorateAll
(KubernetesCloud kubernetesCloud, io.fabric8.kubernetes.api.model.Pod pod) Goes through all thePodDecorator
extensions and decorates the pod.
-
Method Details
-
decorateAll
@NonNull static io.fabric8.kubernetes.api.model.Pod decorateAll(@NonNull KubernetesCloud kubernetesCloud, @NonNull io.fabric8.kubernetes.api.model.Pod pod) throws PodDecoratorException Goes through all thePodDecorator
extensions and decorates the pod.- Parameters:
kubernetesCloud
- The cloud this pod will be scheduled as context.pod
- the initial pod definition before decoration.- Returns:
- The modified pod definition.
- Throws:
PodDecoratorException
- Should any of the decorators fail to decorate the pod.
-
decorate
@NonNull io.fabric8.kubernetes.api.model.Pod decorate(@NonNull KubernetesCloud kubernetesCloud, @NonNull io.fabric8.kubernetes.api.model.Pod pod)
-