File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ func (f *EventFilter) Matches(event *v1.Event) bool {
6767
6868func (f * EventFilter ) String () string {
6969 var elements []string
70+ if f .EventReason != nil {
71+ elements = append (elements , fmt .Sprintf ("eventReason=%s" , f .EventReason .String ()))
72+ }
73+ if f .EventType != nil {
74+ elements = append (elements , fmt .Sprintf ("eventType=%s" , f .EventType .String ()))
75+ }
7076 if f .ObjectNamespace != nil {
7177 elements = append (elements , fmt .Sprintf ("objectNamespace=%s" , f .ObjectNamespace .String ()))
7278 }
@@ -76,12 +82,6 @@ func (f *EventFilter) String() string {
7682 if f .ObjectName != nil {
7783 elements = append (elements , fmt .Sprintf ("objectName=%s" , f .ObjectName .String ()))
7884 }
79- if f .EventType != nil {
80- elements = append (elements , fmt .Sprintf ("eventType=%s" , f .EventType .String ()))
81- }
82- if f .EventReason != nil {
83- elements = append (elements , fmt .Sprintf ("eventReason=%s" , f .EventReason .String ()))
84- }
8585
8686 return strings .Join (elements , "," )
8787}
You can’t perform that action at this time.
0 commit comments