Open Jerrimikkihvatai opened 5 months ago
[Triage] Hey @cthtrifork can you please check this, I assume your contribution in this PR https://github.com/opensearch-project/opensearch-k8s-operator/pull/788 should fix the error. Thanks @getsaurabh02
Similiar issue related to this topic https://github.com/opensearch-project/opensearch-k8s-operator/issues/812#issuecomment-2181387505.
From a quick look at the code, it looks like the ism policy object does not require all 4 to be set so I believe it's just in the CRD which should be a quick fix. I might do it on monday
What is the bug?
I can't create an ISM policy with only one allocation parameter, though I can do it via api or Opensearch dashboards. I get the following error:
Seems that the problem is in required field in ISM CRD
How can one reproduce the bug?
Try to create ISM CRD like that
What is the expected behavior?
I expect to create an ISM policy with only one parameter
What is your host/environment?
OS 2.14, operator 2.6.0
Do you have any additional context?
I noticed confusing information on os docs about allocation action It says that all parameters are required, though you can create an ISM policy with only one of them (include, exclude, required) I also noticed wrong description of crd fields there