yaron2 / azure-kube-cli

An azure cli extension for azure k8s clusters infrastructure operations
16 stars 7 forks source link

issue exporting cluster config to file. #5

Closed deetoo closed 4 years ago

deetoo commented 4 years ago

This is autogenerated. Please review and update as needed. Describe the bug Command Name az kube export Extension Name: azure-kube-cli. Version: 0.0.1.

Errors:

'NoneType' object does not support item assignment Traceback (most recent call last): python3.6/site-packages/knack/cli.py, ln 215, in invoke cmd_result = self.invocation.execute(args) cli/core/commands/init.py, ln 654, in execute raise ex cli/core/commands/init.py, ln 718, in _run_jobs_serially results.append(self._run_job(expanded_arg, cmd_copy)) cli/core/commands/init.py, ln 711, in _run_job six.reraise(*sys.exc_info()) ... azure-kube-cli/kubernetes/config/kube_config.py, ln 695, in _get_kube_config_loader_for_yaml_file kcfg = KubeConfigMerger(filename) azure-kube-cli/kubernetes/config/kube_config.py, ln 650, in init self.load_config(path) azure-kube-cli/kubernetes/config/kube_config.py, ln 664, in load_config config_merged[item] = [] TypeError: 'NoneType' object does not support item assignment To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here... az kube export --kubeconfig=./myconfig Expected Behavior exporting my existing cluster config to file 'myconfig'

Environment Summary Linux-4.15.0-1093-azure-x86_64-with-debian-stretch-sid (Cloud Shell) Python 3.6.10 Installer: DEB

azure-cli 2.11.1

Extensions: azure-kube-cli 0.0.1 ai-examples 0.2.3