-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use var APIServerDefaultArgs #841
Comments
@kfyharukz I think the kubebuilder book covers this here including here in case url's change in the future.
customApiServerFlags := []string{
"--secure-port=6884",
"--admission-control=MutatingAdmissionWebhook",
}
apiServerFlags := append([]string(nil), envtest.DefaultKubeAPIServerFlags...)
apiServerFlags = append(apiServerFlags, customApiServerFlags...)
testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
KubeAPIServerFlags: apiServerFlags,
} |
You are right. |
/assign |
Description
I tried to run
envtest
's API Server with appending extra API server flags to default API server flags.However,
DefaultKubeAPIServerFlags
inpkg/envtest/server.go
disappeared andAPIServerDefaultArgs
insigs.k8s.io/controller-runtime/pkg/internal/testing/integration
is cannot imported because it is an internal package.https://github.com/kubernetes-sigs/controller-runtime/pull/763/files
How can I resolve it? or should
APIServerDefaultArgs
be exposed?Environment
controller-runtime v0.5.0
The text was updated successfully, but these errors were encountered: