Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ExecCredentialSpec.Cluster. config is missing #2395

Open
Labels
kind/bugCategorizes issue or PR as related to a bug.
@wkloucek

Description

@wkloucek

What happened (please include outputs or screenshots):

#2298 /#2303 implemented theprovideClusterInfo.

It misses this part (fromhttps://kubernetes.io/docs/reference/config-api/client-authentication.v1/#client-authentication-k8s-io-v1-Cluster):

Config holds additional config data that is specific to the exec plugin with regards to the cluster being authenticated to.

This data is sourced from the clientcmd Cluster object's extensions[client.authentication.k8s.io/exec] field:
...
...

What you expected to happen:

client.authentication.k8s.io/exec extension is set toExecCredentialSpec.Cluster.config so thatgardenlogin can use it

How to reproduce it (as minimally and precisely as possible):

Unfortunately I only know how to reproduce it with aGardener Kubernetes setup.

Setup the KUBECONFIG environment:

Then run following script:

fromkubernetesimportclient,config# Configs can be set in Configuration class directly or using helper utilityconfig.load_kube_config()v1=client.CoreV1Api()print("Listing pods with their IPs:")ret=v1.list_namespaced_pod(namespace="default",watch=False)foriinret.items:print("%s\t%s\t%s"% (i.status.pod_ip,i.metadata.namespace,i.metadata.name))

You'll get an error:

'ERROR:root:exec: process returned 1. Error: name must be specified. Hint: update kubectl in case you are using a version older than v1.20.0Usage:  gardenlogin get-client-certificate [flags]Flags:...

Anything else we need to know?:

Environment:

  • Kubernetes version (kubectl version):
  • OS (e.g., MacOS 10.13.6):
  • Python version (python --version)
  • Python client version (pip list | grep kubernetes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp