Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add aws eks update-kubeconfig #383

Open
45cali opened this issue Aug 26, 2021 · 3 comments
Open

add aws eks update-kubeconfig #383

45cali opened this issue Aug 26, 2021 · 3 comments

Comments

@45cali
Copy link

45cali commented Aug 26, 2021

Currently the helm step only takes advantage of kube context that has already been configured.
Can you add an option for this step to run this prior to running helm upgrade?

aws eks --region <region> update-kubeconfig --name <cluster name> --alias <friendly name>
@45cali
Copy link
Author

45cali commented Feb 16, 2022

or can you at least add aws-cli so in our kubeconfig this runs

- name: arn:aws:eks:<region>:<account>:cluster/<cluster>
  user:
    exec:
      apiVersion: client.authentication.k8s.io/<vesion>
      args:
      - --region
      - <region>
      - eks
      - get-token
      - --cluster-name
      - <cluster>
      command: aws
      env:
      - name: AWS_PROFILE
        value: <profile>
        ```

@45cali
Copy link
Author

45cali commented Feb 16, 2022

#446 can this get reviewed please.

@kostis-codefresh
Copy link
Member

You should be able to run a step with aws-cli just before the Helm step.

  ChangeContext:
    title: Change K8s context
    image: 'amazon/aws-cli:2.11.23'
    commands:
      - aws eks --region <region> update-kubeconfig --name <cluster name> --alias <friendly name>
   YourHelmStep:
    [....]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants