-
Bug
-
Resolution: Done-Errata
-
Major
-
None
-
4.17.0, 4.16.z
-
None
-
Yes
-
False
-
-
N/A
-
Release Note Not Required
-
Done
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 '[
]'}}
The FeatureGate "cluster" is invalid: spec.featureSet: Unsupported value: "unknownghfh": supported values: "", "CustomNoUpgrade", "LatencySensitive", "TechPreviewNoUpgrade"
Additional info:
https://github.com/openshift/kubernetes/commit/facd3b18622d268a4780de1ad94f7da763351425
- blocks
-
OCPBUGS-37852 Featuregate taking invalid value
- Closed
- is cloned by
-
OCPBUGS-37852 Featuregate taking invalid value
- Closed
- is depended on by
-
OCPBUGS-37857 Featuregate taking invalid value
- Closed
- links to
-
RHEA-2024:3718 OpenShift Container Platform 4.17.z bug fix update