Bug 1986174 - SRO should be able to read a complete chart form a ConfigMap.
Summary: SRO should be able to read a complete chart form a ConfigMap.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Special Resource Operator
Version: 4.9
Hardware: x86_64
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 4.9.0
Assignee: Brett Thurber
QA Contact: liqcui
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-26 20:26 UTC by Zvonko Kosic
Modified: 2021-10-18 17:41 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:41:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift special-resource-operator pull 24 0 None open Bug 1986174: SRO should be able to read a complete chart form a ConfigMap. 2021-07-26 20:55:03 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:41:42 UTC

Description Zvonko Kosic 2021-07-26 20:26:56 UTC
Description of problem:

For debugging and local development we introduced a ConfigMap to override specific states in the deployed chart. Some customers that do not want to package charts in SRO or push the charts to a HTTP registry want an easy way to deploy charts locally. 

SRO should be able to read a complete chart form a ConfigMap.

Comment 2 liqcui 2021-08-04 11:34:52 UTC
Verified Steps:
1. Deploy SRO from operatorhub using the latest version available from ART builds
2. Clone the SRO code from https://github.com/openshift/special-resource-operator
3. Add specialresource.openshift.io/from-configmap: "true" to charts/example/simple-kmod-0.0.1/templates/1000-driver-container.yaml
4. VERSION=0.0.1 REPO=example SPECIALRESOURCE=simple-kmod make chart
5. Change charts/example/simple-kmod-0.0.1/simple-kmod.yaml as below
From 
   url: file:///charts/example
---
To:     url: cm://simple-kmod/simple-kmod-chart
6. oc apply -f charts/example/simple-kmod-0.0.1/simple-kmod.yaml
7. oc get pods -n simple-kmod -w to wait simple-kmod-driver-container is running
8. oc describe daemonset simple-kmod-driver-container-12813789169ac0ee -n simple-kmod |grep from-configmap
                specialresource.openshift.io/from-configmap: true

oc get daemonset simple-kmod-driver-container-12813789169ac0ee -n simple-kmod  -o yaml |grep from
    specialresource.openshift.io/from-configmap: "true"

Comment 7 errata-xmlrpc 2021-10-18 17:41:26 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759


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