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

Bug 1986174

Summary: SRO should be able to read a complete chart form a ConfigMap.
Product: OpenShift Container Platform Reporter: Zvonko Kosic <zkosic>
Component: Special Resource OperatorAssignee: Brett Thurber <bthurber>
Status: CLOSED ERRATA QA Contact: liqcui
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.9CC: aos-bugs
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:41:26 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 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