Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getCRAndNamespaceFromFile (0.36 sec)

  1. operator/cmd/mesh/shared.go

    	}
    	if revision != "" && revision != "default" {
    		flags = append(flags, fmt.Sprintf("revision=%s", revision))
    	}
    	return flags
    }
    
    // getCRAndNamespaceFromFile returns the CR name and istio namespace from a file containing an IstioOperator CR.
    func getCRAndNamespaceFromFile(filePath string, l clog.Logger) (customResource string, istioNamespace string, err error) {
    	if filePath == "" {
    		return "", "", nil
    	}
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  2. operator/cmd/mesh/operator-init.go

    	opts := &applyOptions{
    		DryRun: args.DryRun,
    	}
    
    	// If CR was passed, we must create a namespace for it and install CR into it.
    	customResource, istioNamespace, err := getCRAndNamespaceFromFile(oiArgs.inFilename, l)
    	if err != nil {
    		l.LogAndFatal(err)
    	}
    	var iop *iopv1alpha1.IstioOperator
    	if oiArgs.common.revision != "" {
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
Back to top