File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
134136func 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 {
You can’t perform that action at this time.
0 commit comments