- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for patchAllocatedValues (0.34 sec)
-
pkg/registry/core/service/storage/storage.go
} } } } // patchAllocatedValues allows clients to avoid a read-modify-write cycle while // preserving values that we allocated on their behalf. For example, they // might create a Service without specifying the ClusterIP, in which case we // allocate one. If they resubmit that same YAML, we want it to succeed. func patchAllocatedValues(after After, before Before) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 13:09:33 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/registry/core/service/storage/storage_test.go
expectSameClusterIPs: true, expectSameNodePort: true, }} for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { update := tc.update.DeepCopy() patchAllocatedValues(After{update}, Before{tc.before}) beforeIP := tc.before.Spec.ClusterIP updateIP := update.Spec.ClusterIP if tc.expectSameClusterIPs || tc.expectReducedClusterIPs { if beforeIP != updateIP {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 440.2K bytes - Viewed (0)