Enable the use of regular expressions for rule-based term assignment
By default, the match type regex is disabled for defining rules for term assignment. An instance administrator can enable this match type.
To enable the use of regular expressions for matching in term-assignment rules:
-
Log in to the cluster. Run the following command as a user with sufficient permissions to complete this task:
oc login <OpenShift_URL>:<port> -
Update the IBM Knowledge Catalog custom resource by running the following command:
oc patch wkc wkc-cr -n ${PROJECT_CPD_INST_OPERANDS} --type merge --patch '{"spec": {"wkc_term_assignment_ta_rules_allow_regex": true}}'
The change is picked up the next time the operator is reconciled, which can take 5 - 10 minutes. You can check in these ways whether the change is applied:
- Check whether the
wkc-term-assignmentpod was restarted. - Run the command
oc get WKC wkc-cr -o yaml. The status information shows if and when the reconciliation was run.