Class LifecycleHook

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

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class LifecycleHook
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<LifecycleHookBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    LifecycleHook represents a single instance of a lifecycle hook
    See Also:
    Serialized Form
    • Constructor Detail

      • LifecycleHook

        public LifecycleHook()
        No args constructor for use in serialization
      • LifecycleHook

        public LifecycleHook​(String name,
                             String owner)
    • Method Detail

      • getName

        public String getName()
        name defines a unique name for the lifcycle hook. The name should be unique and descriptive, ideally 1-3 words, in CamelCase or it may be namespaced, eg. foo.example.com/CamelCase. Names must be unique and should only be managed by a single entity.
      • setName

        public void setName​(String name)
        name defines a unique name for the lifcycle hook. The name should be unique and descriptive, ideally 1-3 words, in CamelCase or it may be namespaced, eg. foo.example.com/CamelCase. Names must be unique and should only be managed by a single entity.
      • getOwner

        public String getOwner()
        owner defines the owner of the lifecycle hook. This should be descriptive enough so that users can identify who/what is responsible for blocking the lifecycle. This could be the name of a controller (e.g. clusteroperator/etcd) or an administrator managing the hook.
      • setOwner

        public void setOwner​(String owner)
        owner defines the owner of the lifecycle hook. This should be descriptive enough so that users can identify who/what is responsible for blocking the lifecycle. This could be the name of a controller (e.g. clusteroperator/etcd) or an administrator managing the hook.
      • getAdditionalProperties

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

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

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