Bug 1804812 - The default proxy of the pods cannot be overwritten by a specific empty value
Summary: The default proxy of the pods cannot be overwritten by a specific empty value
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.5.0
Assignee: Evan Cordell
QA Contact: yhui
URL:
Whiteboard:
Depends On:
Blocks: 1751903
TreeView+ depends on / blocked
 
Reported: 2020-02-19 16:45 UTC by Evan Cordell
Modified: 2020-07-13 17:16 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1751903
Environment:
Last Closed: 2020-07-13 17:16:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-lifecycle-manager pull 1301 0 None closed Bug 1804812: fix(deployment): deployment spec hash 2020-07-02 04:00:11 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:16:36 UTC

Comment 5 yhui 2020-03-11 11:14:41 UTC
The bug is verified on this cluster.

Cluster version is 4.5.0-0.nightly-2020-03-10-234440.
[hui@localhost 1804812]$ oc exec catalog-operator-5868c7d9cd-c9p4z -n openshift-operator-lifecycle-manager -- olm --version
OLM version: 0.14.2
git commit: 8985872bfd5888c8d7d49e4dfc9be162a87691e7

Procedure to verify:
1. Create a namespace `test`
2. Create an OperatorGroup that targets `test` namespace.
3. Create a Subscription with no config.
4. Wait for the pod to be in running state, the globl proxy env vars are injected.
5. Update the Subscription with config.
6. Verify the new proxy config is injected.

YAML files:
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: test
  namespace: test
spec:
  targetNamespaces:
  - test
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: etcd-config-test
  namespace: test
spec:
  channel: singlenamespace-alpha
  installPlanApproval: Automatic
  name: etcd
  source: community-operators
  sourceNamespace: openshift-marketplace


Update the Subscription as follows:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  name: etcd-config-test
  namespace: test
spec:
  config:
    env:
    - name: HTTP_PROXY
  channel: singlenamespace-alpha
  installPlanApproval: Automatic
  name: etcd
  source: community-operators
  sourceNamespace: openshift-marketplace

Then verify the new pod proxy config.
[hui@localhost 1804812]$ oc get pod etcd-operator-864b756b9c-ttc9r -n test -o yaml|grep -i "proxy" -A 2
    - name: HTTP_PROXY
    image: quay.io/coreos/etcd-operator@sha256:66a37fd61a06a43969854ee6d3e21087a98b93838e284a6086b13917f96b0d9b
    imagePullPolicy: IfNotPresent
--
    - name: HTTP_PROXY
    image: quay.io/coreos/etcd-operator@sha256:66a37fd61a06a43969854ee6d3e21087a98b93838e284a6086b13917f96b0d9b
    imagePullPolicy: IfNotPresent
--
    - name: HTTP_PROXY
    image: quay.io/coreos/etcd-operator@sha256:66a37fd61a06a43969854ee6d3e21087a98b93838e284a6086b13917f96b0d9b
    imagePullPolicy: IfNotPresent


The result is what we expected.

Comment 7 errata-xmlrpc 2020-07-13 17:16:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2409


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