Comments (2)
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.
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..
- moving from bug to feature
- plan to add to
RunKind
in check forh.kind.IsRunning
a check forkubeconfig
- if exists, it will be the kind config
from kuttl.
Related Issues (20)
- Assert if a field is missing from a resource HOT 7
- Support TestAssert in errors steps
- Improve newline handling in collectors HOT 5
- deleting a resource can fail
- TestAssert is assumed to be a CRD in the cluster HOT 6
- Kuttl 15 does not support gcp new auth plugin
- Document a way to use VSCode Go debugger for development
- List resources in the test namespace when deleting it times out
- startControlPlane assumes kubebuilder etcd?
- Test result is "Fail" when all testSteps completed HOT 3
- Deleting fields from CR .spec not updating during tests HOT 1
- Update to controller-runtime v0.16+ HOT 1
- kuttl should warn/abort on duplicate resources
- $NAMESPACE in TestSuite commands is always =default regardless of kuttl test --namespace option HOT 2
- Wrong type for kindConfig
- kuttl is slow to run empty test steps
- Kuttl should be able to match resource on label if metadata.name is not provided HOT 4
- brew install kuttl-cli command doesn't work HOT 1
- Option for custom cleanup before namespace deletion
- [Feature] : Add Kuttl Github Action that make Testing simplified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuttl.