Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Create Kubernetes specific validation functions to use all over #1070

Open
helgi opened this issue Sep 15, 2016 · 3 comments
Open

Create Kubernetes specific validation functions to use all over #1070

helgi opened this issue Sep 15, 2016 · 3 comments

Comments

@helgi
Copy link
Contributor

helgi commented Sep 15, 2016

Create validation functions for the various Kubernetes requirements

Such as validation what is used to validate the various length and char requirements. Basically DNS validation.

Labels are 63 chars, adhere to DNS specs, etc etc

This would allow a few models to have more unified validation functions, especially the tags validation could do with it.

Question is if this lives inside of the scheduler or not? Problem with it living there is at the end it needs to raise ValidationError for the serializers and friends, but worth investigating

@bacongobbler
Copy link
Member

perhaps this is a good segway to create a kubernetes-py client lib that encapsulates all this behaviour for us.

@helgi
Copy link
Contributor Author

helgi commented Oct 11, 2016

Yeah, initial thought was to add those to the util part of scheduler to have a kubernetes-py like functionality - Probably is enough.

@Cryptophobia
Copy link
Contributor

This issue was moved to teamhephy/controller#56

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants