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

KUBECONFIG=no-such-file noobaa - panic invalid configuration #65

Closed
guymguym opened this issue Sep 28, 2019 · 0 comments
Closed

KUBECONFIG=no-such-file noobaa - panic invalid configuration #65

guymguym opened this issue Sep 28, 2019 · 0 comments
Milestone

Comments

@guymguym
Copy link
Member

This is the panic stack trace:

PANI[0000] ☠️  Panic Attack: [] invalid configuration: no configuration has been provided
panic: (*logrus.Entry) (0x24b1320,0xc0001d65b0)

goroutine 1 [running]:
github.com/sirupsen/logrus.Entry.log(0xc00012c150, 0xc000447b60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	/private/tmp/noobaa-20190927-12925-184yqru/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:239 +0x2db
github.com/sirupsen/logrus.(*Entry).Log(0xc00012c620, 0x0, 0xc0004bbd48, 0x1, 0x1)
	/private/tmp/noobaa-20190927-12925-184yqru/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:268 +0xeb
github.com/sirupsen/logrus.(*Entry).Logf(0xc00012c620, 0x0, 0x24fe074, 0x1d, 0xc0004bbda8, 0x2, 0x2)
	/private/tmp/noobaa-20190927-12925-184yqru/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:314 +0xe2
github.com/sirupsen/logrus.(*Entry).Panicf(...)
	/private/tmp/noobaa-20190927-12925-184yqru/pkg/mod/github.com/sirupsen/logrus@v1.4.2/entry.go:352
github.com/noobaa/noobaa-operator/pkg/util.Panic(0x27ac760, 0xc0004454a0)
	/private/tmp/noobaa-20190927-12925-184yqru/src/github.com/noobaa/noobaa-operator/pkg/util/util.go:409 +0xf3
github.com/noobaa/noobaa-operator/pkg/util.CurrentNamespace(0x0, 0x0)
	/private/tmp/noobaa-20190927-12925-184yqru/src/github.com/noobaa/noobaa-operator/pkg/util/util.go:450 +0x112
github.com/noobaa/noobaa-operator/pkg/options.init.0()
	/private/tmp/noobaa-20190927-12925-184yqru/src/github.com/noobaa/noobaa-operator/pkg/options/options.go:90 +0x2c4

Note that this doesn't fail when using --kubeconfig=no-such-file...

@guymguym guymguym changed the title KUBECONFIG=no-such-file noobaa fails invalid configuration: no configuration has been provided KUBECONFIG=no-such-file noobaa - panic invalid configuration Sep 28, 2019
@guymguym guymguym added this to the v2.0.1 milestone Oct 2, 2019
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

1 participant