Bug 2111345

Summary: should use the same value for AlertRelabelConfig with oc explain
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: MonitoringAssignee: Jan Fajerski <jfajersk>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: low    
Version: 4.11CC: anpicker, jmarcal
Target Milestone: ---   
Target Release: 4.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-20 16:34:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2100312    
Bug Blocks:    

Comment 4 Junqi Zhao 2022-08-29 00:49:23 UTC
we also need to update openshift-api to 4.11.
change bug to MODIFIED

Comment 6 Junqi Zhao 2022-09-08 11:29:05 UTC
tested with PR, value for actions in AlertRelabelConfig CRD is changed to PascalCase
# oc get crd alertrelabelconfigs.monitoring.openshift.io -oyaml 
...
                  properties:
                    action:
                      default: Replace
                      description: 'action to perform based on regex matching. Must
                        be one of: Replace, Keep, Drop, HashMod, LabelMap, LabelDrop,
                        or LabelKeep.  Default is: ''Replace'''
                      enum:
                      - Replace
                      - Keep
                      - Drop
                      - HashMod
                      - LabelMap
                      - LabelDrop
                      - LabelKeep
                      type: string
...

# oc explain AlertRelabelConfig.spec.configs.action
KIND:     AlertRelabelConfig
VERSION:  monitoring.openshift.io/v1alpha1

FIELD:    action <string>

DESCRIPTION:
     action to perform based on regex matching. Must be one of: Replace, Keep,
     Drop, HashMod, LabelMap, LabelDrop, or LabelKeep. Default is: 'Replace'

Comment 12 errata-xmlrpc 2022-09-20 16:34:44 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.11.5 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-2022:6536