Parameters with Kubernetes Manifest & Using SpEL


How do I dynamically promote a build with parameters in a manifest file in Spinnaker using Kubernetes?


  1. The first step is to understand how to use parameters in your kubernetes manifest file. Here is a link to some good documentation: Parameterize Kubernetes Manifests

  2. The second step is to create a pipeline expression to dynamically decide where to deploy the code based on some action. For our example we are using a manual judgement stage to determine if the code should go to Prod or Staging.

Promote:${#judgement('Promote') == '' ? parameters['namespace'] : #judgement('Promote')}

More Resources:

If you would like to learn more about SpEL and Pipeline expressions with Spinnaker you can find it here: Pipeline Expressions Guide



The latest tutorials sent straight to your inbox.