You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue with Applying Resources: Missing CRD Mappings
I am working on setting up a Kubernetes cluster using 'kind' (0.24.0) with go 1.23.1
[root@openstack-k8s-operators samples]# kubectl cluster-info
Kubernetes control plane is running at https://127.0.0.1:44679
CoreDNS is running at https://127.0.0.1:44679/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
However, when I try to run kubectl apply -f config/samples/, I encounter the following errors:
[root@openstack-k8s-operators openstack-operator]# kubectl apply -f config/samples/
resource mapping not found for name: "default" namespace: "" from "config/samples/client_v1beta1_openstackclient_empty.yaml": no matches for kind "OpenStackClient" in version "client.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-basic" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-collapsed-cell" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_collapsed_cell.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "default" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_empty.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-galera" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_galera.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-galera-3replicas" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_galera_3replicas.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-galera-network-isolation" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_galera_network_isolation.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-galera-network-isolation-3replicas" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_galera_network_isolation_3replicas.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-galera-network-isolation-3replicas" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_galera_network_isolation_3replicas_only_default_enabled_services.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-network-isolation" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_network_isolation.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-network-isolation-ceph" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_network_isolation_ceph.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-network-isolation" namespace: "" from "config/samples/core_v1beta1_openstackcontrolplane_network_isolation_tls_public_endpoint.yaml": no matches for kind "OpenStackControlPlane" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack" namespace: "" from "config/samples/core_v1beta1_openstackversion.yaml": no matches for kind "OpenStackVersion" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "default" namespace: "" from "config/samples/core_v1beta1_openstackversion_empty.yaml": no matches for kind "OpenStackVersion" in version "core.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "edpm-deployment" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplanedeployment.yaml": no matches for kind "OpenStackDataPlaneDeployment" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "default" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplanedeployment_empty.yaml": no matches for kind "OpenStackDataPlaneDeployment" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstack-edpm" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplanenodeset.yaml": no matches for kind "OpenStackDataPlaneNodeSet" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "default" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplanenodeset_empty.yaml": no matches for kind "OpenStackDataPlaneNodeSet" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "openstackdataplaneservice-sample" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplaneservice.yaml": no matches for kind "OpenStackDataPlaneService" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
resource mapping not found for name: "default" namespace: "" from "config/samples/dataplane_v1beta1_openstackdataplaneservice_empty.yaml": no matches for kind "OpenStackDataPlaneService" in version "dataplane.openstack.org/v1beta1"
ensure CRDs are installed first
error validating "config/samples/kustomization.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
It appears that all the errors are related to missing CRD mappings for various OpenStack components, like OpenStackControlPlane and OpenStackVersion.
Is there something wrong with my setup or steps? Do I need to install the CRDs manually before applying the resources?
The text was updated successfully, but these errors were encountered:
the main page needs an update, we have right now a requirement for OpenShift (OCP) in the openstack-operator. It might change in the future. if you have OCP you could use the index hosted at https://quay.io/repository/openstack-k8s-operators/openstack-operator-index to deploy it via OLM. otherwise you'd have to deploy all the operators this one depends on.
if you want to give it a try you could use our development tool at https://github.com/openstack-k8s-operators/install_yamls . this uses a single vm OCP with additional VMs as computes (OpenShift local/ OKD could also work)
“Thank you for your reply, @stuggi. I tried following the instructions from this manual. I have one more question, though: is this project designed specifically for OCP-based environments only? Would it be possible to run openstack-k8s-operators on my own Kubernetes cluster?”
Issue with Applying Resources: Missing CRD Mappings
I am working on setting up a Kubernetes cluster using 'kind' (0.24.0) with go 1.23.1
However, when I try to run kubectl apply -f config/samples/, I encounter the following errors:
It appears that all the errors are related to missing CRD mappings for various OpenStack components, like OpenStackControlPlane and OpenStackVersion.
Is there something wrong with my setup or steps? Do I need to install the CRDs manually before applying the resources?
The text was updated successfully, but these errors were encountered: