Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-3364

Document the setup needed for syncing Che settings to devworkspace namespaces

XMLWordPrintable

    • devex docs #208 Sep 30-Oct 21
    • 8
    • Hide
      = Synchronizing the {prod-shot} server settings to DevWorkspace namespaces

      The ability of {prod-short} server to pass its configuration for setting various preferences in a {prod-short} workspace Pod and user's namespace was also extended for DevWorkspaces.

      The `che-operator` controller watches:
      * OpenShift projects
      * Kubernetes namespaces

      This observation function, in which the `che-operator` controller watches
      OpenShift projects, adds the ability to synchronize the {prod-short} server settings to a user's workspace namespace. To do so, a namespace has to have an appropriate label that consists of a user UID:

      * `org.eclipse.che/workspace-namespace-owner-uid`.

      Workspace namespaces labeled with the user's UID are marked for settings synchronization.

      The UID value in:

      * OpenShift: the user's UID of the user object
      * Kubernetes: the user's UID is extracted from the OAuth token provided by the configured OIDC provider.

      .Use-case
      . Create a namespace and label it with `org.eclipse.che/workspace-namespace-owner-uid`.
      . Check that the {prod-short} server proxy settings were synchronized to that namespace in its ConfigMap and self-signed certificates were synchronized in a Kubernetes secret of the namespace.
      Show
      = Synchronizing the {prod-shot} server settings to DevWorkspace namespaces The ability of {prod-short} server to pass its configuration for setting various preferences in a {prod-short} workspace Pod and user's namespace was also extended for DevWorkspaces. The `che-operator` controller watches: * OpenShift projects * Kubernetes namespaces This observation function, in which the `che-operator` controller watches OpenShift projects, adds the ability to synchronize the {prod-short} server settings to a user's workspace namespace. To do so, a namespace has to have an appropriate label that consists of a user UID: * `org.eclipse.che/workspace-namespace-owner-uid`. Workspace namespaces labeled with the user's UID are marked for settings synchronization. The UID value in: * OpenShift: the user's UID of the user object * Kubernetes: the user's UID is extracted from the OAuth token provided by the configured OIDC provider. .Use-case . Create a namespace and label it with `org.eclipse.che/workspace-namespace-owner-uid`. . Check that the {prod-short} server proxy settings were synchronized to that namespace in its ConfigMap and self-signed certificates were synchronized in a Kubernetes secret of the namespace.
    • Documented as Resolved Issue

      • We're recently introduced the ability to sync certain options from CheCluster CR to user namespaces in a way consumable by devworkspaces (eclipse-che/che-operator#1027).
      • Create a new doc for AG who will reflect the additional abilities of DevWorkspace.

      Reference: https://github.com/eclipse/che/issues/20582 

              mmaler@redhat.com Michal Maléř
              mmaler@redhat.com Michal Maléř
              Lukas Krejci, Sergii Kabashniuk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: