Skip to content

Commit

Permalink
Merge pull request #71 from gianlucam76/markers
Browse files Browse the repository at this point in the history
Fix Notifications field
  • Loading branch information
gianlucam76 authored Jun 2, 2024
2 parents 9d1b3f6 + 805a61c commit 20eb873
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1alpha1/cleaner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ type CleanerSpec struct {
// Notification is a list of source of events to evaluate.
// +patchMergeKey=name
// +patchStrategy=merge,retainKeys
// +listType=map
// +listMapKey=name
// +optional
Notifications []Notification `json:"notifications,omitempty"`
Notifications []Notification `json:"notifications,omitempty" patchStrategy:"merge" patchMergeKey:"name"`

// StoreResources will store full resources in this directory.
// Must be a volume where Cleaner can dump all matching resources.
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/apps.projectsveltos.io_cleaners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ spec:
- type
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
resourcePolicySet:
description: ResourcePolicySet identifies a group of resources
properties:
Expand Down
3 changes: 3 additions & 0 deletions manifest/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ spec:
- type
type: object
type: array
x-kubernetes-list-map-keys:
- name
x-kubernetes-list-type: map
resourcePolicySet:
description: ResourcePolicySet identifies a group of resources
properties:
Expand Down

0 comments on commit 20eb873

Please sign in to comment.