garethr / garethr-kubernetes

Puppet types and provider for managing Pods, ReplicationControllers, Services and more in Kubernetes
http://garethr.github.io/garethr-kubernetes
Apache License 2.0
28 stars 28 forks source link

Fix #25,#27,#28 - remove Kind/apiVersion from kubernetes types #30

Closed masterzen closed 7 years ago

masterzen commented 7 years ago

Using the code in PR garethr/puppet-swagger-generator#9, the providers and types have been rebuilt without the apiVersion and kind properties that have no use since they are generated by kubeclient.

This also removes the stringData from kubernetes_secret because this is a write-only property which can't work in Puppet. This also renames any Puppet property in those types that are camel- cased to snake case internally, so that puppet bug PUP-7140 doesn't trigger.