This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.
introduce MatchIntFields to match fields having int values #112
Open
Description
Problem Statement: When MatchFields
is applied against following resource, it results into error.
&unstructured.Unstructured{
Object: map[string]interface{}{
"kind": "StatefulSet",
"spec": map[string]interface{}{
"replicas": 3,
},
},
},
This is the error:
.spec.replicas accessor error: 3 is of the type int, expected string
Field expressions match for key spec.replicas failed
openebs.io/metac/controller/common/selector.(*Evaluation).isFieldMatch
Solution: Introduce MatchIntFields
that caters to nested fields with int as their value.