Skip to content

Commit 4899e5d

Browse files
author
felix.phipps
committed
initial commit
1 parent a9933b9 commit 4899e5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/agent/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ func Run(cmd *cobra.Command, args []string) (returnErr error) {
196196

197197
dynDg, isDynamicGatherer := newDg.(*k8sdynamic.DataGathererDynamic)
198198
if isDynamicGatherer {
199-
dynDg.ExcludeAnnotKeys = config.ExcludeAnnotationKeysRegex
200-
dynDg.ExcludeLabelKeys = config.ExcludeLabelKeysRegex
199+
dynDg.ExcludeAnnotKeys = append(dynDg.ExcludeAnnotKeys, config.ExcludeAnnotationKeysRegex...)
200+
dynDg.ExcludeLabelKeys = append(dynDg.ExcludeLabelKeys, config.ExcludeLabelKeysRegex...)
201201

202202
gvr := dynDg.GVR()
203203

0 commit comments

Comments
 (0)