Open Cryptophobia opened 6 years ago
From @bacongobbler on October 11, 2016 19:52
perhaps this is a good segway to create a kubernetes-py
client lib that encapsulates all this behaviour for us.
From @helgi on October 11, 2016 19:53
Yeah, initial thought was to add those to the util
part of scheduler
to have a kubernetes-py
like functionality - Probably is enough.
From @helgi on September 15, 2016 21:13
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 raiseValidationError
for the serializers and friends, but worth investigatingCopied from original issue: deis/controller#1070