Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for define (0.48 sec)

  1. cni/pkg/plugin/sidecar_iptables_linux.go

    	"istio.io/istio/tools/istio-iptables/pkg/config"
    	"istio.io/istio/tools/istio-iptables/pkg/dependencies"
    )
    
    // getNs is a unit test override variable for interface create.
    var getNs = ns.GetNS
    
    // Program defines a method which programs iptables based on the parameters
    // provided in Redirect.
    func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
    	cfg := config.DefaultConfig()
    	cfg.CNIMode = true
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 17:36:41 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. cni/pkg/plugin/sidecar_redirect.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    // Defines the redirect object and operations.
    package plugin
    
    import (
    	"fmt"
    	"net/netip"
    	"strconv"
    	"strings"
    
    	"istio.io/api/annotation"
    	"istio.io/istio/pkg/log"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/netns_linux_test.go

    func TestOpenNetns(t *testing.T) {
    	ns, err := OpenNetns("/proc/self/ns/net")
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	// the inode for netns is proc dynamic, so it needs to be higher than
    	// #define PROC_DYNAMIC_FIRST 0xF0000000U
    
    	if ns.Inode() < 0xF0000000 {
    		t.Fatalf("unexpected inode: %v", ns.Inode())
    	}
    	defer ns.Close()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 976 bytes
    - Viewed (0)
  4. cni/pkg/plugin/sidecar_iptables_unspecified.go

    package plugin
    
    import "errors"
    
    // ErrNotImplemented is returned when a requested feature is not implemented.
    var ErrNotImplemented = errors.New("not implemented")
    
    // Program defines a method which programs iptables based on the parameters
    // provided in Redirect.
    func (ipt *iptables) Program(podName, netns string, rdrct *Redirect) error {
    	return ErrNotImplemented
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  5. cni/pkg/config/config.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"strings"
    )
    
    type Config struct {
    	InstallConfig InstallConfig
    	RepairConfig  RepairConfig
    }
    
    // InstallConfig struct defines the Istio CNI installation options
    type InstallConfig struct {
    	// Location of the CNI config files in the host's filesystem
    	CNINetDir string
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/cni-watcher.go

    	for _, configuredPodIPs := range addCmd.IPs {
    		// net.ip is implicitly convertible to netip as slice
    		ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP)
    		// We ignore the mask of the IPNet - it's fine if the IPNet defines
    		// a block grant of addresses, we just need one for checking routes.
    		podIps = append(podIps, ip)
    	}
    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)
  7. operator/cmd/mesh/root.go

    	installationCompleteStr            = `Installation complete`
    	ForceFlagHelpStr                   = `Proceed even with validation errors.`
    	MaxConcurrentReconcilesFlagHelpStr = `Defines the concurrency limit for operator to reconcile IstioOperatorSpec in parallel. Default value is 1.`
    	HubFlagHelpStr                     = `The hub for the operator controller image.`
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. istioctl/pkg/precheck/precheck.go

    			msg.NewUnsupportedKubernetesVersion(&resource.Instance{Origin: clusterOrigin{}}, v.String(), fmt.Sprintf("1.%d", k8sversion.MinK8SVersion)),
    		}, nil
    	}
    	return nil, nil
    }
    
    // clusterOrigin defines an Origin that refers to the cluster
    type clusterOrigin struct{}
    
    func (o clusterOrigin) ClusterName() istiocluster.ID {
    	return "Cluster"
    }
    
    func (o clusterOrigin) String() string {
    	return ""
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. operator/cmd/mesh/manifest-generate_test.go

    	"istio.io/istio/pkg/version"
    )
    
    const (
    	testIstioDiscoveryChartPath = "charts/istio-control/istio-discovery/templates"
    	operatorSubdirFilePath      = "manifests"
    )
    
    // chartSourceType defines where charts used in the test come from.
    type chartSourceType string
    
    var (
    	operatorRootDir = filepath.Join(env.IstioSrc, "operator")
    
    	// testDataDir contains the directory for manifest-generate test data
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
Back to top