Comments (7)
@nergalex What version of this collection are you using? Is it the latest stable, v1.2?
from kubernetes.core.
Sorry, please find attached error ouput with community.kubernetes version: 1.2.0 (and not 1.1.1 in the previous message)
"msg": "Failed to load kubeconfig due to Invalid kube-config file. No configuration found."
error_with_openshift_0.12_and_collection_1.2.0.json.txt
from kubernetes.core.
@nergalex I am unable to reproduce this. Specifying the path to the kubeconfig file works for me.
from kubernetes.core.
I have this issue too.
It's solved when I patched common.py in /usr/local/lib/python3.8/dist-packages/ansible_collections/community/kubernetes/plugins/module_utils/common.py on line 263.
#return DynamicClient(kubernetes.client.ApiClient(configuration))
return DynamicClient(kubernetes.config.new_client_from_config())
I don't know how to watch version, and have not time for this anymore.
I can give more info, if needed and if someone tell me how to obtain it )
from kubernetes.core.
thx @belenot . I would not prefer to modify kubernetes ansible collection because it's loaded for each job by Tower (collections/requirements.yml is used).
@gravesm
using a config.yaml file located in a AWX project, the module invocation differs:
- kubernetes collection 1.2.0 : invocation.module_args.kubeconfig: "config.yaml" --> error_with_openshift_0.12_and_collection_1.2.0.json.txt line 12
- kubernetes collection 1.1.1 : invocation.module_args.kubeconfig: "/tmp/bwrap_24858_brzydgui/awx_24858_bs7aho2c/project/playbooks/roles/poc-k8s/files/config.yaml" --> ok_with_openshift_0.11.2.json.txt line 63
Did you reproduced this behavior?
from kubernetes.core.
thx @belenot . I would not prefer to modify kubernetes ansible collection because it's loaded for each job by Tower (collections/requirements.yml is used).
I know @nergalex , that's why I just specified previous version of package for pip3 installation on remote host, namely openshift==0.11.0. This fixed my issue.
from kubernetes.core.
thx @belenot, same workaround :)
from kubernetes.core.
Related Issues (20)
- How can I use kubernetes.core.kubectl connection to connect to the Supervisor of a VMware TKG cluster? HOT 3
- Action modules fail when running with local connection + become HOT 4
- k8s_info - async is not supported for this task.
- Helm "post_renderer" does not work on 2.4.* HOT 1
- Helm diff does not use reuse-values HOT 3
- Misleading description? HOT 3
- cannot be handled as a ConfigMap: json: cannot unmarshal object into Go struct field ConfigMap.data of type string HOT 2
- Dynamic discovery cannot handle APIs of format a/b/c HOT 1
- validate_certs=no not work in helm module HOT 5
- k8s_info: wait_condition doesn't work if multiple nodes are not available
- Support of local environmental variable on Ansible Controller that populated from ansible variables for kubectl connection plugin HOT 12
- Release/tag 3.0.1 is missed in `galaxy.yaml` in the branch `stable-3` HOT 2
- kubernetes.core.k8s_drain: drain can get stuck because pods are evicted in order HOT 3
- kubernetes.core.helm handling of CRDs HOT 4
- Question, can I use template language on a whole line? HOT 2
- set_values not being deployed with helm HOT 5
- Isn't possible delete pods using label_selectors HOT 6
- Issues tab under community.kubernetes is gone - together with all info in the issues HOT 1
- CI should be switched from ansible-network/github_actions to ansible/ansible-content-actions
- kubernetes.core.k8s module fails to create DaemonSet when desired number of scheduled Pods is 0.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes.core.