Bug 1744347 - OperatorSources with authorization tokens generate bad operator-registry deployments.
Summary: OperatorSources with authorization tokens generate bad operator-registry depl...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-21 21:53 UTC by Evan Cordell
Modified: 2019-08-28 23:02 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-28 23:02:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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:


Note You need to log in before you can comment on or make changes to this bug.