kubernetes-sigs / kubebuilder

Kubebuilder - SDK for building Kubernetes APIs using CRDs
http://book.kubebuilder.io
Apache License 2.0
7.77k stars 1.43k forks source link

How to generate config/certmanager/kustomization.yaml and kustomizeconfig.yaml #2419

Closed safejob closed 2 years ago

safejob commented 2 years ago

Version: main.version{KubeBuilderVersion:"3.2.0", KubernetesVendor:"1.22.1", GitCommit:"b7a730c84495122a14a0faff95e9e9615fffbfc5", BuildDate:"2021-10-29T18:32:16Z", GoOs:"linux", GoArch:"amd64"}

I follow the book about cronjob steps, all run well , but could not generate config/certmanager/kustomization.yaml and kustomizeconfig.yaml . Can you tell me where is wrong?


make deploy IMG=localhost:5000/controller:latest

/mnt/d/golang-mod/kubebuilder/cronjob/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases cd config/manager && /mnt/d/golang-mod/kubebuilder/cronjob/bin/kustomize edit set image controller=localhost:5000/ontroller:latest /mnt/d/golang-mod/kubebuilder/cronjob/bin/kustomize build config/default | kubectl apply -f - Error: accumulating resources: 2 errors occurred:

error: no objects passed to apply make: *** [Makefile:97: deploy] Error 1

jmrodri commented 2 years ago

/cc @camilamacedo86 label: triage support

jmrodri commented 2 years ago

/label triage-support

k8s-ci-robot commented 2 years ago

@jmrodri: The label(s) /label triage-support cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor

In response to [this](https://github.com/kubernetes-sigs/kubebuilder/issues/2419#issuecomment-973105635): >/label triage-support > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
jmrodri commented 2 years ago

/label kind/support

k8s-ci-robot commented 2 years ago

@jmrodri: The label(s) /label kind/support cannot be applied. These labels are supported: api-review, tide/merge-method-merge, tide/merge-method-rebase, tide/merge-method-squash, team/katacoda, refactor

In response to [this](https://github.com/kubernetes-sigs/kubebuilder/issues/2419#issuecomment-973106212): >/label kind/support Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
camilamacedo86 commented 2 years ago

It shows that your project has some customizations that is causing the issue with kustomize. See: https://stackoverflow.com/questions/60298445/kubernetes-kustomize-command-giving-error-when-we-specify-base-manifest-files-in

It does not seem to be related to the KB project itself then, I hope that you do not mind we close this one. Hoewver, please feel free to ask for help if you need in the kubebuilder channel as well.