Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for define (0.23 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/test/install_k8s_test.go

    			resultFileName:     "YYY-istio-cni.conf",
    			expectedOutputFile: testDataDir + "/expected/YYY-istio-cni.conf",
    		},
    		{
    			name:               "standalone plugin user defined name",
    			preConfFile:        "user-defined.conf",
    			resultFileName:     "user-defined.conf",
    			expectedOutputFile: testDataDir + "/expected/YYY-istio-cni.conf",
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jul 27 18:01:48 GMT 2022
    - 8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. istioctl/pkg/multicluster/options.go

    )
    
    // KubeOptions contains kubernetes options common to all commands.
    type KubeOptions struct {
    	Kubeconfig string
    	Context    string
    	Namespace  string
    }
    
    // Inherit the common kubernetes flags defined in the root package. This is a bit of a hack,
    // but it allows us to directly get the final values for each of these flags without needing
    // to pass pointers-to-flags through all of the (sub)commands.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Aug 01 23:59:49 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  8. 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)
  9. istioctl/pkg/clioptions/control_plane.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package clioptions
    
    import "github.com/spf13/cobra"
    
    // ControlPlaneOptions defines common options used by istioctl.
    type ControlPlaneOptions struct {
    	// Revision is the istio.io/rev control plane revision
    	Revision string
    }
    
    // AttachControlPlaneFlags attaches control-plane flags to a Cobra command.
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 01 05:47:27 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  10. 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)
Back to top