categories:
- CI/CD
labels:
  io.rancher.certified: partner
questions:
- variable: accountId
  default: ""
  description: "Account ID to which the Harness Delegate will connect"
  type: string
  required: true
  label: Account ID
  group: "Account Details"
- variable: accountSecret
  default: ""
  type: string
  required: true
  label: Account Secret
  group: "Account Details"
- variable: accountIdShort
  default: ""
  description: "6-character identifier for the account"
  type: string
  required: true
  label: Short Account ID
  group: "Account Details"

# Delegate Configuration
- variable: delegateName
  default: "harness-delegate"
  description: "Name of the Harness Delegate"
  type: string
  required: true
  label: Delegate Name
  group: "Delegate Configuration"
- variable: clusterWideRbacScope
  default: true
  description: "Role-based access control: Set to True for cluster-wide, or False for namespace-wide"
  type: boolean
  required: true
  label: RBAC scope
  group: "Delegate Configuration"

# Advanced Server Settings
- variable: advancedOptions
  default: false
  label: Show Advanced Server Configurations
  type: boolean
  show_subquestion_if: true
  group: "Advanced Server Options"
  subquestions:
  - variable: managerHostAndPort
    default: "https://app.harness.io"
    description: "URL of the Harness server"
    type: string
    label: Harness Server  
  - variable: watcherStorageUrl
    default: "https://app.harness.io/storage/wingswatchers"
    type: string
    label: Watcher Storage URL
  - variable: watcherCheckLocation
    default: "watcherprod.txt"
    description: "Watcher file name"
    type: string
    label: Watcher File 
  - variable: delegateStorageUrl
    default: "https://app.harness.io/storage/wingsdelegates"
    type: string
    label: Delegate Storage URL
  - variable: delegateCheckLocation
    default: "delegateprod.txt"
    description: "Delegate file name"
    type: string
    label: Delegate File

  - variable: delegateProfile
    default: ""
    description: "ID of the Delegate profile that must run when the Delegate launches"
    type: string
    label: Delegate Profile ID
  - variable: helmDesiredVersion
    default: ""
    description: "Helm version to be installed in the Delegate"
    type: string
    label: Helm version

# Advanced Proxy Settings
- variable: advancedProxyOptions
  default: false
  label: Show Advanced Proxy Configurations
  type: boolean
  show_subquestion_if: true
  group: "Advanced Proxy Options"
  subquestions:
  - variable: proxyManager
    default: "true"
    description: "Set to True if the Harness Delegate should go through the proxy"
    type: boolean
    label: Proxy Manager
  - variable: pollForTasks
    default: "false"
    description: "Set to True if the proxy does not support WebSocket Protocol (wss)"
    type: boolean
    label: Poll For Tasks
  - variable: proxyHost
    default: ""
    description: "URL of the proxy host"
    type: string
    label: Proxy Host
  - variable: proxyPort
    default: ""
    type: string
    label: Proxy Port
  - variable: proxyUser
    default: ""
    type: string
    label: Proxy Username
  - variable: proxyPassword
    default: ""
    type: string
    label: Proxy Password
  - variable: proxyScheme
    default: ""
    description: "Select http or https"
    type: enum
    label: Proxy Scheme
    options:
      - ""
      - "http"
      - "https"
  - variable: noProxy
    default: ""
    description: "Enter a comma-separated list of suffixes for which the proxy is not required (.example.com, <specifichost>, ...). Do not insert leading wildcards"
    type: string
    label: No Proxy Domains
