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.
- is related to
-
CRW-1067 QE automated tests need to be runnable against 4 different image sources
- Closed