Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsAzure (0.09 sec)

  1. pkg/bootstrap/platform/azure.go

    	APIVersion      string
    	prefix          string
    	computeMetadata map[string]any
    	networkMetadata map[string]any
    }
    
    // IsAzure returns whether or not the platform for bootstrapping is Azure
    // Checks the system vendor file (similar to https://github.com/banzaicloud/satellite/blob/master/providers/azure.go)
    func IsAzure() bool {
    	sysVendor, err := os.ReadFile(SysVendorPath)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. pkg/bootstrap/platform/discovery.go

    			plat <- NewGCP()
    		}
    		wg.Done()
    	}()
    
    	go func() {
    		if IsAWS(ipv6) {
    			log.Info("platform detected is AWS")
    			plat <- NewAWS(ipv6)
    		}
    		wg.Done()
    	}()
    
    	go func() {
    		if IsAzure() {
    			log.Info("platform detected is Azure")
    			plat <- NewAzure()
    		}
    		wg.Done()
    	}()
    
    	go func() {
    		wg.Wait()
    		close(done)
    	}()
    
    	timer := time.NewTimer(timeout)
    	defer timer.Stop()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.6K bytes
    - Viewed (0)
Back to top