Skip to content
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
@AmitKumarDas

Description

@AmitKumarDas

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions