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

error getting apply options: must specify one of -f and -k #224

Closed
jcanseco opened this issue Jun 9, 2022 · 0 comments · Fixed by #225
Closed

error getting apply options: must specify one of -f and -k #224

jcanseco opened this issue Jun 9, 2022 · 0 comments · Fixed by #225
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jcanseco
Copy link
Contributor

jcanseco commented Jun 9, 2022

What happened:
Our operator started failing to apply manifests and logging the following error:

{"severity":"error","timestamp":"2022-06-09T21:00:50.772Z","msg":"applying manifest","error":"error getting apply options: must specify one of -f and -k"}

This started happening after we bumped our kubebuilder-declarative-pattern dependency to commit fe5be94.

What you expected to happen:
For our operator to continue to be able to apply manifests successfully.

How to reproduce it (as minimally and precisely as possible):
You can reproduce the same error by going through the guestbook operator example.

Make sure to update the kubebuilder-declarative-pattern dependency before you run the controller:

go get -u sigs.k8s.io/kubebuilder-declarative-pattern@fe5be9431eae158f86f9de23000a9a2ec06745fc
go mod tidy

After running make run, you'll see the following error:

1.6548110787980578e+09  ERROR   applying manifest       {"error": "error getting apply options: must specify one of -f and -k"}

Anything else we need to know?:
This issue is currently blocking us from bumping our controller-runtime dependency to get a fix that we need to stop our unit tests from failing frequently due to flakes.

Environment:

  • Kubernetes version (use kubectl version): Client v1.24.1, Server v1.22.8-gke.201
  • OS (e.g: cat /etc/os-release): Debian
  • Kernel (e.g. uname -a):
  • Go version (e.g. go version): Go 1.17.3
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant