Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1744347

Summary: OperatorSources with authorization tokens generate bad operator-registry deployments.
Product: OpenShift Container Platform Reporter: Evan Cordell <ecordell>
Component: OLMAssignee: Evan Cordell <ecordell>
OLM sub component: OperatorHub QA Contact: Fan Jia <jfan>
Status: CLOSED WORKSFORME Docs Contact:
Severity: unspecified    
Priority: unspecified    
Version: 4.1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-28 23:02:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evan Cordell 2019-08-21 21:53:56 UTC
Description of problem:

OperatorSources with authorization tokens generate bad operator-registry deployments.

Version-Release number of selected component (if applicable):

4.1 (probably 4.1.11 from original report)

How reproducible:

Always

Steps to Reproduce:

apiVersion: v1
kind: Secret
metadata:
  name: brew-operators-secret
  namespace: openshift-marketplace
type: Opaque
stringData:
  token: "basic secretgoeshere"
---
apiVersion: operators.coreos.com/v1
kind: OperatorSource
metadata:
  name: brew-stage-operators
  namespace: openshift-marketplace
spec:
  type: appregistry
  endpoint: https://quay.io/cnr
  registryNamespace: rh-osbs-operators
  displayName: "Brew Operators"
  publisher: "Brew"
  authorizationToken:
    secretName: brew-operators-secret


Actual results:

the resulting deployment has wrong "--registry" argument for the appregistry command: "--registry=https://quay.io/cnr%7Cddolguik --registry=https://quay.io/cnr%7Crh-osbs-operators%7Copenshift-marketplace/brew-operators-secret". Note the extra "ddolguik --registry=https://quay.io/cnr".

Expected results:

the resulting deployment has the correct registry argument and pulls down private packages.


Additional info: