mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 03:38:15 +00:00 
			
		
		
		
	removes unused libraries
This commit is contained in:
		@@ -18,7 +18,6 @@ package utils
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"context"
 | 
						"context"
 | 
				
			||||||
	"errors"
 | 
					 | 
				
			||||||
	"fmt"
 | 
						"fmt"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ import (
 | 
				
			|||||||
	"crypto/x509"
 | 
						"crypto/x509"
 | 
				
			||||||
	"crypto/x509/pkix"
 | 
						"crypto/x509/pkix"
 | 
				
			||||||
	"encoding/pem"
 | 
						"encoding/pem"
 | 
				
			||||||
	"errors"
 | 
						"fmt"
 | 
				
			||||||
	"math"
 | 
						"math"
 | 
				
			||||||
	"math/big"
 | 
						"math/big"
 | 
				
			||||||
	"time"
 | 
						"time"
 | 
				
			||||||
@@ -58,10 +58,10 @@ func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certifi
 | 
				
			|||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if len(cfg.CommonName) == 0 {
 | 
						if len(cfg.CommonName) == 0 {
 | 
				
			||||||
		return nil, errors.New("must specify a CommonName")
 | 
							return nil, fmt.Errorf("must specify a CommonName")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if len(cfg.Usages) == 0 {
 | 
						if len(cfg.Usages) == 0 {
 | 
				
			||||||
		return nil, errors.New("must specify at least one ExtKeyUsage")
 | 
							return nil, fmt.Errorf("must specify at least one ExtKeyUsage")
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	certTmpl := x509.Certificate{
 | 
						certTmpl := x509.Certificate{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user