Essentially if you have the following in the configmap
podannotationnamespaceregex = "gegc|gegd"
Then the pipe is being read as a command separator by the shell script here and its unable to set the values throwing an error ->
/root/.bashrc: line 9: gegd: command not found
We can fix this by making the value a string and adding quotes around it as done in this PR.
PR Description
New Feature Checklist
[ ] List telemetry added about the feature.
[ ] Link to the one-pager about the feature.
[ ] List any tasks necessary for release (3P docs, AKS RP chart changes, etc.) after merging the PR.
[ ] Attach results of scale and perf testing.
Tests Checklist
[ ] Have end-to-end Ginkgo tests been run on your cluster and passed? To bootstrap your cluster to run the tests, follow these instructions.
Labels used when running the tests on your cluster:
[ ] operator
[ ] windows
[ ] arm64
[ ] arc-extension
[ ] fips
[ ] Have new tests been added? For features, have tests been added for this feature? For fixes, is there a test that could have caught this issue and could validate that the fix works?
[ ] Is a new scrape job needed?
[ ] The scrape job was added to the folder test-cluster-yamls in the correct configmap or as a CR.
[ ] Was a new test label added?
[ ] A string constant for the label was added to constants.go.
[ ] The label and description was added to the test README.
…
Full issue description can be found here
Essentially if you have the following in the configmap podannotationnamespaceregex = "gegc|gegd"
Then the pipe is being read as a command separator by the shell script here and its unable to set the values throwing an error ->
/root/.bashrc: line 9: gegd: command not found
We can fix this by making the value a string and adding quotes around it as done in this PR.
PR Description
New Feature Checklist
Tests Checklist
operator
windows
arm64
arc-extension
fips
/tests
) added?