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

PV Creation Doesn't Work #19

Open bennythomps opened 7 years ago

bennythomps commented 7 years ago

Persistent volumes are not namespaced, but the logic of the module is that everything is and if a namespace is not provided, it will infer "default" as the namespace.

Creating a PV results in the following:

the server could not find the requested resource

Removing the logical OR from the following results in successful creation of a PV: https://github.com/garethr/garethr-kubernetes/blob/master/lib/puppet_x/puppetlabs/kubernetes/provider.rb#L161