Skip to content

Commit

Permalink
chore: remove vacuous transformation "Eager"
Browse files Browse the repository at this point in the history
The transformation from "" -> "Eager" is confusing. Removing it since both trigger "Eager" evaluation.

Signed-off-by: Kumar Mallikarjuna <[email protected]>
  • Loading branch information
kumar-mallikarjuna authored and porridge committed Jul 5, 2024
1 parent 340e611 commit 0a66a34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/test/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -558,9 +558,7 @@ func (s *Step) LoadYAML(file string) error {
}

switch s.Step.KubeconfigLoading {
case "":
s.KubeconfigLoading = harness.KubeconfigLoadingEager
case harness.KubeconfigLoadingEager, harness.KubeconfigLoadingLazy:
case "", harness.KubeconfigLoadingEager, harness.KubeconfigLoadingLazy:
s.KubeconfigLoading = s.Step.KubeconfigLoading
default:
return fmt.Errorf("attribute 'kubeconfigLoading' has invalid value %q", s.Step.KubeconfigLoading)
Expand Down

0 comments on commit 0a66a34

Please sign in to comment.