Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for NewSet (2.92 sec)

  1. pkg/registry/core/node/strategy.go

    // and should not be modified by the user.
    func (nodeStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // AllowCreateOnUpdate is false for nodes.
    func (nodeStrategy) AllowCreateOnUpdate() bool {
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. pkg/monitoring/derived_gauge.go

    	d.mu.Lock()
    	defer d.mu.Unlock()
    	lv := slices.Map(labelValues, func(e LabelValue) attribute.KeyValue {
    		return e.keyValue
    	})
    	as := attribute.NewSet(lv...)
    	d.attrs[as] = valueFn
    	return d
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. pkg/registry/apps/deployment/strategy.go

    // and should not be modified by the user.
    func (deploymentStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"apps/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears fields that are not allowed to be set by end users on creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:07:13 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  4. pkg/registry/core/persistentvolumeclaim/strategy.go

    // and should not be modified by the user.
    func (persistentvolumeclaimStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears the Status field which is not allowed to be set by end users on creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 20:58:25 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  5. pkg/monitoring/gauge.go

    	// If a metric really requires `metric{} 0`, they can explicitly call .Record(0).
    	if f.currentGaugeSet == nil {
    		f.currentGaugeSet = &gaugeValues{}
    		f.attributeSets[attribute.NewSet()] = f.currentGaugeSet
    	}
    	f.currentGaugeSet.val = value
    	f.attributeSetsMutex.Unlock()
    }
    
    func (f *gauge) With(labelValues ...LabelValue) Metric {
    	attrs, set := rebuildAttributes(f.baseMetric, labelValues)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. pkg/registry/apps/daemonset/strategy.go

    // and should not be modified by the user.
    func (daemonSetStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"apps/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears the status of a daemon set before creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy.go

    func (a statusStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		fieldpath.APIVersion(a.customResourceStrategy.kind.GroupVersion().String()): fieldpath.NewSet(
    			// Note that if there are other top level fields unique to CRDs,
    			// those will also get removed by the apiserver prior to persisting,
    			// but won't be added to the resetFields set.
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. pkg/registry/apps/replicaset/strategy.go

    // and should not be modified by the user.
    func (rsStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"apps/v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears the status of a ReplicaSet before creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/fieldmanager/admission_test.go

    	wrap := &mockAdmissionController{}
    	ac := fieldmanager.NewManagedFieldsValidatingAdmissionController(wrap)
    	now := metav1.Now()
    
    	validFieldsV1 := metav1.FieldsV1{}
    	var err error
    	validFieldsV1.Raw, err = fieldpath.NewSet(fieldpath.MakePathOrDie("metadata", "labels", "test-label")).ToJSON()
    	if err != nil {
    		t.Fatal(err)
    	}
    	validManagedFieldsEntry := metav1.ManagedFieldsEntry{
    		APIVersion: "v1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 12 21:32:54 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. pkg/registry/core/replicationcontroller/strategy.go

    // and should not be modified by the user.
    func (rcStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set {
    	fields := map[fieldpath.APIVersion]*fieldpath.Set{
    		"v1": fieldpath.NewSet(
    			fieldpath.MakePathOrDie("status"),
    		),
    	}
    
    	return fields
    }
    
    // PrepareForCreate clears the status of a replication controller before creation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:10 UTC 2022
    - 9.7K bytes
    - Viewed (0)
Back to top