Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 73 for os (0.14 sec)

  1. common/scripts/setup_env.sh

        exit 1
    fi
    
    LOCAL_OS=$(uname)
    
    # Pass environment set target operating-system to build system
    if [[ ${TARGET_OS} ]]; then
        # Target explicitly set
        :
    elif [[ $LOCAL_OS == Linux ]]; then
        TARGET_OS=linux
        readlink_flags="-f"
    elif [[ $LOCAL_OS == Darwin ]]; then
        TARGET_OS=darwin
        readlink_flags=""
    else
        echo "This system's OS, $LOCAL_OS, isn't supported"
        exit 1
    fi
    
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 19:52:28 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  2. operator/cmd/mesh.go

    package main
    
    import (
    	"os"
    
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/operator/cmd/mesh"
    	binversion "istio.io/istio/operator/version"
    	"istio.io/istio/pkg/version"
    )
    
    func main() {
    	version.Info.Version = binversion.OperatorVersionString
    	rootCmd := mesh.GetRootCmd(cli.NewCLIContext(nil), os.Args[1:])
    	if err := rootCmd.Execute(); err != nil {
    		os.Exit(1)
    	}
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Aug 29 14:15:33 GMT 2023
    - 963 bytes
    - Viewed (0)
  3. istioctl/pkg/writer/compare/comparator_test.go

    // limitations under the License.
    
    package compare
    
    import (
    	"bytes"
    	"os"
    	"testing"
    )
    
    // TestComparatorMatchingConfigs tests the scenario where Istiod and Envoy configurations match
    func TestComparatorMatchingSameConfigs(t *testing.T) {
    	cfg, err := os.ReadFile("testdata/configdump.json")
    	if err != nil {
    		t.Fatalf("Failed to read test data: %v", err)
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  4. cni/pkg/install/kubeconfig.go

    	} else {
    		caFile := model.GetOrDefault(cfg.KubeCAFile, constants.ServiceAccountPath+"/ca.crt")
    		caContents, err := os.ReadFile(caFile)
    		if err != nil {
    			return kubeconfig{}, err
    		}
    		cluster.CertificateAuthorityData = caContents
    	}
    
    	token, err := os.ReadFile(constants.ServiceAccountPath + "/token")
    	if err != nil {
    		return kubeconfig{}, err
    	}
    
    	const contextName = "istio-cni-context"
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Aug 11 01:19:03 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/secret_test.go

    // limitations under the License.
    
    package configdump
    
    import (
    	"bytes"
    	"io"
    	"os"
    	"testing"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestSDSWriter_ValidCert(t *testing.T) {
    	configDumpFile, err := os.Open("testdata/secret/config_dump.json")
    	if err != nil {
    		t.Errorf("error opening test data file: %v", err)
    	}
    	defer configDumpFile.Close()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. istioctl/cmd/istioctl/istioctl_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package main
    
    import (
    	"os"
    	"testing"
    )
    
    func TestIstioctlMain(_ *testing.T) {
    	os.Args = []string{"istioctl", "version", "--remote=false"}
    	main()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 738 bytes
    - Viewed (0)
  7. cni/pkg/cmd/root.go

    		SkipTLSVerify:      viper.GetBool(constants.SkipTLSVerify),
    		K8sServiceProtocol: os.Getenv("KUBERNETES_SERVICE_PROTOCOL"),
    		K8sServiceHost:     os.Getenv("KUBERNETES_SERVICE_HOST"),
    		K8sServicePort:     os.Getenv("KUBERNETES_SERVICE_PORT"),
    		K8sNodeName:        os.Getenv("KUBERNETES_NODE_NAME"),
    
    		CNIBinSourceDir:   constants.CNIBinDir,
    		CNIBinTargetDirs:  []string{constants.HostCNIBinDir},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. istioctl/pkg/version/version.go

    		if flag.Name == "short" {
    			err := flag.Value.Set("true")
    			if err != nil {
    				fmt.Fprintf(os.Stdout, "set flag %q as true failed due to error %v", flag.Name, err)
    			}
    		}
    		if flag.Name == "remote" {
    			err := flag.Value.Set("true")
    			if err != nil {
    				fmt.Fprintf(os.Stdout, "set flag %q as true failed due to error %v", flag.Name, err)
    			}
    		}
    	})
    	return versionCmd
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. cni/pkg/install/binaries.go

    package install
    
    import (
    	"os"
    	"path/filepath"
    
    	"istio.io/istio/pkg/file"
    	"istio.io/istio/pkg/util/sets"
    )
    
    // Copies/mirrors any files present in a single source dir to N number of target dirs
    // and returns a set of the filenames copied.
    func copyBinaries(srcDir string, targetDirs []string) (sets.String, error) {
    	copiedFilenames := sets.String{}
    	srcFiles, err := os.ReadDir(srcDir)
    	if err != nil {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Dec 11 19:10:54 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. istioctl/cmd/istioctl/main.go

    package main
    
    import (
    	"fmt"
    	"os"
    
    	// import all known client auth plugins
    	_ "k8s.io/client-go/plugin/pkg/client/auth"
    
    	"istio.io/istio/istioctl/cmd"
    	"istio.io/istio/pkg/log"
    )
    
    func main() {
    	if err := cmd.ConfigAndEnvProcessing(); err != nil {
    		fmt.Fprintf(os.Stderr, "Could not initialize: %v\n", err)
    		exitCode := cmd.GetExitCode(err)
    		os.Exit(exitCode)
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue May 23 17:08:31 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top