File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import (
40
40
41
41
"github.com/elastic/elastic-agent-libs/kibana"
42
42
"github.com/elastic/elastic-agent-libs/testing/estools"
43
+ k8sDiagnostics "github.com/elastic/elastic-agent/internal/pkg/diagnostics"
43
44
aclient "github.com/elastic/elastic-agent/pkg/control/v2/client"
44
45
atesting "github.com/elastic/elastic-agent/pkg/testing"
45
46
"github.com/elastic/elastic-agent/pkg/testing/define"
@@ -577,15 +578,15 @@ func checkK8sDiagnosticsArchive(archivePath string, agentPodName string) error {
577
578
err error
578
579
}
579
580
580
- podYamlPath := fmt .Sprintf ("k8s/pod-%s.yaml" , agentPodName )
581
+ podYamlPath := filepath . Join ( k8sDiagnostics . K8sSubdir , fmt .Sprintf (k8sDiagnostics . PodK8sManifestFormat , agentPodName ) )
581
582
validators := map [string ]* zipFileValidator {
582
583
podYamlPath : {
583
584
err : fmt .Errorf ("%s is not present in diagnostics" , podYamlPath ),
584
585
validate : func (f * zip.File , validator * zipFileValidator ) {
585
586
validator .err = nil
586
587
},
587
588
},
588
- "errors.txt" : {
589
+ k8sDiagnostics . K8sDiagnosticsErrorFile : {
589
590
validate : func (f * zip.File , validator * zipFileValidator ) {
590
591
validatorErr := errors .New ("errors.txt file should not be present" )
591
592
reader , err := f .Open ()
You can’t perform that action at this time.
0 commit comments