Skip to content

make hook to accept array of values #25124

Open
@EugenKon

Description

@EugenKon

Proposal

https://developer.hashicorp.com/nomad/docs/job-specification/lifecycle#lifecycle-parameters
Allow hook to accept array

Use-cases

We have cleanup task. The definition is the exactly the same for prestart and poststop hooks. It would be nice to configure them as:

 task "cleanup-smthg" {
    lifecycle {
      hook = ["prestart", "poststop" ]
      sidecar = false
    }
   ...
  }

Attempted Solutions

Copy/paste hook and change its type: prestart -> poststop

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Roadmapping

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions