cluster-workspace

by startxfr

Helm chartv14.6.381App 3.10.0GPL-3.0-or-laterVerified publisher

Helm chart used to configure Code Ready Workspace at the cluster level

About this chart

Cluster Chart : Workspace

This helm chart is used to configure code ready workspace via it's operator and deploy a cheCluster.

!! This chart is now deprecated and replaced by cluster-devworkspaces startx helm chart

This chart is part of the cluster-xxx startx helm chart series that doesn't necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use theses resources.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/cluster-workspace

4. Install this chart

helm install cluster-workspace startx/cluster-workspace

Values dictionary

context values dictionary

KeyDefaultDescription
context.scopedefaultName of the global scope for this application (organisational tenant)
context.clusterlocalhostName of the cluster running this application (plateform tenant)
context.environmentdevName of the environement for this application (ex: dev, factory, preprod or prod)
context.componentdemoComponent name of this application (logical tenant)
context.appsxapiApplication name (functionnal tenant, default use Chart name)
context.version0.0.1Version name of this application (default use Chart appVersion)

cheCluster values dictionary

KeyDefaultDescription
cheCluster{}Object holding the cheCluster instance to configure
cheCluster.enabledtrueEnable the creation of the cheCluster
cheCluster.hookedtrueActivate the manager as a helm hook
cheCluster.namecodeready-workspacesname of the che cluster
cheCluster.storageClassgp3-csiStorage class to use for persistance
cheCluster.storageSize1GiSize of the PVC used for storage persistance

cheCluster values example

cheCluster:
  enabled: true
  hooked: true
  name: "codeready-workspaces"
  storageClass: "gp3-csi"
  storageSize: "1Gi"

project values dictionary

The project property scope the project helm chart dependency. You can find more information on the availables options you can set under this project property on the project helm chart documentation or by reading the source code.

project values example

# example of a project creation with this helm chart
project:
  enabled: true
  context:
    scope: default
    cluster: default
    environment: dev
    component: infra
    app: default-workspaces
  project:
    enabled: true
    type: project
    name: workspaces-operator
    display_name: Operator WORKSPACES
    description: CodeReady Workspace configured by STARTX

operator values dictionary

The operator property scope the operator helm chart dependency. You can find more information on the availables options you can set under this operator property on the operator helm chart documentation or by reading the source code.

operator values example

# example of a operator creation with this helm chart
operator:
  enabled: true
  context:
    scope: default
    cluster: default
    environment: dev
    component: infra
    app: default-workspaces
  subscription:
    enabled: true
    hooked: true
    name: "codeready-workspaces"
    namespace: "workspaces-operator"
    version: "v3.4.0+0.1675914643.p"
    operator:
      channel: latest
      name: codeready-workspaces
      csv: crwoperator
      source:
        name: redhat-operators
        namespace: example-marketplace
  operatorGroup:
    enabled: true
    hooked: true
    name: "codeready-workspaces"
    namespace: "workspaces-operator"
    providedAPIs: "CheCluster.v1.org.eclipse.che"

Values files

Default values file (values.yaml)

Configuration of default properties all disabled by default. This mean no resource will be created unless overwriting default parameters. Default configuration have the following characteristics :

  • 1 project named default-workspaces
  • 1 operatorGroup named codeready-workspaces to enable codeready operator in the project
  • 1 subscription named codeready-workspaces to deploy codeready operator in the project with the following characteristics
    • operator name is codeready-workspaces
    • operator version is 3.4.0+0.1675914643.p
    • operator catalog is redhat-operators located in openshift-marketplace
  • 1 cheCluster named codeready-workspaces to deploy cheCluster in the project with the following characteristics
    • storage class gp3-csi
    • storage size defined to 1Gi
# base configuration running default configuration
helm install cluster-workspace startx/cluster-workspace

Default values file (values-startx.yaml)

