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

Allow the updates of kubernetes resources (service annotations, etc ...) #38

Open teintuc opened 6 years ago

teintuc commented 6 years ago

Since some of kubernetes resources configuration are into puppet hashes, the changes weren't seen by the build_applicator. I added the possibility to go into them and recurse in order to have an up to date object sent to kubernetes apiserver.

Should work with any kubernetes resources.

It only works if you add or update a resource. I need to find a good solution to remove a property from a resource.