Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for kubeconfig (0.17 sec)

  1. cni/pkg/install/install_test.go

    			// Create existing binary files
    			if err := os.WriteFile(filepath.Join(cniBinDir, "istio-cni"), []byte{1, 2, 3}, 0o755); err != nil {
    				t.Fatal(err)
    			}
    
    			// Create kubeconfig
    			kubeConfigFilePath := filepath.Join(cniNetDir, "kubeconfig")
    			if err := os.WriteFile(kubeConfigFilePath, []byte{1, 2, 3}, 0o755); err != nil {
    				t.Fatal(err)
    			}
    
    			cfg := &config.InstallConfig{
    				MountedCNINetDir: cniNetDir,
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  2. cni/test/testdata/pre/noname_calico.conflist

          "log_level": "info",
          "mtu": 1500,
          "ipam": {
            "type": "calico-ipam"
          },
          "policy": {
            "type": "k8s"
          },
          "kubernetes": {
            "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
          }
        },
        {
          "type": "portmap",
          "snat": true,
          "capabilities": {
            "portMappings": true
          }
        }
      ]
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Nov 19 23:19:19 GMT 2020
    - 492 bytes
    - Viewed (0)
  3. cni/pkg/install/install.go

    	if err != nil {
    		cniInstalls.With(resultLabel.Value(resultCopyBinariesFailure)).Increment()
    		return copiedFiles, fmt.Errorf("copy binaries: %v", err)
    	}
    
    	// Install kubeconfig (if needed) - we write/update this in the shared node CNI netdir,
    	// which may be watched by other CNIs, and so we don't want to trigger writes to this file
    	// unless it's missing or the contents are not what we expect.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  4. manifests/charts/istio-control/istio-discovery/templates/deployment.yaml

          # Optional: user-generated root
          - name: cacerts
            secret:
              secretName: cacerts
              optional: true
          - name: istio-kubeconfig
            secret:
              secretName: istio-kubeconfig
              optional: true
          # Optional: istio-csr dns pilot certs
          - name: istio-csr-dns-cert
            secret:
              secretName: istiod-tls
              optional: true
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri May 03 19:29:42 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. cni/pkg/install/monitoring.go

    var (
    	resultLabel                   = monitoring.CreateLabel("result")
    	resultSuccess                 = "SUCCESS"
    	resultCopyBinariesFailure     = "COPY_BINARIES_FAILURE"
    	resultCreateKubeConfigFailure = "CREATE_KUBECONFIG_FAILURE"
    	resultCreateCNIConfigFailure  = "CREATE_CNI_CONFIG_FAILURE"
    
    	cniInstalls = monitoring.NewSum(
    		"istio_cni_installs_total",
    		"Total number of CNI plugins installed by the Istio CNI installer",
    	)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jul 17 20:25:52 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  6. cni/pkg/repair/repair.go

    	if err != nil {
    		repairLog.Fatalf("Fatal error constructing repair controller: %+v", err)
    	}
    	go rc.Run(ctx.Done())
    	client.RunAndWait(ctx.Done())
    }
    
    // Set up Kubernetes client using kubeconfig (or in-cluster config if no file provided)
    func clientSetup() (kube.Client, error) {
    	config, err := kube.DefaultRestConfig("", "")
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue May 23 17:08:31 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  7. cni/pkg/cmd/root.go

    	registerStringParameter(constants.KubeconfigFilename, "ZZZ-istio-cni-kubeconfig",
    		"Name of the kubeconfig file which CNI plugin will use when interacting with API server")
    	registerIntegerParameter(constants.KubeconfigMode, constants.DefaultKubeconfigMode, "File mode of the kubeconfig file")
    	registerStringParameter(constants.KubeCAFile, "", "CA file for kubeconfig. Defaults to the same as install-cni pod")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. istioctl/pkg/multicluster/remote_secret_test.go

    			obj = o
    			break
    		}
    	}
    	if obj == nil {
    		t.Fatalf("expected %v/%v", name, kind)
    	}
    }
    
    func TestCreateRemoteKubeconfig(t *testing.T) {
    	fakeClusterName := "fake-clusterName-0"
    	kubeconfig := strings.ReplaceAll(`apiVersion: v1
    clusters:
    - cluster:
        certificate-authority-data: Y2FEYXRh
        server: https://1.2.3.4
      name: {cluster}
    contexts:
    - context:
        cluster: {cluster}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  9. cni/test/install_cni.go

    	cniNetworkConfigName = "CNI_NETWORK_CONFIG"
    	cniNetworkConfig     = `{
      "cniVersion": "0.3.1",
      "type": "istio-cni",
      "log_level": "info",
      "kubernetes": {
          "kubeconfig": "__KUBECONFIG_FILEPATH__",
          "cni_bin_dir": "/opt/cni/bin",
          "exclude_namespaces": [ "istio-system" ]
      }
    }
    `
    )
    
    func getEnv(key, fallback string) string {
    	if value, ok := os.LookupEnv(key); ok {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig_test.go

    		})
    	}
    }
    
    const (
    	// For testing purposes, set kubeconfigFilename equivalent to the path in the test files and use __KUBECONFIG_FILENAME__
    	// CreateCNIConfigFile joins the MountedCNINetDir and KubeconfigFilename if __KUBECONFIG_FILEPATH__ was used
    	kubeconfigFilename   = "/path/to/kubeconfig"
    	cniNetworkConfigFile = "testdata/istio-cni.conf.template"
    	cniNetworkConfig     = `{
      "cniVersion": "0.3.1",
      "name": "istio-cni",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed May 17 02:22:22 GMT 2023
    - 15.4K bytes
    - Viewed (0)
Back to top