Closed
Description
There is a kubebuilder-tools-1.20.2 since kubernetes-sigs/kubebuilder@3147a65, but as pointed out in kubernetes-sigs/kubebuilder#1902 this version has stronger opinions about --insecure
flags. See kubernetes/kubernetes@cfc2b33.
When I try to use controller-runtime@v0.8.1 with kubebuilder-tools-1.20.2, the control plane does not start:
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Error: invalid port value 56497: only zero is allowed
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Error: invalid port value 56497: only zero is allowed
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Error: invalid port value 56497: only zero is allowed
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Error: invalid port value 56497: only zero is allowed
Flag --insecure-port has been deprecated, This flag has no effect now and will be removed in v1.24.
Flag --insecure-bind-address has been deprecated, This flag has no effect now and will be removed in v1.24.
Error: invalid port value 56497: only zero is allowed
test.go:37: failed to start the controlplane. retried 5 times: timeout waiting for process kube-apiserver to start