Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

@@ -25,16 +25,31 @@ def create_job_object(data):

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