kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.17k stars 103 forks source link

"package add plan" for "deploy" reports ">> plan name must be unique" and contradicts documentation #1749

Open javajon opened 3 years ago

javajon commented 3 years ago

What happened:

Getting unexpected error:

$ kubectl kudo package add plan
✗ Plan Name: deploy
>> plan name must be unique

What you expected to happen:

No error as documented like this:

$ kubectl kudo package add plan
✔ Plan Name: deploy
✔ serial
Phase 1 name: main
✔ parallel
Step 1 name: everything
✔ app
✗ Add another Task:
✗ Add another Step:
✗ Add another Phase:

How to reproduce it (as minimally and precisely as possible):

Two options:

1) Following the KUDO doc instructions here. 2) Follow Katacoda scenario here and change version on step 2 from VERSION=0.15.0 to latest VERSION=0.17.2 then experience the problem in step 3 under Add a Plan.

The change happened sometime after 0.15.0.

Anything else we need to know?:

Environment:

alenkacz commented 3 years ago

@javajon thanks for submitting this! I think this is actually docs issue because currently the deploy plan gets created by default. This is what get scaffolded:

plans:
  deploy:
    phases:
    - name: deploy
      steps:
      - name: deploy
        tasks:
        - deploy
      strategy: serial
    strategy: serial

so either we need to not do that or change the documentation.

@javajon any preferences as to what would be better for you from user perspective?