Skip to content

feat(job-create): enhancement for job creation#93

Open
ThibaultLengagne wants to merge 1 commit intorundeck-plugins:masterfrom
ThibaultLengagne:master
Open

feat(job-create): enhancement for job creation#93
ThibaultLengagne wants to merge 1 commit intorundeck-plugins:masterfrom
ThibaultLengagne:master

Conversation

@ThibaultLengagne
Copy link

  • Annotations as yaml (much more convenient)
  • Environment field as yaml (much more convenienttoo ) to handle 'fieldRef'
  • Handle mapping of configmap keys just as secret were already handled

BREAKING CHANGE: annotations and environement variables are in yaml now

Annotations as yaml, much more convenient, environment field as yaml to handle 'fieldRef', handle
mapping of configmap keys just as secret were already handled

BREAKING CHANGE: annotations and environement variables are in yaml now, so this is a breaking
change
@ltamaster ltamaster self-requested a review April 6, 2021 21:03
@ltamaster
Copy link
Contributor

Hi @ThibaultLengagne
thanks for the PR
The only problem is it will break previous jobs (using key/value) format. Maybe we can add a way to evaluate if the fields has a key/value format and use the old way for them.
Luis


annotations = None
if "annotations" in data:
annotations_array = data["annotations"].split(',')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it could be better to keep this code to not break old jobs (maybe if the yaml parse failed, try with this)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants