Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-1068

OCP clusters installed on OSP should have ImageContentSourcePolicy and OperatorSource for OSBS configured during installation

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.GA
    • 2.2.0.GA
    • testing

      OCP installation job for cluster on OSP should create ImageContentSourcePolicy for OSBS (pull images from osbs instead of from registry.redhat.io).

      Here's sample ImageContentSourcePolicy I used for testing bits from registry.stage.redhat.io:

      apiVersion: operator.openshift.io/v1alpha1
      kind: ImageContentSourcePolicy
      metadata:
        name: codeready-workspaces-staging
      spec:
        repositoryDigestMirrors:
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/crw-2-rhel8-operator
          source: registry.redhat.io/codeready-workspaces/crw-2-rhel8-operator
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/server-rhel8
          source: registry.redhat.io/codeready-workspaces/server-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/pluginregistry-rhel8
          source: registry.redhat.io/codeready-workspaces/pluginregistry-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/devfileregistry-rhel8
          source: registry.redhat.io/codeready-workspaces/devfileregistry-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8
          source: registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8
          source: registry.redhat.io/codeready-workspaces/pluginbroker-artifacts-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/jwtproxy-rhel8
          source: registry.redhat.io/codeready-workspaces/jwtproxy-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/machineexec-rhel8
          source: registry.redhat.io/codeready-workspaces/machineexec-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/plugin-java11-rhel8
          source: registry.redhat.io/codeready-workspaces/plugin-java11-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/plugin-java8-rhel8
          source: registry.redhat.io/codeready-workspaces/plugin-java8-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/plugin-kubernetes-rhel8
          source: registry.redhat.io/codeready-workspaces/plugin-kubernetes-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/plugin-openshift-rhel8
          source: registry.redhat.io/codeready-workspaces/plugin-openshift-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/stacks-cpp-rhel8
          source: registry.redhat.io/codeready-workspaces/stacks-cpp-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/stacks-dotnet-rhel8
          source: registry.redhat.io/codeready-workspaces/stacks-dotnet-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/stacks-golang-rhel8
          source: registry.redhat.io/codeready-workspaces/stacks-golang-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/stacks-java-rhel8
          source: registry.redhat.io/codeready-workspaces/stacks-java-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/stacks-php-rhel8
          source: registry.redhat.io/codeready-workspaces/stacks-php-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/theia-endpoint-rhel8
          source: registry.redhat.io/codeready-workspaces/theia-endpoint-rhel8
        - mirrors:
          - registry.stage.redhat.io/codeready-workspaces/theia-rhel8
          source: registry.redhat.io/codeready-workspaces/theia-rhel8
      

      Spec part of OperatorSource:

      spec:
        authorizationToken:
          secretName: <secret>
        displayName: Custom Operators
        endpoint: https://quay.io/cnr
        publisher: Red Hat
        registryNamespace: redhat-operators-stage
        type: appregistry
      

      Also secret with quay.io token with access to https://quay.io/organization/rh-osbs-operators needs to be created in openshift-marketplace namespace.

              rhopp@redhat.com Radim Hopp
              rhopp@redhat.com Radim Hopp
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: