Welcome to the Linux Foundation Forum!

unable to created a crontab from a CRD

Hi @chrispokorni ,

Currently I am working with CRDs, Lesson 14. So I created a crd according to teh steps mentioned in the lab exercise. It got created πŸ‘.
But I am unable to create new-crontab, there is an issue with "stable.example.com/v1"

Error ->>
error: resource mapping not found for name: "new-cron-object" namespace: "" from "new-crontab.yaml": no matches for kind "CronTab" in version "stable.example.com/v1"
ensure CRDs are installed first

I am attaching my crd and crontab YAMLs for reference.
Kindly help

Thanks

Comments

  • chrispokorni
    chrispokorni Posts: 2,163

    Hi @aditya03,

    It seems you did not take advantage of the crd.yaml file that is supplied to you in the SOLUTIONS tarball, and you typed the file from scratch. In doing so, you introduced a typo that now causes your lab to break.

    Check the spec.names.kind: value in the crd.yaml file - this is where you introduced the typo. Compare it with the value of the kind: in the new-crontab.yaml. See the difference? The two values should be the same. Correct the typo and re-deploy.

    Regards,
    -Chris

Categories

Upcoming Training