DEBUG: kubernetes-model-source: Log level configured for DEBUG
Traceback (most recent call last):
File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/job-create.py", line 208, in
main()
File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/job-create.py", line 132, in main
common.connect()
File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/common.py", line 60, in connect
client.Configuration.set_default(configuration)
AttributeError: 'function' object has no attribute 'set_default'
[Kubernetes-Create-Job]: result code: 1
Failed: NonZeroResultCode: Script result code was: 1
When attempting to run a Kubernetes / Job / Create, with the following project's and job authentication settings:
project:
project.nodeCache.enabled=false project.plugin.NodeExecutor.Kubernetes-node-executor.config_file=/var/lib/rundeck/.kube/config project.plugin.NodeExecutor.Kubernetes-node-executor.shell=/bin/bash project.plugin.NodeExecutor.Kubernetes-node-executor.token=keys/k8s/rundeck-token-nwkmp project.plugin.NodeExecutor.Kubernetes-node-executor.url=k8s.mycluster.com
job:
it fails as with an error that points to the client configuration set on the plugin:
[Kubernetes-Create-Job] executing: [python, -u, /var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/job-create.py]
DEBUG: kubernetes-model-source: Log level configured for DEBUG Traceback (most recent call last): File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/job-create.py", line 208, in
main()
File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/job-create.py", line 132, in main
common.connect()
File "/var/lib/rundeck/libext/cache/kubernetes-plugin-1.0.4/common.py", line 60, in connect
client.Configuration.set_default(configuration)
AttributeError: 'function' object has no attribute 'set_default'
[Kubernetes-Create-Job]: result code: 1
Failed: NonZeroResultCode: Script result code was: 1