Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

error out if invalid input data is passed #124

Merged
merged 1 commit into from
Jul 6, 2017

Conversation

concaf
Copy link
Collaborator

@concaf concaf commented Jul 6, 2017

Currently, an empty Kubernetes deployment is created is any
valid YAML but invalid Kedge spec input is passed.

This commit adds checks -

  • in createDeployment() to not create a
    deployment resource if app.PodSpec and app.DeploymentSpec are
    empty
  • to not append nil deployment object to runtimeObjects
  • return an error if runtimeObjects is empty

Fixes #109

Currently, an empty Kubernetes deployment is created is any
valid YAML but invalid Kedge spec input is passed.

This commit adds checks -
- in createDeployment() to not create a
deployment resource if app.PodSpec and app.DeploymentSpec are
empty
- to not append nil deployment object to runtimeObjects
- return an error if runtimeObjects is empty

Fixes kedgeproject#109
Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

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

LGTM

@surajssd surajssd merged commit af022b2 into kedgeproject:master Jul 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants