jx: jx project quickstart is giving an error error: failed to validate options: failed to find the dev Environment: the server could not find the requested resource (get environments.jenkins.io)

I have used https://jenkins-x.io/v3/admin/platforms/eks/ to create an EKS cluster using terraform which is created succesfully (terraform is installed on my workstation)

I have then installed jx from https://jenkins-x.io/v3/admin/setup/jx3/ (on my workstation where terraform is installed)

One thing which I have observed is, in order to move into the Jenkins X Developer namespace, upon running jx ns jx

jx was not automatically there. - i get the following output on the console balasrinivas:~$ jx ns jx error: namespaces "jx" not found balasrinivas:~$ i have used the octant UI to manually create the jx namespace, is this expected? jx version command gives the following output to me.

balasrinivas:~$ jx version version: 3.2.253 balasrinivas:~$

upon running jx project

balasrinivas:jx3-eks-vault$ jx project ? Which kind of project you want to create: Create new application from a Quickstart error: failed to validate options: failed to find the dev Environment: the server could not find the requested resource (get environments.jenkins.io) balasrinivas:jx3-eks-vault$

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 37 (17 by maintainers)

Most upvoted comments

but https://github.kyndryl.net/bavanapa/jx3-eks-vault right??

Yes

You need to run terraform apply again, it should be quick, as it only needs to change one thing. You can change things manually, but that’s not recommended, as when u upgrade to a newer jx terraform module, it will overwrite it.

Why is it polling jx3-eks-terraform? it’s the infra repo and not the cluster git repo. I did not catch it earlier, the value of the cluster git repo is wrong. Ur using the infra repo instead of cluster git repo. Use the one u generated from the jx3-eks-vault repo.