- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for NewUUID (0.26 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go
// This package uses Linux Domain Sockets to remove the need for clean-up of socket files. func newEndpoint() *testSocket { p := fmt.Sprintf("@%s.sock", uuid.NewUUID()) return &testSocket{ path: p, endpoint: fmt.Sprintf("unix:///%s", p), } } // TestKMSPluginLateStart tests the scenario where kms-plugin pod/container starts after kube-apiserver pod/container.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 21 19:25:52 UTC 2023 - 12.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/uuid/uuid.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 12 16:03:21 UTC 2019 - 725 bytes - Viewed (0) -
pkg/registry/core/limitrange/strategy.go
return true } func (limitrangeStrategy) PrepareForCreate(ctx context.Context, obj runtime.Object) { limitRange := obj.(*api.LimitRange) if len(limitRange.Name) == 0 { limitRange.Name = string(uuid.NewUUID()) } } func (limitrangeStrategy) PrepareForUpdate(ctx context.Context, obj, old runtime.Object) { } func (limitrangeStrategy) Validate(ctx context.Context, obj runtime.Object) field.ErrorList {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 18 14:42:36 UTC 2021 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/request/admissionreview.go
switch version { case admissionv1.SchemeGroupVersion.Version: uid := types.UID(uuid.NewUUID()) request := CreateV1AdmissionReview(uid, versionedAttributes, invocation) response := &admissionv1.AdmissionReview{} return uid, request, response, nil case admissionv1beta1.SchemeGroupVersion.Version: uid := types.UID(uuid.NewUUID()) request := CreateV1beta1AdmissionReview(uid, versionedAttributes, invocation)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 9.5K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/meta.go
} // FillObjectMetaSystemFields populates fields that are managed by the system on ObjectMeta. func FillObjectMetaSystemFields(meta metav1.Object) { meta.SetCreationTimestamp(metav1.Now()) meta.SetUID(uuid.NewUUID()) } // EnsureObjectNamespaceMatchesRequestNamespace returns an error if obj.Namespace and requestNamespace // are both populated and do not match. If either is unpopulated, it modifies obj as needed to ensure
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 19 01:47:23 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/manager_test.go
ObjectMeta: metav1.ObjectMeta{ UID: uuid.NewUUID(), }, Spec: v1.PodSpec{ InitContainers: []v1.Container{ { Name: string(uuid.NewUUID()), Resources: v1.ResourceRequirements{ Limits: v1.ResourceList{ v1.ResourceName(res1.resourceName): res2.resourceQuantity, }, }, }, { Name: string(uuid.NewUUID()), Resources: v1.ResourceRequirements{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 65K bytes - Viewed (0) -
pkg/serviceaccount/claims.go
ExpirationExtensionSeconds = 24 * 365 * 60 * 60 ) var ( // time.Now stubbed out to allow testing now = time.Now // uuid.New stubbed out to allow testing newUUID = uuid.NewString ) type privateClaims struct { Kubernetes kubernetes `json:"kubernetes.io,omitempty"` } type kubernetes struct { Namespace string `json:"namespace,omitempty"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 21:15:10 UTC 2023 - 11.3K bytes - Viewed (0) -
pkg/volume/hostpath/host_path_test.go
if err != nil { t.Errorf("Can't find the plugin by name") } } func TestDeleter(t *testing.T) { // Deleter has a hard-coded regex for "/tmp". tempPath := fmt.Sprintf("/tmp/hostpath.%s", uuid.NewUUID()) err := os.MkdirAll(tempPath, 0750) if err != nil { t.Fatalf("Failed to create tmp directory for deleter: %v", err) } defer os.RemoveAll(tempPath) plugMgr := volume.VolumePluginMgr{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 00:37:30 UTC 2023 - 20.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go
}) } func (p *PolicyTestContext[P, B, E]) updateOne(object runtime.Object) error { objectMeta, err := meta.Accessor(object) if err != nil { return err } objectMeta.SetResourceVersion(string(uuid.NewUUID())) objectGVK, gvr, err := p.inferGVK(object) if err != nil { return err } switch objectGVK { case p.policyGVK:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 19K bytes - Viewed (0)