From a563f1477b107a6c9263992e3a5f96fb04733c9e Mon Sep 17 00:00:00 2001 From: Xiao Liu <46879761+liangzai006@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:47:41 +0800 Subject: [PATCH] fix filechange inspect error --- deploy/rule/kubeeye_v1alpha2_services_connect.yaml | 2 +- pkg/inspect/file_change_Inspect.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/rule/kubeeye_v1alpha2_services_connect.yaml b/deploy/rule/kubeeye_v1alpha2_services_connect.yaml index 167dca10..7f6ba2cb 100644 --- a/deploy/rule/kubeeye_v1alpha2_services_connect.yaml +++ b/deploy/rule/kubeeye_v1alpha2_services_connect.yaml @@ -4,6 +4,6 @@ metadata: name: services-connect spec: serviceConnect: - - workSpaces: system-workspace + - workspace: system-workspace level: warning diff --git a/pkg/inspect/file_change_Inspect.go b/pkg/inspect/file_change_Inspect.go index 6b706372..ccd6fddc 100644 --- a/pkg/inspect/file_change_Inspect.go +++ b/pkg/inspect/file_change_Inspect.go @@ -75,7 +75,7 @@ func (f *fileChangeInspect) RunInspect(ctx context.Context, rules []kubeeyev1alp continue } } - baseContent := baseConfig.BinaryData[constant.FileChange] + baseContent := baseConfig.BinaryData[constant.Data] diffResult := diffString(string(baseContent), string(baseFile))