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

API controller: add API validation - allow one API per service #2621

Merged
merged 12 commits into from Feb 8, 2019

Conversation

jakkab
Copy link
Contributor

@jakkab jakkab commented Feb 6, 2019

Description

Changes proposed in this pull request:

  • api-controller validates if an API already exists for a specified Kubernetes service
  • tests

@jakkab jakkab added kind/bug Categorizes issue or PR as related to a bug. WIP area/security Issues or PRs related to security area/service-mesh Issues or PRs related to service-mesh labels Feb 6, 2019
@jakkab jakkab added this to the Sprint_Goat_5 milestone Feb 6, 2019
@CLAassistant
Copy link

CLAassistant commented Feb 6, 2019

CLA assistant check
All committers have signed the CLA.

@piotrmsc
Copy link

piotrmsc commented Feb 8, 2019

If you create an API for a service that does not have API attached but you have selected wrong service and make an update to correct one, Virtual service and Policy(if set) should be deleted for the wrong service (the first selected) because you will leave garbage that may have big impact on how other services work.

Not in scope of this task : we should have a blacklist of service like kubernetes for which api must not be created. Can you create a follow up for that?

@piotrmsc
Copy link

piotrmsc commented Feb 8, 2019

Please extend our api-controller-acceptnce-tests with assertions for validationStatus.
Please also create an integration test for scenarios

  • I create an API for service already exposed
  • I update an API for service already exposed

And while chaning that please consider making this line
configurable via env like it is with domain for example

@jakkab
Copy link
Contributor Author

jakkab commented Feb 8, 2019

@piotrmsc Virtual Services and Polices are updated as well, no need to do delete anything.

Follow-up will be created.

@jakkab jakkab merged commit bc12020 into kyma-project:master Feb 8, 2019
@jakkab jakkab deleted the validate-api-for-service branch February 8, 2019 15:02
grischperl pushed a commit to grischperl/kyma that referenced this pull request Nov 10, 2020
* Add new testgrid config annotation to te docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/security Issues or PRs related to security area/service-mesh Issues or PRs related to service-mesh kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants