My Bash script using `kubectl create/apply -f ...` to deploy lots of Kubernetes resources has grown too large for Bash. I'm converting it to Python using the PyPI `kubernetes` package.

Is there a generic way to create resources given the YAML manifest? Otherwise, the only way I can see to do it would be to create and maintain a mapping from Kind to API method `create_namespaced_<kind>`. That seems tedious and error prone to me.

Update: I'm deploying many (10-20) resources to many (10+) GKE clusters.