@@ -432,20 +432,6 @@ func WaitForPullSecretPresentOnInstanceDisk(ctx context.Context, sshRunner *ssh.
432432 return errors .Retry (ctx , 7 * time .Minute , pullSecretPresentFunc , 2 * time .Second )
433433}
434434
435- func WaitForRequestHeaderClientCaFile (ctx context.Context , sshRunner * ssh.Runner ) error {
436- lookupRequestHeaderClientCa := func () error {
437- expired , err := checkCertValidity (sshRunner , AggregatorClientCert )
438- if err != nil {
439- return fmt .Errorf ("Failed to the expiry date: %v" , err )
440- }
441- if expired {
442- return & errors.RetriableError {Err : fmt .Errorf ("certificate still expired" )}
443- }
444- return nil
445- }
446- return errors .Retry (ctx , 8 * time .Minute , lookupRequestHeaderClientCa , 2 * time .Second )
447- }
448-
449435func WaitForAPIServer (ctx context.Context , ocConfig oc.Config ) error {
450436 logging .Info ("Waiting for kube-apiserver availability... [takes around 2min]" )
451437 waitForAPIServer := func () error {
@@ -460,23 +446,6 @@ func WaitForAPIServer(ctx context.Context, ocConfig oc.Config) error {
460446 return errors .Retry (ctx , 4 * time .Minute , waitForAPIServer , time .Second )
461447}
462448
463- func DeleteOpenshiftAPIServerPods (ctx context.Context , ocConfig oc.Config ) error {
464- if err := WaitForOpenshiftResource (ctx , ocConfig , "pod" ); err != nil {
465- return err
466- }
467-
468- deleteOpenshiftAPIServerPods := func () error {
469- cmdArgs := []string {"delete" , "pod" , "--all" , "--force" , "-n" , "openshift-apiserver" }
470- _ , stderr , err := ocConfig .WithFailFast ().RunOcCommand (cmdArgs ... )
471- if err != nil {
472- return & errors.RetriableError {Err : fmt .Errorf ("Failed to delete pod from openshift-apiserver namespace %v: %s" , err , stderr )}
473- }
474- return nil
475- }
476-
477- return errors .Retry (ctx , 60 * time .Second , deleteOpenshiftAPIServerPods , time .Second )
478- }
479-
480449func CheckProxySettingsForOperator (ocConfig oc.Config , proxy * httpproxy.ProxyConfig , deployment , namespace string ) (bool , error ) {
481450 if ! proxy .IsEnabled () {
482451 logging .Debugf ("No proxy in use" )
0 commit comments