questions:
  - variable: credentialsSecret.generate
    label: Generate Console Config Secret
    description: Generates a Secret that contains a Kamaji Console config and credentials.
    type: boolean
    default: false
    required: true
    group: "Console Configuration"
    show_subquestion_if: true
    subquestions:
      - variable: credentialsSecret.nextAuthUrl
        label: NextAuthUrl
        description: URL where the console is accessible, eg. https://kamaji.rancher.localhost
        default: "https://kamaji.rancher.localhost"
        type: string
        group: "Console Configuration"

      - variable: credentialsSecret.jwtSecret
        description: Secret used to sign the browser session
        label: JWT Secret
        default: secretme
        type: string
        group: "Console Configuration"

      - variable: credentialsSecret.email
        label: email
        default: admin@kamaji.rancher.localhost
        description: Credentials (email) to login into console
        type: string
        group: "Console Configuration"

      - variable: credentialsSecret.password
        label: password
        description: Password to login into Console
        type: password
        group: "Console Configuration"

  - variable: credentialsSecret.name
    label: Console Config Secret Name
    description: Name of the Secret that contains a Console config and credentials (Will not be visible in the API. More info in the README)
    type: string
    default: kamaji-console
    group: "Console Configuration"
    show_if: "credentialsSecret.generate=false"

  - variable: ingress.enabled
    default: false
    description: If true, create ingress, must also set ingress host value
    type: boolean
    label: Manager Ingress Status
    group: "Ingress Configuration"
    show_subquestion_if: true
    subquestions:
    - variable: ingress.hosts[0].host
      default: "kamaji.rancher.localhost"
      description: Must set this host value if ingress is enabled
      type: string
      label: Manager Ingress Host
      group: "Ingress Configuration"
    - variable: ingress.hosts[0].paths[0].path
      default: "/ui"
      description: Set ingress path to /ui (required)
      type: string
      label: Manager Ingress Path
      group: "Ingress Configuration"
    - variable: ingress.hosts[0].paths[0].pathType
      default: "ImplementationSpecific"
      description: "Set ingress path type"
      type: string
      label: Manager Ingress Path type
      group: "Ingress Configuration"