Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LoadBootstrap (0.14 sec)

  1. pilot/cmd/pilot-agent/status/grpcready/probe.go

    func NewProbe(bootstrapPath string) ready.Prober {
    	return &probe{bootstrapPath: bootstrapPath}
    }
    
    func (p *probe) Check() error {
    	// TODO file watch?
    	if p.getBootstrap() == nil {
    		bootstrap, err := grpcxds.LoadBootstrap(p.bootstrapPath)
    		if err != nil {
    			return fmt.Errorf("failed loading %s: %v", p.bootstrapPath, err)
    		}
    		p.setBootstrap(bootstrap)
    	}
    	if bootstrap := p.getBootstrap(); bootstrap != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 28 16:58:31 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  2. pkg/istio-agent/grpcxds/grpc_bootstrap.go

    			cfg, ok := provider.Config.(FileWatcherCertProviderConfig)
    			if !ok {
    				return nil
    			}
    			return &cfg
    		}
    	}
    	return nil
    }
    
    // LoadBootstrap loads a Bootstrap from the given file path.
    func LoadBootstrap(file string) (*Bootstrap, error) {
    	data, err := os.ReadFile(file)
    	if err != nil {
    		return nil, err
    	}
    	b := &Bootstrap{}
    	if err := json.Unmarshal(data, b); err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. pkg/istio-agent/agent_test.go

    			a.Security.OutputKeyCertToDir = "/cert/path"
    			a.AgentConfig.GRPCBootstrapPath = bootstrapPath
    			a.envoyEnable = false
    			return a
    		})
    		generated, err := grpcxds.LoadBootstrap(bootstrapPath)
    		if err != nil {
    			t.Fatalf("could not read bootstrap config: %v", err)
    		}
    
    		// goldenfile determinism
    		for _, k := range []string{"PROV_CERT", "PROXY_CONFIG"} {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top