Bug 1992592 - list-type missing in oauth.config.openshift.io for identityProviders breaking Server Side Apply
Summary: list-type missing in oauth.config.openshift.io for identityProviders breaking...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oauth-apiserver
Version: 4.8
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
: 4.10.0
Assignee: Emily Moss
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 2015306
TreeView+ depends on / blocked
 
Reported: 2021-08-11 11:39 UTC by Simon Reber
Modified: 2022-05-02 15:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2022545 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:05:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift api pull 1028 0 None open Bug 1992592: Atomic List Type 2021-10-13 21:07:44 UTC
Github openshift cluster-config-operator pull 219 0 None open Bug 1992592: bump api 2021-10-18 07:35:03 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:05:28 UTC

Description Simon Reber 2021-08-11 11:39:24 UTC
Description of problem:

The definition of identityProviders in oauth.config.openshift.io is missing the list-type and list-map-keys to allow Server Side Apply. Server Side Apply is key functionality to allow proper usage of GitOps with tools such as OpenShift GitOps, kustomize or even ansible with k8s module.

See reference in https://github.com/openshift/cluster-authentication-operator/blob/release-4.8/vendor/github.com/openshift/api/config/v1/types_oauth.go#L31

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

 - OpenShift Container Platform 4.8.4

How reproducible:

 - Always

Steps to Reproduce:
1. It's missing in the code in https://github.com/openshift/cluster-authentication-operator/blob/release-4.8/vendor/github.com/openshift/api/config/v1/types_oauth.go#L31 and thus Server Side Apply won't work

Actual results:

Server Side Apply can't be used to manage oauth.config.openshift.io

Expected results:

It should be possible to configure oauth.config.openshift.io with Server Side Apply once list-type and list-map-keys are set.
 
Additional info:

This bug is based on the conversation in https://issues.redhat.com/browse/RFE-2071

Comment 1 Sergiusz Urbaniak 2021-08-11 11:41:03 UTC
lowering severity as we have no degradation in cluster functionality.

Comment 2 Sergiusz Urbaniak 2021-08-16 12:07:39 UTC
sprint review: this bug is well understood, triaged and will be implemented. currently unplanned though.

Comment 8 liyao 2021-10-27 02:36:40 UTC
Tested in fresh cluster 4.10.0-0.nightly-2021-10-25-190146

Check the CRD and it's found missing atomic list-type is there, moving to VERIFIED. 

$ oc get CustomResourceDefinition oauths.config.openshift.io -o yaml
/**snipped**/
                    type:
                      description: type identifies the identity provider type for
                        this entry.
                      type: string
                  type: object
                type: array
                x-kubernetes-list-type: atomic
              templates:
                description: templates allow you to customize pages like the login
                  page.
/**snipped**/

Comment 12 errata-xmlrpc 2022-03-10 16:05:09 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.10.3 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-2022:0056


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