Closed kumar-mallikarjuna closed 3 months ago
Hi @porridge , thanks for the quick review. I've incorporated your comments. I found it a little difficult to add tests for this. For now, I've updated the PR description with the outputs comparing the failures to load lazily on main
and with these changes. Can you please take a look again?
I see the CRDs are in crds/
. But I'm unable to re-generate them with make generate
. Is this expected?
I don't see the failed to lazy-load kubeconfig string in the ouput you pasted? Was the code changed after you copied? Can you please update them?
Apologies, I seem to have mixed up the outputs. I've updated them now.
As for the CRDs, they seem to have gone stale. I didn't even know they were there 😅
Oh, okay.
If you could file a bug to remind us to fix generation and check their freshness in CI, that would be great.
Also please take a look at the failing checks.
What this PR does / why we need it: This PR adds an attribute
LazyLoadKubeconfig
to theTestStep
type which can be used to configure whether theKubeconfig
specified in theTestStep
needs to be lazy-loaded, i.e., if theKubeconfig
doesn't need to be loaded at the start of theTestCase
eval.Fixes #539
Tests
eager/loading/00-teststep.yaml
:lazy/loading/00-teststep.yaml
:Output on
main
:Output after these changes:
Lazy-loading when the Kubeconfig exists and is same as the global Kubeconfig: