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

Support multiple Kubernetes clusters by supporting kubeconfig in test steps #266

Closed
wants to merge 1 commit into from

Conversation

jbarrick-mesosphere
Copy link
Member

@jbarrick-mesosphere jbarrick-mesosphere commented Jan 25, 2021

Adds a kubeconfig setting to the TestStep API allowing an alternative
kubeconfig path to be used for asserts, errors, commands and applies in a test step.

Implements KEP-0008 (#261)

Signed-off-by: jbarrick@mesosphere.com jbarrick@mesosphere.com

… steps

Adds a `kubeconfig` setting to the TestStep API allowing an alternative
kubeconfig path to be used for asserts and applies in a test step.

Signed-off-by: jbarrick@mesosphere.com <jbarrick@mesosphere.com>
@chhsia0
Copy link
Contributor

chhsia0 commented Mar 24, 2021

Any update wrt this PR? ;) FYI I have a rebased branch here: https://github.com/chhsia0/kuttl/tree/multi-cluster

@chhsia0
Copy link
Contributor

chhsia0 commented Mar 24, 2021

One thing I noticed is that the kubeconfig path is related to the root of the test dir, not the test step dir, which is inconsistent w/ Step.Apply.

@chhsia0
Copy link
Contributor

chhsia0 commented Mar 26, 2021

ping @kensipe @alenkacz @jbarrick-mesosphere. I also added a new commit in my fork to address the above path resolution consistency issue: chhsia0@ba20535

@kensipe
Copy link
Member

kensipe commented Mar 30, 2021

thanks for the ping @chhsia0 I will look at this later in the day.

takirala added a commit that referenced this pull request May 14, 2021
… steps - Follow up for #266 (#291)

* Support multiple Kubernetes clusters by supporting kubeconfig in test steps

Adds a `kubeconfig` setting to the TestStep API allowing an alternative
kubeconfig path to be used for asserts and applies in a test step.

Signed-off-by: jbarrick@mesosphere.com <jbarrick@mesosphere.com>

* Resolve relative kubeconfig path against test step dir.

Signed-off-by: Tarun Gupta Akirala <tarugupta.92@gmail.com>

* fix linter errors

Signed-off-by: Tarun Gupta Akirala <tarugupta.92@gmail.com>

* fix variable name collision with package imports

Signed-off-by: Tarun Gupta Akirala <tarugupta.92@gmail.com>

Co-authored-by: jbarrick@mesosphere.com <jbarrick@mesosphere.com>
Co-authored-by: chhsia0 <chhsiao@mesosphere.io>
@faiq
Copy link

faiq commented May 18, 2021

Can this be closed?

@kensipe
Copy link
Member

kensipe commented May 18, 2021

this work was completed in #291

@kensipe kensipe closed this May 18, 2021
@kensipe
Copy link
Member

kensipe commented May 18, 2021

thanks @faiq

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

Successfully merging this pull request may close these issues.

None yet

4 participants