- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for NewSet (0.15 sec)
-
pkg/registry/core/persistentvolume/strategy.go
// and should not be modified by the user. func (persistentvolumeStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields } // ResetBeforeCreate 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 01 03:58:36 UTC 2023 - 7.6K bytes - Viewed (0) -
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) -
pkg/monitoring/derived_gauge.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 1.9K bytes - Viewed (0) -
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) -
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) -
pkg/monitoring/monitortest/test.go
kvs := []attribute.KeyValue{} for _, lv := range row.Label { kvs = append(kvs, attribute.String(*lv.Name, *lv.Value)) } key := metricKey{ name: *metric.Name, attrs: attribute.NewSet(kvs...), } return key } type Compare func(any) error func DoesNotExist(any) error { // special case logic in the Assert return nil } func Exactly(v float64) func(any) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Sep 13 16:04:48 UTC 2023 - 7.2K bytes - Viewed (0) -
tests/helper_test.go
func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) { if pet.ID != 0 { var newPet Pet if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") } }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0)