Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for WatchEvent (0.24 sec)

  1. cmd/kubelet/app/server_bootstrap_test.go

    		if s.csr == nil {
    			t.Fatalf("no csr")
    		}
    		csr := s.csr.DeepCopy()
    
    		data := mustMarshal(&metav1.WatchEvent{
    			Type: "ADDED",
    			Object: runtime.RawExtension{
    				Raw: mustMarshal(csr),
    			},
    		})
    		w.Header().Set("Content-Type", "application/json")
    		w.Write(data)
    
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/watch_test.go

    					action, object := item.t, item.obj
    					name := fmt.Sprintf("%s-%s-%d", protocol.name, test.MediaType, i)
    
    					// Send
    					w.Action(action, object)
    					// Test receive
    					var got metav1.WatchEvent
    					_, _, err := d.Decode(nil, &got)
    					if err != nil {
    						t.Fatalf("%s: Unexpected error: %v", name, err)
    					}
    					if got.Type != string(action) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 17:27:39 UTC 2023
    - 30K bytes
    - Viewed (0)
  3. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

    	if _, found := output.(*tabwriter.Writer); !found {
    		w := GetNewTabWriter(output)
    		output = w
    		defer w.Flush()
    	}
    
    	var eventType string
    	if event, isEvent := obj.(*metav1.WatchEvent); isEvent {
    		eventType = event.Type
    		obj = event.Object.Object
    	}
    
    	// Parameter "obj" is a table from server; print it.
    	// display tables following the rules of options
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 16.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    var coreKinds = sets.NewString(
    	"CreateOptions", "UpdateOptions", "PatchOptions", "DeleteOptions",
    	"GetOptions", "ListOptions", "ExportOptions",
    	"WatchEvent",
    )
    
    func (c *CompatibilityTestOptions) Complete(t *testing.T) *CompatibilityTestOptions {
    	t.Helper()
    
    	// Verify scheme
    	if c.Scheme == nil {
    		t.Fatal("scheme is required")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    		return fmt.Errorf("unable to encode watch object %T: %v", obj, err)
    	}
    
    	// ContentType is not required here because we are defaulting to the serializer type.
    	outEvent := &metav1.WatchEvent{
    		Type:   string(event.Type),
    		Object: runtime.RawExtension{Raw: e.buffer.Bytes()},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
Back to top