Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for fakeFs (0.18 sec)

  1. cni/pkg/nodeagent/podcgroupns_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestWithProcFs(t *testing.T) {
    	n := NewPodNetnsProcFinder(fakeFs())
    	pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{
    		Name:      "foo",
    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net_test.go

    		},
    		Spec: corev1.PodSpec{ServiceAccountName: "sa"},
    	}
    
    	// this is usually called after add. so manually add the pod uid for now
    	fakens := newFakeNs(123)
    	closed := fakens.closed
    	workload := WorkloadInfo{
    		Workload: podToWorkload(pod),
    		Netns:    fakens,
    	}
    	fixture.podNsMap.UpsertPodCacheWithNetns(string(pod.UID), workload)
    	err := netServer.RemovePodFromMesh(ctx, pod)
    	assert.NoError(t, err)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. istioctl/pkg/util/configdump/util.go

    	secrets   configTypeURL = "type.googleapis.com/envoy.admin.v3.SecretsConfigDump"
    	ecds      configTypeURL = "type.googleapis.com/envoy.admin.v3.EcdsConfigDump"
    )
    
    // getSection takes a TypeURL and returns the types.Any from the config dump corresponding to that URL
    func (w *Wrapper) getSection(sectionTypeURL configTypeURL) (*anypb.Any, error) {
    	var dumpAny *anypb.Any
    	for _, conf := range w.Configs {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Dec 24 08:16:26 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  5. istioctl/pkg/proxystatus/proxystatus_test.go

    	"github.com/spf13/cobra"
    	"google.golang.org/grpc"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	cmdutil "k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe_test.go

    					ObjectMeta: metav1.ObjectMeta{
    						Name:      "bookinfo",
    						Namespace: "default",
    					},
    					Spec: v1alpha32.VirtualService{
    						Hosts:    []string{"productpage"},
    						Gateways: []string{"fake-gw"},
    						Http: []*v1alpha32.HTTPRoute{
    							{
    								Match: []*v1alpha32.HTTPMatchRequest{
    									{
    										Uri: &v1alpha32.StringMatch{
    											MatchType: &v1alpha32.StringMatch_Prefix{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Mar 28 09:54:01 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/compare/sds/util.go

    	s.dest = dest
    	return s
    }
    
    // State sets the state of the secret on the agent or sidecar
    func (s *secretItemBuilder) State(state string) SecretItemBuilder {
    	s.state = state
    	return s
    }
    
    // Build takes the set fields from the builder and constructs the actual SecretItem
    // including generating the SecretMeta from the supplied cert data, if present
    func (s *secretItemBuilder) Build() (SecretItem, error) {
    	result := SecretItem{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/authorization/v1beta1/generated.proto

      repeated string items = 1;
    }
    
    // LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
    // Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions
    // checking.
    message LocalSubjectAccessReview {
      // Standard list metadata.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate_test.go

    				assert.Equal(t, ok, false)
    			}
    
    			for _, webhook := range wh.Webhooks {
    				validationWhConf := webhook.ClientConfig
    
    				// this is nil since we've already have one with failed FailurePolicy in the fake client
    				if webhook.FailurePolicy != nil {
    					t.Fatalf("expected FailurePolicy to be nil, got %v", *webhook.FailurePolicy)
    				}
    
    				if tc.whSVC != "" {
    					if validationWhConf.Service == nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  10. istioctl/pkg/tag/tag.go

    	out, err := json.MarshalIndent(res, "", "\t")
    	if err != nil {
    		return fmt.Errorf("error while marshaling to JSON: %v", err)
    	}
    	fmt.Fprintln(w, string(out))
    	return nil
    }
    
    // buildDeleteTagConfirmation takes a list of webhooks and creates a message prompting confirmation for their deletion.
    func buildDeleteTagConfirmation(tag string, taggedNamespaces []string) string {
    	var sb strings.Builder
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
Back to top