Open GMZwinge opened 1 month ago
I can workaround the issue by adding the container runtime as a data and look it up for both controller and worker. See this commit. Is there a better way?
After applying a similar workaround for other common data and turning off puppetdb discovery, it now gives error like this when applying to the controller:
Apply failed to compile for kubernetes: Class[K8s::Server::Resources::Bootstrap]: parameter 'secret' expects a value of type Undef or Sensitive[K8s::Bootstrap_token], got String (file: /test_voxpupuli_puppet_k8s/.modules/k8s/manifests/server/resources.pp, line: 66, column: 5)
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
Run
bolt plan run test_voxpupuli_puppet_k8s::myplan --target <host> --user <user> --password <password> type=<type>
in this repo, where<type>
can be eithercontroller
orworker
.Once I get this working, I will provide a PR to fix the example.
What are you seeing
With
type=controller
, the error is:With
type=worker
, the error is:What behaviour did you expect instead
There is no failure.
Output log
With
type=controller
, the output is:With
type=worker
, the output is:Any additional information you'd like to impart