Code Monkey home page Code Monkey logo

Comments (2)

jbarrick-mesosphere avatar jbarrick-mesosphere commented on June 15, 2024
    kuttl: harness.go:326: run tests finished
    kuttl: harness.go:392: collecting cluster logs to artifacts/kind-logs-1597357528
    kuttl: harness.go:420: skipping cluster tear down
    kuttl: harness.go:421: to connect to the cluster, run: export KUBECONFIG="/home/justin/usr/src/github.com/mesosphere/dispatch/kubeconfig"
--- PASS: kuttl (221.55s)
    --- PASS: kuttl/harness (0.00s)
        --- PASS: kuttl/harness/login (0.51s)
PASS
➜  dispatch git:(dev) ✗ (⎈ kubernetes-admin@konvoy-staging-devx:default) kubectl kuttl test --skip-delete --skip-cluster-delete --config ./test/kuttl-config/kuttl-test-default.yaml --test login
 
=== RUN   kuttl
    kuttl: harness.go:339: starting setup
    kuttl: harness.go:222: running tests with KIND.
    kuttl: harness.go:118: KIND is already running, using existing cluster
    kuttl: harness.go:392: collecting cluster logs to artifacts/kind-logs-1597357631
    kuttl: harness.go:420: skipping cluster tear down
    kuttl: harness.go:421: to connect to the cluster, run: export KUBECONFIG="/home/justin/usr/src/github.com/mesosphere/dispatch/kubeconfig"
    kuttl: harness.go:458: fatal error getting client: stat /tmp/kudo715356934/kubeconfig: no such file or directory
--- FAIL: kuttl (0.62s)
FAIL
➜  dispatch git:(dev) ✗ (⎈ kubernetes-admin@konvoy-staging-devx:default) 

from kuttl.

kensipe avatar kensipe commented on June 15, 2024

after investigate main code is working as designed... the result is

 harness.go:526: skipping cluster tear down
    harness.go:527: to connect to the cluster, run: export KUBECONFIG="/Users/kensipe/projects/go/src/github.com/kudobuilder/kuttl/kubeconfig"
    harness.go:565: fatal error getting client: KIND is already running, unable to start

code:

		if h.kind.IsRunning() {
			// we don't take over an existing kind cluster for --start-kind
			// which means we do not stop that cluster.  User will either need to switch to existing cluster or stop it.

This seems like an enhancement (perhaps semantics). The request is to use an existing running cluster... which can do if it was previously run by kuttl. kuttl does record a kubeconfig to the CWD after getting the connection (this is generally for context for kubectl commands). We could "fallback" to this configuration when an existing Kind is running.

Still thinking through if this could lead to some confusion... and haven't found an issue.

So..

  1. moving from bug to feature
  2. plan to add to RunKind in check for h.kind.IsRunning a check for kubeconfig
  3. if exists, it will be the kind config

from kuttl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.