Class LifecycleHooks

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<LifecycleHooksBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class LifecycleHooks
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<LifecycleHooksBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    LifecycleHooks allow users to pause operations on the machine at certain prefedined points within the machine lifecycle.
    See Also:
    Serialized Form
    • Constructor Detail

      • LifecycleHooks

        public LifecycleHooks()
        No args constructor for use in serialization
    • Method Detail

      • getPreDrain

        public List<LifecycleHook> getPreDrain()
        preDrain hooks prevent the machine from being drained. This also blocks further lifecycle events, such as termination.
      • setPreDrain

        public void setPreDrain​(List<LifecycleHook> preDrain)
        preDrain hooks prevent the machine from being drained. This also blocks further lifecycle events, such as termination.
      • getPreTerminate

        public List<LifecycleHook> getPreTerminate()
        preTerminate hooks prevent the machine from being terminated. PreTerminate hooks be actioned after the Machine has been drained.
      • setPreTerminate

        public void setPreTerminate​(List<LifecycleHook> preTerminate)
        preTerminate hooks prevent the machine from being terminated. PreTerminate hooks be actioned after the Machine has been drained.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)