#
# Copyright (c) 2012-2018 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#   Red Hat, Inc. - initial API and implementation
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: che-operator
data:
  ############################
  ## General Che Settings ####
  ############################

  # CHE flavor. Upstream `che` or Red Hat `codeready`. Defaults to `che`
  CHE_FLAVOR: "codeready"
  # Docker image for Che server. Defaults to eclipse/che-server:latest. Keep blank unless you need to deploy your custom image
  CHE_IMAGE: ""
  # TLS support in Che. Defaults to false
  CHE_TLS_SUPPORT: ""
  # PVC strategy for Che workspaces. Defaults to 'common' where all workspaces use one shared PVC
  # A 'unique' strategy implies that each workspaces gets own PVCs
  CHE_INFRA_KUBERNETES_PVC_STRATEGY: ""
  # Workspace PVC claim. Defaults to 1Gi. It is recommended to increase it when using shared PVC
  CHE_INFRA_KUBERNETES_PVC_QUANTITY: ""
  # Content of your self signed cert as string, e.g:
  # cat root ca.crt | base64 -w 0
  CHE_SELF__SIGNED__CERT: ""
  # enable Login with OpenShift in Codeready Workspaces. OpenShift only. Defaults to false
  CHE_OPENSHIFT_OAUTH: ""
  # OpenShift API endpoint URL. Required only when OPENSHIFT_OAUTH is true. Auto detected
  CHE_OPENSHIFT_API_URL: ""
  # Plugin registry URL. Defaults to https://che-plugin-registry.openshift.io
  CHE_WORKSPACE_PLUGIN__REGISTRY__URL: ""
  # Ask for password update at first login as Che admin user. Defaults to true, i.e. you will be asked to update password
  CHE_UPDATE_CHE_ADMIN_PASSWORD: ""

  ############################
  ##   Che Proxy settings   ##
  ############################

  # proxy settings for workspace master, for example:
  # -Dhttp.proxyHost=host -Dhttp.proxyPort=8080 -Dhttps.proxyHost=host -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts='localhost^|127.0.0.1^|*.foo.com'
  CHE_WORKSPACE_MASTER_PROXY_JAVA_OPTS: ""
  # proxy settings for workspace JVM, Maven and workspace agent:
  # -Dhttp.proxyHost=host -Dhttp.proxyPort=8080 -Dhttps.proxyHost=host -Dhttps.proxyPort=8080 -Dhttp.nonProxyHosts='localhost^|127.0.0.1^|*.foo.com'
  CHE_WORKSPACE_PROXY_JAVA_OPTS: ""
  # http proxy for workspaces, e.g. 'http://myproxy:8051'
  CHE_WORKSPACE_HTTP__PROXY: ""
  # https proxy for workspaces, e.g. 'http://myproxy:8051'
  CHE_WORKSPACE_HTTPS__PROXY: ""
  # no_proxy for workspaces, e.g. 'localhost,10.2.34.54'
  CHE_WORKSPACE_NO__PROXY: ""

  ############################
  ##    Database settings   ##
  ############################

  # use external existing Postgres DB. Defaults to false which means a new instance of Postgres will be started
  # when set to true, provide connection details and make sure DB user is a SUPERUSER
  CHE_EXTERNAL_DB: ""
  # DB hostname
  CHE_DB_HOSTNAME: ""
  # DB port
  CHE_DB_PORT: "5432"
  # DB database
  CHE_DB_DATABASE: ""
  # DB username
  CHE_JDBC_USERNAME: ""
  # DB password
  CHE_JDBC_PASSWORD: ""
  # Your DB admin password
  CHE_DB_ADMIN_PASSWORD: ""

  ############################
  ## Keycloak settings #######
  ############################

  # Connect to an existing external Keycloak
  # and skip deploying a dedicated Keycloak instance. Defaults to false
  CHE_EXTERNAL_KEYCLOAK: ""
  # Keycloak/Red Hat SSO
  CHE_KEYCLOAK_AUTH__SERVER__URL: ""
  # Keyloak Admin Username.
  # Not required when connecting to an existing realm
  CHE_KEYCLOAK_ADMIN_USERNAME: ""
  # Keycloak admin password. Auto-generated if empty
  CHE_KEYCLOAK_ADMIN_PASSWORD: "admin"
  # Red Hat SSO realm
  CHE_KEYCLOAK_REALM: ""
  # Red Hat SSO client ID
  CHE_KEYCLOAK_CLIENT__ID: ""

  ############################
  ## Operator settings #######
  ############################

  # wait timeout for an Operator to watch deployments
  # defaults to 420 seconds
  WAIT_DEPLOYMENT_TIMEOUT: ""