Skip to content

Commit 5cf8fdd

Browse files
authored
Merge pull request #570 from gianlucam76/matchingresources
EventReport: mark matchingResources with listType=atomic
2 parents 07e5938 + 979c4bd commit 5cf8fdd

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

api/v1beta1/eventreport_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type EventReportSpec struct {
7474
EventSourceName string `json:"eventSourceName"`
7575

7676
// MatchingResources contains a list of resources matching an EventSource
77+
// +listType=atomic
7778
// +optional
7879
MatchingResources []corev1.ObjectReference `json:"matchingResources,omitempty"`
7980

config/crd/bases/lib.projectsveltos.io_eventreports.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ spec:
113113
type: object
114114
x-kubernetes-map-type: atomic
115115
type: array
116+
x-kubernetes-list-type: atomic
116117
resources:
117118
description: |-
118119
If EventSource Spec.CollectResources is set to true, all matching resources

lib/crd/eventreports.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ spec:
131131
type: object
132132
x-kubernetes-map-type: atomic
133133
type: array
134+
x-kubernetes-list-type: atomic
134135
resources:
135136
description: |-
136137
If EventSource Spec.CollectResources is set to true, all matching resources

manifests/apiextensions.k8s.io_v1_customresourcedefinition_eventreports.lib.projectsveltos.io.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ spec:
112112
type: object
113113
x-kubernetes-map-type: atomic
114114
type: array
115+
x-kubernetes-list-type: atomic
115116
resources:
116117
description: |-
117118
If EventSource Spec.CollectResources is set to true, all matching resources

0 commit comments

Comments
 (0)