Bug 2111345 - should use the same value for AlertRelabelConfig with oc explain
Summary: should use the same value for AlertRelabelConfig with oc explain
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.11
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.11.z
Assignee: Jan Fajerski
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 2100312
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-27 06:30 UTC by OpenShift BugZilla Robot
Modified: 2022-09-20 16:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-20 16:34:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift api pull 1239 0 None open [release-4.11] Bug 2111345: monitoring: include lowercase action in relabel_config validation 2022-07-27 06:30:18 UTC
Github openshift cluster-monitoring-operator pull 1755 0 None open Bug 2111345: go.mod: update openshift-api to current release-4.11 tip 2022-08-31 12:35:07 UTC
Red Hat Product Errata RHSA-2022:6536 0 None None None 2022-09-20 16:35:00 UTC

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


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