Configuration of startx properties with the following characteristics :

  • 1 project named openshift-workspaces (disabled by default)
  • 1 operatorGroup named codeready-workspaces (disabled by default)
  • 1 subscription named codeready-workspaces (disabled by default)
    • operator name is codeready-workspaces
    • operator version is 3.4.0+0.1675914643.p
    • operator catalog is redhat-operators located in openshift-marketplace
  • 1 cheCluster named codeready-workspaces to deploy cheCluster in the project with the following characteristics
    • storage class startx-aws-generic-retain
    • storage size defined to 2Gi
# base configuration running startx configuration
helm install cluster-workspace startx/cluster-workspace -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-workspace/values-startx.yaml

History

ReleaseDateDescription
0.2.122020-10-25Initial commit for this helm chart with default value example (removed)
0.2.152020-10-26Improve cluster-workspace operator config
0.2.512020-10-31Common release for all chart
0.3.02020-10-31Stable 0.3 release
0.3.212020-11-06Align all charts on the repository release 0.3.21
0.3.232020-11-07Add engineVersion to all chart (set to 4.5.12) and update all appVersion with the relevant information
0.3.292020-11-07Improve NOTES output and move to 0.3.25 dependencies
0.3.372020-11-07Improve helm hook ordering cordinated with dependencies
0.3.472020-11-08Update dependency to 0.3.45 release
0.3.932020-11-10Move to 0.3.93 dependencies for all cluster-xxx charts in the startx repository
0.3.1052020-11-11Update cluster-xxx charts dependencies to 0.3.103 release
0.3.1172020-11-12Move to 0.3.115 basic chart dependencies
0.3.1352020-11-23Improve documentation for all examples charts
0.3.1412020-11-24publish stable update for the full repository
0.3.1512021-01-23Upgrade to CRW version 2.5.1
0.3.1512021-01-23Upgrade chart to OCP version 4.3.13
0.3.1532021-01-23publish stable update for the full repository
0.3.1652021-01-23Upgrade all chart dependencies
0.3.1672021-01-24Remove conditional dependencies for argocd compatibility in HA environments
0.3.1692021-01-24Move to 0.3.155 dependencies
0.3.1872021-02-13Align cluster chart release to 0.3.187
0.3.1912021-02-13Update cluster chart dependencies to 0.3.189
0.3.1992021-02-20prepare alpha release of 0.4 and update dependencies charts
0.3.2012021-02-20Update icon and image for charts
0.3.2032021-02-21Upgrade chart release informations
0.3.2072021-04-19Core chart dependencies moved to v0.3.205
0.3.2092021-05-06Prepare upgrade to 4.7 and add template for AFD
0.3.2152021-05-06Align all chart to release 0.3.215
0.3.2252021-05-10Update all chart to use new RBAC naming
0.3.2262021-05-31Add demo-che example values
0.3.2272021-06-02Upgrade to CRW version 2.8.0
0.3.3052021-06-04publish stable update for the full repository
0.3.3432021-06-06publish stable update for the full repository
0.3.3812021-06-10Align example and cluster charts dependencies to basic chart version 0.3.377
0.3.3902021-06-12Prepare 0.4.0 release
0.3.4232021-06-17Prepare the v0.4 release. Stable aligned version of all charts
0.3.4312021-07-05Move to dependencies 1.18.0
0.3.4412021-07-27Update to crw operator version 2.9.0
0.3.4802021-08-03publish stable update for the full repository
0.3.9982021-08-04publish stable update for the full repository
0.3.9992021-08-04Release stable version 0.3.999 align with ocp 4.7.13
7.22.12021-08-04Move to release 7.22.1 to align versionning with ocp release cycle
7.22.22021-08-04Move helm dependencies to a 7.x.x release model
7.22.32021-08-05publish stable update for the full repository
7.22.52021-08-05publish stable update for the full repository
7.22.62021-08-05Stable version for chart dependencies
7.22.72021-08-05Stable for OCP version 4.7.22

Deploy cluster-workspace with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-workspace on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcluster-workspace is pinned at v14.6.381 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply