jenkins-x / jx

Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton
https://jenkins-x.io/
Apache License 2.0
4.57k stars 787 forks source link

no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"~!!! #8654

Closed leilong123123 closed 4 months ago

leilong123123 commented 6 months ago

"Local cluster installation Jenkins x 3.x" kubernetes version == 1.26.9 jx version == 3.10.136

run "jx admin operator --url = xxxx -- username xxxx -- token xxxxx" But pod/jx-boot has error log information. How can i do for this error, please!

POD LOG: using kubectl to apply resources if [ -d config-root/customresourcedefinitions ]; then \ kubectl apply --server-side=true --force-conflicts --prune -l=gitops.jenkins-x.io/pipeline=customresourcedefinitions -R -f config-root/customresourcedefinitions; \ fi customresourcedefinition.apiextensions.k8s.io/environments.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/pipelineactivities.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/releases.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/sourcerepositories.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/previews.preview.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/lighthousebreakpoints.lighthouse.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/lighthousejobs.lighthouse.jenkins.io serverside-applied customresourcedefinition.apiextensions.k8s.io/externalsecrets.kubernetes-client.io serverside-applied customresourcedefinition.apiextensions.k8s.io/clustertasks.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/customruns.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/pipelineresources.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/pipelineruns.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/pipelines.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/resolutionrequests.resolution.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/runs.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/taskruns.tekton.dev serverside-applied customresourcedefinition.apiextensions.k8s.io/tasks.tekton.dev serverside-applied resource mapping not found for name: "khchecks.comcast.github.io" namespace: "" from "config-root/customresourcedefinitions/kuberhealthy/kuberhealthy/khchecks.comcast.github.io-crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" ensure CRDs are installed first resource mapping not found for name: "khjobs.comcast.github.io" namespace: "" from "config-root/customresourcedefinitions/kuberhealthy/kuberhealthy/khjobs.comcast.github.io-crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" ensure CRDs are installed first resource mapping not found for name: "khstates.comcast.github.io" namespace: "" from "config-root/customresourcedefinitions/kuberhealthy/kuberhealthy/khstates.comcast.github.io-crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" ensure CRDs are installed first make[1]: [versionStream/src/Makefile.mk:322: kubectl-apply] Error 1 make[1]: Leaving directory '/workspace/source' error: failed to regenerate: failed to regenerate phase 1: failed to run 'make regen-phase-1 NEW_CLUSTER=false' command in directory '.', output: '' make: [versionStream/src/Makefile.mk:269: regen-check] Error 1

leilong123123 commented 6 months ago

I think, I have fixed it. thanks~!

RileySeaburg commented 6 months ago

I think, I have fixed it. thanks~!

Can you please post the fix?