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

add validation for environment variables #140

Merged
merged 1 commit into from
May 25, 2017

Conversation

concaf
Copy link
Collaborator

@concaf concaf commented May 25, 2017

This commit adds validation in object.go for environment variables.
Currently, the only validation that is being added is to check for
the presence of "=" in either environment variable key or value,
and if found, then error out.

This is only going to validate the environment variables passed in
the OpenCompose file, not as per Kubernetes validations, which
should be added in kubernetes.go which is being tracked in #139

This commit adds validation in object.go for environment variables.
Currently, the only validation that is being added is to check for
the presence of "=" in either environment variable key or value,
and if found, then error out.

This is only going to validate the environment variables passed in
the OpenCompose file, not as per Kubernetes validations, which
should be added in kubernetes.go which is being tracked in redhat-developer#139
@concaf concaf requested a review from surajssd May 25, 2017 09:50
@concaf concaf assigned kadel and concaf and unassigned kadel May 25, 2017
@concaf concaf requested a review from kadel May 25, 2017 09:51
@kadel kadel merged commit 5d18fff into redhat-developer:master May 25, 2017
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.

None yet

2 participants