Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.59 KB

limit-deployment-to-specific-apps.md

File metadata and controls

48 lines (35 loc) · 1.59 KB
version
v1.9.0

Limit execution to explicitly defined apps

Starting from v1.9.0, Helmsman allows you to pass the --target flag multiple times to specify multiple apps that limits apps considered by Helmsman during this specific execution. Thanks to this one can deploy specific applications among all defined for an environment.

Example

Having environment defined with such apps:

example.yaml:

# ...
apps:
    jenkins:
      namespace: "staging" # maps to the namespace as defined in namespaces above
      enabled: true # change to false if you want to delete this app release empty: false:
      chart: "jenkins/jenkins" # changing the chart name means delete and recreate this chart
      version: "2.15.1" # chart version

    artifactory:
      namespace: "production" # maps to the namespace as defined in namespaces above
      enabled: true # change to false if you want to delete this app release empty: false:
      chart: "jfrog/artifactory" # changing the chart name means delete and recreate this chart
      version: "11.4.2" # chart version
# ...

running Helmsman with -f example.yaml would result in checking state and invoking deployment for both jenkins and artifactory application.

With --target flag in command like

helmsman -f example.yaml --target artifactory ...

one can execute Helmsman's environment defined with example.yaml limited to only one artifactory app. Others are ignored until the flag is defined.

Multiple applications can be set with --target, like

helmsman -f example.yaml --target artifactory --target jenkins ...