이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 6. Upgrading CodeReady Workspaces


CodeReady Workspaces 1.1.0 introduces an operator that uses a controller to watch custom resources. There is no direct upgrade path from CodeReady Workspaces 1.0.1 to CodeReady Workspaces 1.1.0. If you do not have any important workspaces and projects in an existing 1.0.1 namespace, we recommend deleting the 1.0.1 installation and deploying CodeReady Workspaces 1.1.0.

To keep data from an existing 1.0.1 installation, it is possible to upgrade by deploying the new operator to an existing namespace. You can use the manual or the script-based method to upgrade.

6.1. Upgrading CodeReady Workspaces manually

Prerequisites

  • A running instance of Red Hat OpenShift Container Platform 3.11 or OpenShift Dedicated 3.11.
  • The user is logged in to the OpenShift instance (using, for example, oc login).

Procedure

  1. Obtain the current PostgreSQL password (POSTGRESQL_PASSWORD) from the existing PostgreSQL deployment environment, or run the following oc command:

    $ oc get deployment postgres --output=jsonpath= \
    {'.spec.template.spec.containers[0].env \
    [?(@.name=="POSTGRESQL_PASSWORD")].value'} --namespace=<codeready>
    Copy to Clipboard Toggle word wrap
    Important

    Substitute <codeready> for the namespace that you are using.

  2. Obtain the current Red Hat SSO administrator username and password (SSO_ADMIN_USERNAME and SSO_ADMIN_PASSWORD) from the existing Red Hat SSO deployment environment, or run the following oc commands:

    $ oc get deployment keycloak --output=jsonpath= \
    {'.spec.template.spec.containers[0].env \
    [?(@.name=="SSO_ADMIN_USERNAME")].value'} --namespace=<codeready>
    
    $ oc get deployment keycloak --output=jsonpath= \
    {'.spec.template.spec.containers[0].env \
    [?(@.name=="SSO_ADMIN_PASSWORD")].value'} --namespace=<codeready>
    Copy to Clipboard Toggle word wrap
    Note
    • If you have changed the Red Hat SSO administrator password, provide the new password instead of fetching it from the environment variables.
    • Substitute <codeready> for the namespace that you are using.
  3. Replace the following values in the custom-resource.yaml file with the values you have obtained:

      spec:
        database:
          chePostgresPassword: '<password>'
        auth:
          keycloakAdminUserName: '<username>'
          keycloakAdminPassword: '<password>'
    Copy to Clipboard Toggle word wrap
  4. If you have configured OpenShift oAuth, obtain the oAuth secret and set its value in the custom-resource.yaml file:

    1. To obtain the secret, run the following command as the cluster administrator:

      $ oc get oauthclient openshift-identity-provider-h2fh \
      -o=jsonpath= {'.secret'}
      Copy to Clipboard Toggle word wrap
    2. Add the following fields to the spec.auth section of the custom-resource.yaml file. Set oAuthClientName to openshift-identity-provider-h2fh if not already set.

        spec:
          auth:
            oAuthClientName: 'openshift-identity-provider-h2fh'
            oAuthSecret: '<secret>'
      Copy to Clipboard Toggle word wrap
      Important

      Substitute <secret> for an actual secret.

  5. To deploy the operator to an existing namespace, run the deployment script with the arguments that suit your installation. See Section 2.2, “Running the CodeReady Workspaces deployment script” for detailed instructions.

    $ ./deploy.sh --deploy
    Copy to Clipboard Toggle word wrap

6.2. Upgrading CodeReady Workspaces using a migration script

The upgrade process using the migrate.sh script is an automation of the manual steps listed in the preceding manual section.

Prerequisites

  • A running instance of Red Hat OpenShift Container Platform 3.11 or OpenShift Dedicated 3.11.
  • The user is logged in to the OpenShift instance (using, for example, oc login).

Procedure

  1. Run the migrate.sh script with the name of your existing deployed project:

    $ ./migrate.sh --project=codeready
    Copy to Clipboard Toggle word wrap

    In the above command, substitute codeready for the name of the OpenShift project that you used for deploying the previous version of CodeReady Workspaces.

  2. Check changes in the custom-resource.yaml file.
  3. Run the deploy.sh script with parameters for your environment. See Section 2.2, “Running the CodeReady Workspaces deployment script” for detailed instructions.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat