Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for CNI (0.11 sec)

  1. cni/test/install_cni.go

    	defaultFileMode = 0o644
    
    	cniConfName          = "CNI_CONF_NAME"
    	chainedCNIPluginName = "CHAINED_CNI_PLUGIN"
    	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" ]
      }
    }
    `
    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)
  2. cni/pkg/nodeagent/cni-watcher.go

    	if err != nil {
    		log.Errorf("Failed to unmarshal CNI plugin event: %v", err)
    		return msg, err
    	}
    
    	log.Debugf("Deserialized CNI plugin event: %+v", msg)
    	return msg, nil
    }
    
    func (s *CniPluginServer) ReconcileCNIAddEvent(ctx context.Context, addCmd CNIPluginAddEvent) error {
    	log := log.WithLabels("cni-event", addCmd)
    
    	log.Debugf("netns: %s", addCmd.Netns)
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/cni-watcher_test.go

    import (
    	"context"
    	"encoding/json"
    	"fmt"
    	"net"
    	"net/netip"
    	"testing"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/cni/pkg/util"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestProcessAddEventGoodPayload(t *testing.T) {
    	valid := CNIPluginAddEvent{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_cni_conformance.go

    // limitations under the License.
    
    package plugin
    
    import (
    	"testing"
    
    	"github.com/containernetworking/cni/pkg/types"
    )
    
    // Validate k8sArgs struct works for unmarshalling kubelet args
    // This is important for CNI plugin conformance
    func TestLoadArgs(t *testing.T) {
    	kubeletArgs := "IgnoreUnknown=1;K8S_POD_NAMESPACE=istio-system;" +
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Feb 10 00:31:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/server.go

    	"os"
    	"path/filepath"
    	"sync/atomic"
    
    	corev1 "k8s.io/api/core/v1"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/rest"
    
    	pconstants "istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/cni/pkg/ipset"
    	"istio.io/istio/cni/pkg/iptables"
    	"istio.io/istio/cni/pkg/util"
    	"istio.io/istio/pkg/kube"
    )
    
    type MeshDataplane interface {
    	// called first, (even before Start()).
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/net.go

    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/cni/pkg/ipset"
    	"istio.io/istio/cni/pkg/iptables"
    	"istio.io/istio/cni/pkg/util"
    	istiolog "istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/util/sets"
    	dep "istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    var log = istiolog.RegisterScope("ambient", "ambient controller")
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  7. cni/pkg/install/cniconfig.go

    			return nil, err
    		}
    		installLog.Infof("Using CNI config template from %s", template.cniNetworkConfigFile)
    		return cniConfig, nil
    	}
    
    	if len(template.cniNetworkConfig) > 0 {
    		installLog.Infof("Using CNI config template from CNI_NETWORK_CONFIG environment variable.")
    		return []byte(template.cniNetworkConfig), nil
    	}
    
    	return nil, fmt.Errorf("need CNI_NETWORK_CONFIG or CNI_NETWORK_CONFIG_FILE to be set")
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. cni/pkg/log/uds.go

    package log
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"net/http"
    	"strings"
    	"sync"
    	"time"
    
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/pkg/log"
    	"istio.io/istio/pkg/network"
    	"istio.io/istio/pkg/uds"
    )
    
    var pluginLog = log.RegisterScope("cni", "CNI network plugin")
    
    type UDSLogger struct {
    	mu            sync.Mutex
    	loggingServer *http.Server
    }
    
    type cniLog struct {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 01:05:12 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  9. cni/pkg/install/cniconfig_test.go

    		},
    		{
    			name:              "specified CNI config file never created",
    			chainedCNIPlugin:  true,
    			specifiedConfName: "never-created.conf",
    			existingConfFiles: []string{"bridge.conf", "list.conflist"},
    		},
    		{
    			name:             "standalone CNI plugin unspecified CNI config file",
    			expectedConfName: "YYY-istio-cni.conf",
    		},
    		{
    			name:              "standalone CNI plugin specified CNI config file",
    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)
  10. cni/pkg/cmd/root.go

    	"fmt"
    	"os"
    	"strings"
    
    	"github.com/spf13/cobra"
    	"github.com/spf13/viper"
    
    	"istio.io/istio/cni/pkg/config"
    	"istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/cni/pkg/install"
    	udsLog "istio.io/istio/cni/pkg/log"
    	"istio.io/istio/cni/pkg/monitoring"
    	"istio.io/istio/cni/pkg/nodeagent"
    	"istio.io/istio/cni/pkg/repair"
    	"istio.io/istio/pkg/cmd"
    	"istio.io/istio/pkg/collateral"
    	"istio.io/istio/pkg/ctrlz"
    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)
Back to top