echo >&2; echo >&2 "warning: current architecture ($dpkgArch) does not have a corresponding Go binary release; will be building from source"; echo >&2 ;; \
// UsingExternalCA determines whether the user is relying on an external CA. We currently implicitly determine this is the case
// UsingExternalCA determines whether the user is relying on an external CA. We currently implicitly determine this is the case
// when both the CA Cert and the front proxy CA Cert are present but the CA Key and front proxy CA Key are not.
// when the CA Cert is present but the CA Key is not.
// This allows us to, e.g., skip generating certs or not start the csr signing controller.
// This allows us to, e.g., skip generating certs or not start the csr signing controller.
// In case we are using an external front-proxy CA, the function validates the certificates signed by front-proxy CA that should be provided by the user.
iferr:=validateSignedCert(certKeyLocation{cfg.CertificatesDir,kubeadmconstants.CACertAndKeyBaseName,kubeadmconstants.APIServerKubeletClientCertAndKeyBaseName,"API server kubelet client"});err!=nil{
iferr:=validateSignedCert(certKeyLocation{cfg.CertificatesDir,kubeadmconstants.CACertAndKeyBaseName,kubeadmconstants.APIServerKubeletClientCertAndKeyBaseName,"API server kubelet client"});err!=nil{
// UsingExternalFrontProxyCA determines whether the user is relying on an external front-proxy CA. We currently implicitly determine this is the case
// when the front proxy CA Cert is present but the front proxy CA Key is not.
// In case we are using an external front-proxy CA, the function validates the certificates signed by front-proxy CA that should be provided by the user.
fmt.Printf("[download-certs] downloading the certificates in Secret %q in the %q Namespace\n",kubeadmconstants.KubeadmCertsSecret,metav1.NamespaceSystem)
fmt.Printf("[download-certs] Downloading the certificates in Secret %q in the %q Namespace\n",kubeadmconstants.KubeadmCertsSecret,metav1.NamespaceSystem)
Testname: Pod http liveness probe, redirected to a local address
Description: A Pod is created with liveness probe on http endpoint /redirect?loc=healthz. The http handler on the /redirect will redirect to the /healthz endpoint, which will return a http error after 10 seconds since the Pod is started. This MUST result in liveness check failure. The Pod MUST now be killed and restarted incrementing restart count to 1.
*/
It("should be restarted with a local redirect http liveness probe",func(){
Testname: Pod http liveness probe, redirected to a non-local address
Description: A Pod is created with liveness probe on http endpoint /redirect with a redirect to http://0.0.0.0/. The http handler on the /redirect should not follow the redirect, but instead treat it as a success and generate an event.
*/
It("should *not* be restarted with a non-local redirect http liveness probe",func(){