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

latest kubeclient(3.0.0) breaks this module #41

Open wellsmt opened 6 years ago

wellsmt commented 6 years ago

The README.md specifies the version of kubeclient that works which is helpful for those following the readme.

fgallese commented 5 years ago

I have faced this same issue while using kubeclient 4.4.0, but I noticed that if I change the 2 references to #{klass} in lib/puppet_x/puppetlabs/kubernetes/provider.rb to Resource this module works fine:

sed -i 's/#{klass}/Resource/g' lib/puppet_x/puppetlabs/kubernetes/provider.rb

Have you faced any other issues other than this ? I am trying to decide whether to force an old version of the gem or to just continue using the module with this fix.