Skip to content

Configuration deserialization fail when using EKS configuration file #340

Closed
@rkttu

Description

@rkttu

When I try to load EKS modified configuration file with the below code, Yaml parser exception throwed.

Source code

var config = KubernetesClientConfiguration.BuildConfigFromConfigFile(
	kubeconfigPath: @"\\wsl$\Ubuntu-18.04\home\rkttu\.kube\config");

YAML file

...
users:
- name: arn:aws:eks:ap-northeast-1:...:cluster/eagle
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1alpha1
      args:
      - --region
      - ap-northeast-1
      - eks
      - get-token
      - --cluster-name
      - eagle
      command: aws
      env:
      - name: AWS_PROFILE
        value: example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions