- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 77 for newPoset (0.28 sec)
-
pkg/test/framework/label/instance.go
package label import ( "sort" "strings" ) // Instance is a label instance. type Instance string // Set is a set of labels type Set map[Instance]struct{} // NewSet returns a new label set. func NewSet(labels ...Instance) Set { s := make(map[Instance]struct{}) for _, l := range labels { s[l] = struct{}{} } return s } // Add adds the given labels and returns a new, combined set
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fields_test.go
validName := "ok" invalidPath := fieldpath.Path([]fieldpath.PathElement{{}, {FieldName: &validName}}) tests := []struct { set fieldpath.Set errString string }{ { set: *fieldpath.NewSet(invalidPath), errString: "invalid PathElement", }, } for _, test := range tests { _, err := SetToFields(test.set) if err == nil || !strings.Contains(err.Error(), test.errString) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/registry/policy/poddisruptionbudget/strategy.go
func (podDisruptionBudgetStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "policy/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), "policy/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields } // PrepareForCreate clears the status of an PodDisruptionBudget before creation.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 22:25:42 UTC 2022 - 8.1K bytes - Viewed (0) -
pkg/registry/certificates/certificates/strategy.go
func (csrStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "certificates.k8s.io/v1": fieldpath.NewSet( fieldpath.MakePathOrDie("spec"), fieldpath.MakePathOrDie("status"), ), "certificates.k8s.io/v1beta1": fieldpath.NewSet( fieldpath.MakePathOrDie("spec"), fieldpath.MakePathOrDie("status"), ), } return fields }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 21:41:43 UTC 2022 - 11.4K bytes - Viewed (0) -
pkg/registry/storagemigration/storagemigration/strategy.go
// and should not be modified by the user. func (strategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "storagemigration.k8s.io/v1alpha1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields } // PrepareForCreate clears the status of an StorageVersion before creation.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/registry/resource/resourceclaim/strategy.go
// status. func (resourceclaimStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "resource.k8s.io/v1alpha2": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields } func (resourceclaimStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { claim := obj.(*resource.ResourceClaim)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 20:39:24 UTC 2024 - 5.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go
result, err := x509.ParseCertificate(pemBlock.Bytes) if err != nil { t.Fatalf("failed to parse test certificate: %v", err) return nil } return result } func TestSet(t *testing.T) { s := NewSet() if !s.Empty() { t.Error("expected a new set to be empty") return } err := s.Allow("xyz") if err == nil || !s.Empty() { t.Error("expected allowing junk to fail") return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 13 11:38:39 UTC 2021 - 5.9K bytes - Viewed (0) -
pkg/registry/storage/volumeattachment/strategy.go
// and should not be modified by the user. func (volumeAttachmentStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "storage.k8s.io/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: Mon Jun 06 21:19:19 UTC 2022 - 5.1K bytes - Viewed (0) -
pkg/registry/apiserverinternal/storageversion/strategy.go
// and should not be modified by the user. func (storageVersionStrategy) GetResetFields() map[fieldpath.APIVersion]*fieldpath.Set { fields := map[fieldpath.APIVersion]*fieldpath.Set{ "internal.apiserver.k8s.io/v1alpha1": fieldpath.NewSet( fieldpath.MakePathOrDie("status"), ), } return fields } // PrepareForCreate clears the status of an StorageVersion before creation.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 5.2K bytes - Viewed (0) -
pkg/proxy/ipvs/ipset.go
// activeEntries is the current active entries of the ipset. activeEntries sets.Set[string] // handle is the util ipset interface handle. handle utilipset.Interface } // NewIPSet initialize a new IPSet struct func NewIPSet(handle utilipset.Interface, name string, setType utilipset.Type, isIPv6 bool, comment string) *IPSet { hashFamily := utilipset.ProtocolFamilyIPV4 if isIPv6 { hashFamily = utilipset.ProtocolFamilyIPV6
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 7.3K bytes - Viewed (0)