Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for cniVersion (0.11 sec)

  1. cni/pkg/install/testdata/list-with-istio.conflist.golden

    {
      "cniVersion": "0.4.0",
      "name": "dbnet",
      "plugins": [
        {
          "args": {
            "labels": {
              "appVersion": "1.0"
            }
          },
          "bridge": "cni0",
          "dns": {
            "nameservers": [
              "10.1.0.1"
            ]
          },
          "ipam": {
            "gateway": "10.1.0.1",
            "subnet": "10.1.0.0/16",
            "type": "host-local"
          },
          "type": "bridge"
        },
        {
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 776 bytes
    - Viewed (0)
  2. cni/test/testdata/expected/10-calico.conflist-istioconfig

    {
      "cniVersion": "0.3.1",
      "name": "k8s-pod-network",
      "plugins": [
        {
          "etcd_endpoints": "http://10.110.0.136:6666",
          "ipam": {
            "type": "calico-ipam"
          },
          "kubernetes": {
            "kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
          },
          "mtu": 1500,
          "plugin_log_level": "info",
          "policy": {
            "type": "k8s"
          },
          "type": "calico"
        },
        {
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 793 bytes
    - Viewed (0)
  3. cni/pkg/install/cniconfig.go

    	if err != nil {
    		return nil, fmt.Errorf("error loading existing CNI config (JSON error): %v", err)
    	}
    
    	delete(istioMap, "cniVersion")
    
    	var newMap map[string]any
    
    	if _, ok := existingMap["type"]; ok {
    		// Assume it is a regular network conf file
    		delete(existingMap, "cniVersion")
    
    		plugins := make([]map[string]any, 2)
    		plugins[0] = existingMap
    		plugins[1] = istioMap
    
    		newMap = map[string]any{
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. cni/pkg/install/testdata/list.conflist.golden

    {
      "cniVersion": "0.4.0",
      "name": "dbnet",
      "plugins": [
        {
          "args": {
            "labels": {
              "appVersion": "1.0"
            }
          },
          "bridge": "cni0",
          "dns": {
            "nameservers": [
              "10.1.0.1"
            ]
          },
          "ipam": {
            "gateway": "10.1.0.1",
            "subnet": "10.1.0.0/16",
            "type": "host-local"
          },
          "type": "bridge"
        },
        {
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 776 bytes
    - Viewed (0)
  5. cni/pkg/install/testdata/istio-cni.conf

    {
      "cniVersion": "0.3.1",
      "name": "istio-cni",
      "type": "istio-cni",
      "ipam": {},
      "dns": {},
      "plugin_log_level": "debug",
      "cni_agent_run_dir": "/path/to/kubeconfig",
      "ambient_enabled": false,
      "exclude_namespaces": [
        ""
      ]
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 244 bytes
    - Viewed (0)
  6. cni/pkg/plugin/plugin.go

    	var result *cniv1.Result
    	if conf.PrevResult == nil {
    		result = &cniv1.Result{
    			CNIVersion: cniv1.ImplementedSpecVersion,
    		}
    		return types.PrintResult(result, conf.CNIVersion)
    	}
    
    	// Pass through the result for the next plugin
    	return types.PrintResult(conf.PrevResult, conf.CNIVersion)
    }
    
    func CmdCheck(args *skel.CmdArgs) (err error) {
    	return nil
    }
    
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Wed Aug 14 19:36:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. cni/pkg/install/testdata/bridge.conf.golden

    {
      "cniVersion": "0.3.1",
      "name": "k8s-pod-network",
      "plugins": [
        {
          "bridge": "cni0",
          "dns": {
            "nameservers": [
              "10.1.0.1"
            ]
          },
          "ipam": {
            "gateway": "10.1.0.1",
            "subnet": "10.1.0.0/16",
            "type": "host-local"
          },
          "name": "dbnet",
          "type": "bridge"
        },
        {
          "ambient_enabled": false,
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 625 bytes
    - Viewed (0)
  8. cni/test/testdata/expected/minikube_cni.conflist.expected

    {
      "cniVersion": "0.3.1",
      "name": "k8s-pod-network",
      "plugins": [
        {
          "addIf": "true",
          "bridge": "mybridge",
          "ipMasq": true,
          "ipam": {
            "gateway": "10.1.0.1",
            "routes": [
              {
                "dst": "0.0.0.0/0"
              }
            ],
            "subnet": "10.1.0.0/16",
            "type": "host-local"
          },
          "isGateway": true,
          "mtu": 1460,
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 733 bytes
    - Viewed (0)
  9. cni/test/testdata/expected/YYY-istio-cni.conf

    {
      "cniVersion": "0.3.1",
      "name": "istio-cni",
      "type": "istio-cni",
      "ipam": {},
      "dns": {},
      "plugin_log_level": "debug",
      "cni_agent_run_dir": "/tmp",
      "ambient_enabled": false,
      "exclude_namespaces": [
        "istio-system"
      ]
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 241 bytes
    - Viewed (0)
  10. cni/pkg/install/cniconfig_test.go

    			outFilename:     "regular.conf",
    			fileContents: `
    {
    	"cniVersion": "0.3.1",
    	"name": "istio-cni",
    	"type": "istio-cni"
    }`,
    		},
    		{
    			name:            "another regular file",
    			dir:             tempDir,
    			expectedFailure: false,
    			inFilename:      "regular2.conf",
    			outFilename:     "regular.conf",
    			fileContents: `
    {
    	"cniVersion": "0.3.1",
    	"name": "istio-cni",
    	"type": "istio-cni"
    }`,
    		},
    Registered: Wed Oct 30 22:53:10 UTC 2024
    - Last Modified: Thu Aug 01 18:38:14 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top