-
Bug
-
Resolution: Done-Errata
-
Major
-
4.17.0, 4.16.z
-
None
-
Yes
-
Rejected
-
False
-
-
N/A
-
Release Note Not Required
-
Done
This is a clone of issue OCPBUGS-35906. The following is the description of the original issue:
—
Description of problem:
Featuregate taking unknown value
Version-Release number of selected component (if applicable):
4.16 and 4.17
How reproducible:
Always
Steps to Reproduce:
oc patch featuregate cluster --type=json -p '[{"op": "replace", "path": "/spec/featureSet", "value": "unknownghfh"}]' featuregate.config.openshift.io/cluster patched oc get featuregate cluster -o yaml apiVersion: config.openshift.io/v1 kind: FeatureGate metadata: annotations: include.release.openshift.io/self-managed-high-availability: "true" creationTimestamp: "2024-06-21T07:20:25Z" generation: 2 name: cluster resourceVersion: "56172" uid: c900a975-78ea-4076-8e56-e5517e14b55e spec: featureSet: unknownghfh
Actual results:
featuregate.config.openshift.io/cluster patched
metadata: annotations: include.release.openshift.io/self-managed-high-availability: "true" creationTimestamp: "2024-06-21T07:20:25Z" generation: 2 name: cluster resourceVersion: "56172" uid: c900a975-78ea-4076-8e56-e5517e14b55e spec: featureSet: unknownghfh
Expected results:
Should not take invalid value and give error
{{oc patch featuregate cluster --type=json -p '[
{"op": "replace", "path": "/spec/featureSet", "value": "unknownghfh"}]'}}
The FeatureGate "cluster" is invalid: spec.featureSet: Unsupported value: "unknownghfh": supported values: "", "CustomNoUpgrade", "LatencySensitive", "TechPreviewNoUpgrade"
Additional info:
https://github.com/openshift/kubernetes/commit/facd3b18622d268a4780de1ad94f7da763351425
- depends on
-
OCPBUGS-35906 Featuregate taking invalid value
- Closed
- links to
-
RHBA-2024:5422 OpenShift Container Platform 4.16.z bug fix update