Renew the certificate embedded in the kubeconfig file %s.
Kubeconfig attributes and certificate extra attributes such as SANs will be based on the existing kubeconfig/certificates, there is no need to resupply them.
`)
allLongDesc=normalizer.LongDesc(`
allLongDesc=normalizer.LongDesc(`
Renew all known certificates necessary to run the control plane. Renewals are run unconditionally, regardless
Renew all known certificates necessary to run the control plane. Renewals are run unconditionally, regardless
of expiration date. Renewals can also be run individually for more control.
of expiration date. Renewals can also be run individually for more control.
t.Fatalf("couldn't load created certificate: %v",err)
t.Fatalf("couldn't load created certificate: %v",err)
}
}
// check the new certificate is changed, has an newer expiration date, but preserve all the
// other attributes
ifnewCert.SerialNumber.Cmp(cert.SerialNumber)==0{
ifnewCert.SerialNumber.Cmp(cert.SerialNumber)==0{
t.Fatal("expected new certificate, but renewed certificate has same serial number")
t.Fatal("expected new certificate, but renewed certificate has same serial number")
}
}
if!newCert.NotAfter.After(cert.NotAfter){
t.Fatalf("expected new certificate with updated expiration, but renewed certificate has the same serial number: saw %s, expected greather than %s",newCert.NotAfter,cert.NotAfter)
t.Fatalf("couldn't load created certificate: %v",err)
}
// check the new certificate is changed, has an newer expiration date, but preserve all the
// other attributes
newCert:=newCerts[0]
ifnewCert.SerialNumber.Cmp(cert.SerialNumber)==0{
t.Fatal("expected new certificate, but renewed certificate has same serial number")
}
if!newCert.NotAfter.After(cert.NotAfter){
t.Fatalf("expected new certificate with updated expiration, but renewed certificate has same serial number: saw %s, expected greather than %s",newCert.NotAfter,cert.NotAfter)
description:"any cert renew error should result in a rollback and an abort; even though this is the last component (kube-apiserver and kube-controller-manager healthy)",
description:"any cert renew error should result in a rollback and an abort; even though this is admin.conf (kube-apiserver and kube-controller-manager and kube-scheduler healthy)",