Skip to content

Commit b38979d

Browse files
committed
🐛 expose DefaultKubeAPIServerFlags in envtest
Export DefaultKubeAPIServerFlags in envtest package to make it possible for users to modify flags. Reference https://book.kubebuilder.io/reference/testing/envtest.html#flags
1 parent d0de78d commit b38979d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/envtest/server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,3 +307,7 @@ func (te *Environment) useExistingCluster() bool {
307307
}
308308
return *te.UseExistingCluster
309309
}
310+
311+
// DefaultKubeAPIServerFlags exposes the default args for the APIServer so that
312+
// you can use those to append your own additional arguments.
313+
var DefaultKubeAPIServerFlags = integration.APIServerDefaultArgs

0 commit comments

Comments
 (0)