Skip to content

Commit 83d735c

Browse files
committed
more logging
1 parent 166d01f commit 83d735c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/k8s/e2e/common/test_common.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ func GetTestEnvConfig(t *testing.T) *environment.Config {
4242
workloadPodLabels, err := environment.GetRequiredChainLinkWorkloadAndPodLabels(product, testType)
4343
require.NoError(t, err, "Error creating required chain.link labels for workloads and pods")
4444

45+
l := logging.GetTestLogger(t)
46+
l.Info().
47+
Strs("NamespaceLabels", nsLabels).
48+
Interface("WorkloadPodLabels", workloadPodLabels).
49+
Msg("TestEnvConfig")
50+
4551
return &environment.Config{
4652
NamespacePrefix: TestEnvType,
4753
Test: t,

lib/k8s/environment/environment.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,9 @@ func (m *Environment) AddHelm(chart ConnectedChart) *Environment {
682682
if err != nil {
683683
m.err = err
684684
}
685+
686+
log.Info().Str("WorkloadLabels", fmt.Sprintf("%v", workloadLabels)).Msg("WorkloadLabels")
687+
685688
addRequiredChainLinkLabelsToWorkloads(h, workloadLabels)
686689
addDefaultPodAnnotationsAndLabels(h, markNotSafeToEvict(m.Cfg.PreventPodEviction, nil), podLabels)
687690
m.Charts = append(m.Charts, chart)

0 commit comments

Comments
 (0)