teamhephy / controller

Hephy Workflow Controller (API)
https://teamhephy.com
MIT License
14 stars 26 forks source link

Create Kubernetes specific validation functions to use all over #56

Open Cryptophobia opened 6 years ago

Cryptophobia commented 6 years ago

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 raise ValidationError for the serializers and friends, but worth investigating

Copied from original issue: deis/controller#1070

Cryptophobia commented 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.

Cryptophobia commented 6 years ago

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.