Skip to content

Use map list type for status bindings #7790

@simonpasquier

Description

@simonpasquier

I suspect that if we set the proper markers on , we could apply the updated binding instead of passing the full list of bindings.

type ConfigResourceStatus struct {
    // The list of workload resources (Prometheus or PrometheusAgent) which select the configuration resource.
    // +listType=map
    // +listMapKey=group
    // +listMapKey=resource
    // +listMapKey=name
    // +listMapKey=namespace
    // +optional
    Bindings []WorkloadBinding `json:"bindings,omitempty"` 
}

Originally posted by @simonpasquier in #7767 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions