Skip to content

Commit 6115e48

Browse files
committed
Add SkipRequiredChainLinkLabelsValidation
1 parent 81af956 commit 6115e48

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

lib/k8s/e2e/common/test_common.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@ func GetTestEnvConfig(t *testing.T) *environment.Config {
4949
Msg("TestEnvConfig")
5050

5151
return &environment.Config{
52-
NamespacePrefix: TestEnvType,
53-
Test: t,
54-
Labels: nsLabels,
55-
WorkloadLabels: workloadPodLabels,
56-
PodLabels: workloadPodLabels,
52+
NamespacePrefix: TestEnvType,
53+
Test: t,
54+
Labels: nsLabels,
55+
WorkloadLabels: workloadPodLabels,
56+
PodLabels: workloadPodLabels,
57+
SkipRequiredChainLinkLabelsValidation: true,
5758
}
5859
}
5960

lib/k8s/environment/environment.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ type Config struct {
129129
detachRunner bool
130130
// fundReturnFailed the status of a fund return
131131
fundReturnFailed bool
132+
// Skip validating that all required chain.link labels are present in the final manifest
133+
SkipRequiredChainLinkLabelsValidation bool
132134
}
133135

134136
func defaultEnvConfig() *Config {
@@ -865,10 +867,12 @@ func (m *Environment) RunCustomReadyConditions(customCheck *client.ReadyCheckDat
865867
}
866868
log.Debug().Bool("ManifestUpdate", m.Cfg.SkipManifestUpdate).Msg("Update mode")
867869

868-
// make sure all required chain.link labels are present in the final manifest
869-
// if err := m.validateRequiredChainLinkLabels(); err != nil {
870-
// return err
871-
// }
870+
if !m.Cfg.SkipRequiredChainLinkLabelsValidation {
871+
// make sure all required chain.link labels are present in the final manifest
872+
if err := m.validateRequiredChainLinkLabels(); err != nil {
873+
return err
874+
}
875+
}
872876

873877
if !m.Cfg.SkipManifestUpdate || m.Cfg.JobImage != "" {
874878
if err := m.DeployCustomReadyConditions(customCheck, podCount); err != nil {

0 commit comments

Comments
 (0)