Description of problem:
When trying to set DNS node placement by toleration to not tolerate master nodes, effect value currently takes misspelled string other than "NoExecute". A check should be added that only string "NoExecute" is allowed, any other string should not allowed to be set for toleration effect.
Version-Release number of selected component (if applicable):
Edit toleration for default DNS operator with misspelled word "NoExcute"
$ oc edit dns.operator default
- effect: NoExecute
Steps to Reproduce:
the string was taken, editing was successful
$ oc get dns.operator default -oyaml
- effect: NoExcute <---- should not be allowed
The string should not be allowed, editing should not be successful. Only correct string "NoExecute" is allowed.
Verified in 4.8.0-0.nightly-2021-06-08-034312
$ oc get clusterversions.config.openshift.io
NAME VERSION AVAILABLE PROGRESSING SINCE STATUS
version 4.8.0-0.nightly-2021-06-08-034312 True False 20m Cluster version is 4.8.0-0.nightly-2021-06-08-034312
Verified on valid string "NoExecute" was accepted, any other invalid string was rejected, was not allowed to be edited into DNS operator yaml file.
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.8.2 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.