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

Unable create the CRD #1364

Closed
Prageeth-Wickramaarachchi opened this issue Nov 7, 2024 · 12 comments
Closed

Unable create the CRD #1364

Prageeth-Wickramaarachchi opened this issue Nov 7, 2024 · 12 comments

Comments

@Prageeth-Wickramaarachchi

prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ kubectl create -f mysql-service-crd.yaml -n $KUBEPLUS_NS --kubeconfig=kubeplus-saas-provider.json
Error from server: error when creating "mysql-service-crd.yaml": admission webhook "platform-as-code.crd-binding.v1" denied the request: Chart https://github.com/cloud-ark/operatorcharts/blob/master/mysqlcluster-stack-0.0.1.tgz?raw=true not found.
Use kubectl upload chart to upload the chart first.

@devdattakulkarni
Copy link
Contributor

@Prageeth-Wickramaarachchi As the error points out, you must first upload the chart to KubePlus if you use a local chart. We provide a kubectl plugin to upload local charts to KubePlus. Have you set up KubePlus kubectl plugins in your environment? If not, check the README file for the steps.

@Prageeth-Wickramaarachchi
Copy link
Author

@devdattakulkarni I did that too but still unable to create the CRD.

prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ kubectl upload chart hello-world-chart-0.0.2.tgz kubeplus-saas-provider.json
prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ kubectl create -f hello-world-resource-composition.yaml -n $KUBEPLUS_NS --kubeconfig=kubeplus-saas-provider.json
Error from server: error when creating "hello-world-resource-composition.yaml": admission webhook "platform-as-code.crd-binding.v1" denied the request: Chart not found.
Use kubectl upload chart to upload the chart first.

@devdattakulkarni
Copy link
Contributor

devdattakulkarni commented Nov 7, 2024

@Prageeth-Wickramaarachchi Can you verify the path of the chart (chartURL) in hello-world-resource-composition.yaml is file:///hello-world-chart-0.0.2.tgz ?

Also, can you share the version of KubePlus that you have installed and the version of Kubernetes and how the cluster is created (minikube/kind/cloud provider).

@Prageeth-Wickramaarachchi
Copy link
Author

@devdattakulkarni I am using minikube currently

prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ pwd
/mnt/c/Users/prage
prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ ls /mnt/c/Users/prage/hello-world-resource-composition.yaml
/mnt/c/Users/prage/hello-world-resource-composition.yaml
prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$ ls /mnt/c/Users/prage/hello-world-chart-0.0.2.tgz
/mnt/c/Users/prage/hello-world-chart-0.0.2.tgz
prageeth@DESKTOP-3KD6R77:/mnt/c/Users/prage$

@devdattakulkarni
Copy link
Contributor

Can you check inside hello-world-resource-composition.yaml and share what you see as the value of the chartURL field?

@Prageeth-Wickramaarachchi
Copy link
Author

@devdattakulkarni Initially I used the default charturl given in the repo since it causing errors I download it upload my repo and add the following chaturl
chartURL: https://github.com/Prageeth-Wickramaarachchi/kubeplus-charts/blob/main/hello-world-chart-0.0.2.tgz?raw=true

since this also didn't work I used the upload chart plugin when i use that plugin i commented this chaturl and try to create the CRD

@devdattakulkarni
Copy link
Contributor

Ok, thanks for the details. We will see if we are able to re-create the issue on our side. You might want to join our Slack channel which will be easier for discussion.

@Prageeth-Wickramaarachchi
Copy link
Author

@devdattakulkarni thanks, can you send me an invitation

@devdattakulkarni
Copy link
Contributor

It is in the main README.. Check towards the end of the README. We are in #kubeplus channel in CNCF workspace.

@devdattakulkarni
Copy link
Contributor

@Prageeth-Wickramaarachchi Ping. Did you get a chance to register on the CNCF Slack workspace?

@devdattakulkarni
Copy link
Contributor

@Prageeth-Wickramaarachchi Is this still an issue? Were you able to create a CRD and test sample applications?

@devdattakulkarni
Copy link
Contributor

@Prageeth-Wickramaarachchi I am going to close this issue as we were not able to re-create it. Re-open the issue if you are still encountering it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants