Closed oguzdag closed 5 years ago
We use roer but we have manifests fetched from our Gitlab repo rather than defined as text in the Deploy Manifest stage. The Spinnaker pipeline templates have variables for the manifest name and git location. The Spinnaker pipeline template app configs set values for these variables.
Secondly, the below excerpt is from one of the manifests (k8s yaml) that defines an environment variable that includes a Spinnaker parameter
which is defined in the pipeline templates app config. This uses the inherit parameters functionality.
Took me a while to work out the encapsulation for this and figure might be useful for you.
env:
- name: SPRING_APPLICATION_JSON
value: '{"key":"value", "external-application-url":"https://${ parameters.fqdn_prefix }.example.com"}'
For numbers; below syntax creating the string in double quotas in deployed manifest
'${ "1" }'
I have a strange problem that I couldn't figure out why. when using
roer pipeline-template publish
for publishing a template, it is removing some of double quotas from variables (boolean and integer), and because of this behaviour, deployment fails. let me explain with an exampleThis is the part of the template file
This is the publish method
This is the pipeline configuration after publish
deployment fails, because publish removes double quotas aroound
true
,1
and20000000
Is there a workaround for publish not to remove double quotas or replace it with single quotas like it does to other variables?