fix: use custom cluster secret informer (#25534)

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
Co-authored-by: rumstead <37445536+rumstead@users.noreply.github.com>
This commit is contained in:
Blake Pettersson
2025-12-10 16:08:03 +01:00
committed by GitHub
parent 8bebf65bbe
commit e932dc2575
9 changed files with 1131 additions and 47 deletions

View File

@@ -2269,6 +2269,11 @@ type Cluster struct {
Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,12,opt,name=labels"`
// Annotations for cluster secret metadata
Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,13,opt,name=annotations"`
// The embedded metav1.ObjectMeta field is purely here to please the informer when converting from a v1.Secret to a Cluster.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"-,omitempty"`
}
func (c *Cluster) Sanitized() *Cluster {

View File

@@ -1668,6 +1668,7 @@ func (in *Cluster) DeepCopyInto(out *Cluster) {
(*out)[key] = val
}
}
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
return
}