-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Warning during add api
about missing package
#1546
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
Comments
The question about the warnings has come up a couple of times. See this PR for details: #1401 I'm not sure about the GitHub credentials dialog, but my guess would be that it happens as part of the compilation of the generator binaries when
|
@rhuss: @joelanford is correct, This issue relates to #1502. For a temporary fix, try the following before running $ mkdir -p pkg/apis/hello && echo "package hello" > pkg/apis/hello/stub.go PR #1401 should fix this once merged. |
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Without such file in place, code-generation using `operator-sdk generate openapi` tends to fail. This is fixed in later versions of `operator-sdk`, which generate exactly this file when scaffolding a new API. See: operator-framework/operator-sdk#1401 See: operator-framework/operator-sdk#1502 See: operator-framework/operator-sdk#1546
Bug Report
When adding a new api via
on a freshly created project, I get the following output:
It looks like it succeeded and the directory
pkg/apis/hello
has been created eventually:However, the warning is a bit disturbing. Also I was wondering why I was ask for my GitHub credentials during the process (looks like a read-write checkout of some GitHub repo)
Here the full output with
--verbose
:operator-sdk add api --api-version=hello.k8spatterns.io/v1alpha1 --kind=Hello --verbose
Environment
operator-sdk version: v0.8.1, commit: 33b3bfe
go version go1.12.5 darwin/amd64
The text was updated successfully, but these errors were encountered: