Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
information in the report you file. In order to help diagnose the issue,
we've included some installation information in this report. Please look
through and redact any information you consider personal or sensitive
before submitting this issue.
Issue running command [gcloud container clusters get-credentials].
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Please provide any additional information below.
Trace:
Traceback (most recent call last):
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/command_lib/crash_handling.py", line 199, in Wrapper
target_function(*args, **kwargs)
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/gcloud_main.py", line 199, in main
gcloud_cli.Execute()
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 1024, in Execute
self._HandleAllErrors(exc, command_path_string, specified_arg_names)
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 1061, in _HandleAllErrors
exceptions.HandleError(exc, command_path_string, self.__known_error_handler)
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/calliope/exceptions.py", line 586, in HandleError
core_exceptions.reraise(exc)
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/core/exceptions.py", line 149, in reraise
six.reraise(type(exc_value), exc_value, tb)
File "/Users/koksang/google-cloud-sdk/lib/third_party/six/__init__.py", line 719, in reraise
raise value
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 998, in Execute
resources = calliope_command.Run(cli=self, args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 934, in Run
resources = command_instance.Run(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/koksang/google-cloud-sdk/lib/surface/container/clusters/get_credentials.py", line 121, in Run
util.ClusterConfig.Persist(
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/util.py", line 623, in Persist
c_config.GenKubeconfig()
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/util.py", line 516, in GenKubeconfig
kubeconfig = kconfig.Kubeconfig.Default()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/kubeconfig.py", line 157, in Default
return cls.LoadOrCreate(Kubeconfig.DefaultPath())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/kubeconfig.py", line 143, in LoadOrCreate
return cls.LoadFromFile(path)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/kubeconfig.py", line 131, in LoadFromFile
cls._Validate(data)
File "/Users/koksang/google-cloud-sdk/lib/googlecloudsdk/api_lib/container/kubeconfig.py", line 118, in _Validate
if not isinstance(data[key], list):
~~~~^^^^^
TypeError: string indices must be integers, not 'str'
Installation information:
Google Cloud SDK [509.0.0]
Platform: [Mac OS X, arm] uname_result(system='Darwin', node='Kok-Sang-MacBook', release='23.4.0', version='Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030', machine='arm64')
Locale: ('en_US', 'UTF-8')
Python Version: [3.12.2 (main, Apr 24 2024, 15:09:36) [Clang 15.0.0 (clang-1500.3.9.4)]]
Python Location: [${HOME}/.pyenv/versions/3.12.2/bin/python3]
OpenSSL: [OpenSSL 3.4.0 22 Oct 2024]
Requests Version: [2.32.3]
urllib3 Version: [2.2.2]
Default CA certs file: [${HOME}/google-cloud-sdk/lib/third_party/certifi/cacert.pem]
Site Packages: [Disabled]
Installation Root: [${HOME}/google-cloud-sdk]
Installed Components:
gsutil: [5.33]
core: [2025.01.31]
bq: [2.1.12]
gcloud-crc32c: [1.0.0]
System PATH: [${HOME}/.pyenv/versions/3.12.2/bin:/opt/homebrew/Cellar/pyenv/2.5.1/libexec:/opt/homebrew/Cellar/pyenv/2.5.1/plugins/python-build/bin:${HOME}/google-cloud-sdk/bin:${HOME}/.krew/bin:/opt/homebrew/opt/openjdk@11/bin:${HOME}/.pyenv/shims:/opt/homebrew/bin:/opt/homebrew/sbin:${HOME}/.autojump/bin:${HOME}/google-cloud-sdk/bin:${HOME}/.krew/bin:/opt/homebrew/opt/openjdk@11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:${HOME}/.cargo/bin:${HOME}/.local/bin:/${HOME}/go/bin:${HOME}/.local/bin:/${HOME}/go/bin]
Python PATH: [${HOME}/google-cloud-sdk/lib/third_party:${HOME}/google-cloud-sdk/lib:${HOME}/.pyenv/versions/3.12.2/lib/python312.zip:${HOME}/.pyenv/versions/3.12.2/lib/python3.12:${HOME}/.pyenv/versions/3.12.2/lib/python3.12/lib-dynload]
Cloud SDK on PATH: [False]
Kubectl on PATH: [/opt/homebrew/bin/kubectl]
Installation Properties: [${HOME}/google-cloud-sdk/properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}/configurations/config_default]
Account: [k..g@m..m]
Project: [m..g]
Universe Domain: [
Current Properties:
[compute]
zone: [us-central1-a] (property file)
region: [us-central1] (property file)
[core]
account: [k..g@m..m] (property file)
disable_usage_reporting: [True] (property file)
project: [m..g] (property file)
Logs Directory: [${CLOUDSDK_CONFIG}/logs]
Last Log File: [${CLOUDSDK_CONFIG}/logs/2025.02.05/10.03.43.768293.log]
git: [git version 2.39.3 (Apple Git-146)]
ssh: [OpenSSH_9.6p1, LibreSSL 3.3.6]