diff --git a/kubernetes/metadata/config.go b/kubernetes/metadata/config.go index 2fcbf9998..8ddce4eb6 100644 --- a/kubernetes/metadata/config.go +++ b/kubernetes/metadata/config.go @@ -63,7 +63,7 @@ func GetDefaultResourceMetadataConfig() *AddResourceMetadataConfig { return &AddResourceMetadataConfig{ Node: metaCfg, Namespace: metaCfg, - Deployment: true, - CronJob: true, + Deployment: false, + CronJob: false, } } diff --git a/kubernetes/metadata/pod_test.go b/kubernetes/metadata/pod_test.go index f5ac59b19..4877b7e0a 100644 --- a/kubernetes/metadata/pod_test.go +++ b/kubernetes/metadata/pod_test.go @@ -345,9 +345,10 @@ func TestPod_Generate(t *testing.T) { "ip": "127.0.0.5", }, "namespace": defaultNs, - "deployment": mapstr.M{ - "name": "nginx-deployment", - }, + // We comment below block because add_resource_metadata.deployment: false by default + // "deployment": mapstr.M{ + // "name": "nginx-deployment", + // }, "replicaset": mapstr.M{ "name": "nginx-rs", }, @@ -403,9 +404,10 @@ func TestPod_Generate(t *testing.T) { "ip": "127.0.0.5", }, "namespace": defaultNs, - "deployment": mapstr.M{ - "name": "nginx-deployment", - }, + // We comment below block because add_resource_metadata.deployment: false by default + // "deployment": mapstr.M{ + // "name": "nginx-deployment", + // }, "replicaset": mapstr.M{ "name": "nginx-rs", },