@@ -31,7 +31,7 @@ import (
31
31
. "github.com/onsi/ginkgo/v2"
32
32
. "github.com/onsi/gomega"
33
33
"github.com/onsi/gomega/format"
34
- "k8s.io/utils/pointer "
34
+ "k8s.io/utils/ptr "
35
35
)
36
36
37
37
var _ = Describe ("FoundationDBStatus" , func () {
@@ -63,8 +63,8 @@ var _ = Describe("FoundationDBStatus", func() {
63
63
},
64
64
VersionFlags : VersionFlags {LogSpill : 2 , LogVersion : 0 },
65
65
StorageMigrationType : & migrationType ,
66
- PerpetualStorageWiggle : pointer . Int (0 ),
67
- PerpetualStorageWiggleLocality : pointer . String ("0" ),
66
+ PerpetualStorageWiggle : ptr . To (0 ),
67
+ PerpetualStorageWiggleLocality : ptr . To ("0" ),
68
68
},
69
69
Processes : map [ProcessGroupID ]FoundationDBStatusProcessInfo {
70
70
"eb48ada3a682e86363f06aa89e1041fa" : {
@@ -90,14 +90,14 @@ var _ = Describe("FoundationDBStatus", func() {
90
90
ID : "0de7f5c5e549cad1" ,
91
91
GRVLatencyStatistics : FoundationDBStatusGRVStatistics {
92
92
Batch : FoundationDBStatusPerfStatistics {
93
- Count : pointer . Int (6 ),
94
- Median : pointer . Float64 (0.000531435 ),
95
- P99 : pointer . Float64 (0.00130677 ),
93
+ Count : ptr . To (6 ),
94
+ Median : ptr . To (0.000531435 ),
95
+ P99 : ptr . To (0.00130677 ),
96
96
},
97
97
Default : FoundationDBStatusPerfStatistics {
98
- Count : pointer . Int (225 ),
99
- Median : pointer . Float64 (0.00062561 ),
100
- P99 : pointer . Float64 (0.010715200000000001 ),
98
+ Count : ptr . To (225 ),
99
+ Median : ptr . To (0.00062561 ),
100
+ P99 : ptr . To (0.010715200000000001 ),
101
101
},
102
102
},
103
103
},
@@ -108,14 +108,14 @@ var _ = Describe("FoundationDBStatus", func() {
108
108
Seconds : 0.19625800000000002 ,
109
109
Versions : 196258 ,
110
110
},
111
- KVStoreUsedBytes : pointer . Int64 (104878232 ),
112
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
113
- KVStoreFreeBytes : pointer . Int64 (84178223104 ),
114
- KVStoreAvailableBytes : pointer . Int64 (84178223104 ),
111
+ KVStoreUsedBytes : ptr. To [ int64 ] (104878232 ),
112
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
113
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178223104 ),
114
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178223104 ),
115
115
ReadLatencyStatistics : FoundationDBStatusPerfStatistics {
116
- Count : pointer . Int (297 ),
117
- Median : pointer . Float64 (0.000116825 ),
118
- P99 : pointer . Float64 (0.000711441 ),
116
+ Count : ptr . To (297 ),
117
+ Median : ptr . To (0.000116825 ),
118
+ P99 : ptr . To (0.000711441 ),
119
119
},
120
120
},
121
121
},
@@ -146,14 +146,14 @@ var _ = Describe("FoundationDBStatus", func() {
146
146
Seconds : 2.1227 ,
147
147
Versions : 2122697 ,
148
148
},
149
- KVStoreUsedBytes : pointer . Int64 (104878232 ),
150
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
151
- KVStoreFreeBytes : pointer . Int64 (84178239488 ),
152
- KVStoreAvailableBytes : pointer . Int64 (84178239488 ),
149
+ KVStoreUsedBytes : ptr. To [ int64 ] (104878232 ),
150
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
151
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178239488 ),
152
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178239488 ),
153
153
ReadLatencyStatistics : FoundationDBStatusPerfStatistics {
154
- Count : pointer . Int (334 ),
155
- Median : pointer . Float64 (0.000102282 ),
156
- P99 : pointer . Float64 (0.000386477 ),
154
+ Count : ptr . To (334 ),
155
+ Median : ptr . To (0.000102282 ),
156
+ P99 : ptr . To (0.000386477 ),
157
157
},
158
158
},
159
159
{
@@ -185,9 +185,9 @@ var _ = Describe("FoundationDBStatus", func() {
185
185
Role : string (ProcessRoleCommitProxy ),
186
186
ID : "0eb90e4a0ece85b3" ,
187
187
CommitLatencyStatistics : FoundationDBStatusPerfStatistics {
188
- Count : pointer . Int (31 ),
189
- Median : pointer . Float64 (0.00794888 ),
190
- P99 : pointer . Float64 (0.09054090000000001 ),
188
+ Count : ptr . To (31 ),
189
+ Median : ptr . To (0.00794888 ),
190
+ P99 : ptr . To (0.09054090000000001 ),
191
191
},
192
192
},
193
193
{
@@ -197,14 +197,14 @@ var _ = Describe("FoundationDBStatus", func() {
197
197
Seconds : 0.19625800000000002 ,
198
198
Versions : 196258 ,
199
199
},
200
- KVStoreUsedBytes : pointer . Int64 (104861752 ),
201
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
202
- KVStoreFreeBytes : pointer . Int64 (84178112512 ),
203
- KVStoreAvailableBytes : pointer . Int64 (84178112512 ),
200
+ KVStoreUsedBytes : ptr. To [ int64 ] (104861752 ),
201
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
202
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178112512 ),
203
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178112512 ),
204
204
ReadLatencyStatistics : FoundationDBStatusPerfStatistics {
205
- Count : pointer . Int (0 ),
206
- Median : pointer . Float64 ( 0 ),
207
- P99 : pointer . Float64 ( 0 ),
205
+ Count : ptr . To (0 ),
206
+ Median : ptr . To ( 0. 0 ),
207
+ P99 : ptr . To ( 0. 0 ),
208
208
},
209
209
},
210
210
},
@@ -286,10 +286,10 @@ var _ = Describe("FoundationDBStatus", func() {
286
286
{
287
287
Role : string (ProcessRoleLog ),
288
288
ID : "2c66a861b33b2697" ,
289
- KVStoreUsedBytes : pointer . Int64 (104861752 ),
290
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
291
- KVStoreFreeBytes : pointer . Int64 (84178214912 ),
292
- KVStoreAvailableBytes : pointer . Int64 (84178214912 ),
289
+ KVStoreUsedBytes : ptr. To [ int64 ] (104861752 ),
290
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
291
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178214912 ),
292
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178214912 ),
293
293
},
294
294
},
295
295
Messages : []FoundationDBStatusProcessMessage {},
@@ -314,10 +314,10 @@ var _ = Describe("FoundationDBStatus", func() {
314
314
{
315
315
Role : string (ProcessRoleLog ),
316
316
ID : "56cf105980ec2b07" ,
317
- KVStoreUsedBytes : pointer . Int64 (104861752 ),
318
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
319
- KVStoreFreeBytes : pointer . Int64 (84178214912 ),
320
- KVStoreAvailableBytes : pointer . Int64 (84178214912 ),
317
+ KVStoreUsedBytes : ptr. To [ int64 ] (104861752 ),
318
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
319
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178214912 ),
320
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178214912 ),
321
321
},
322
322
},
323
323
Messages : []FoundationDBStatusProcessMessage {},
@@ -342,10 +342,10 @@ var _ = Describe("FoundationDBStatus", func() {
342
342
{
343
343
Role : string (ProcessRoleLog ),
344
344
ID : "31754d1d7d8d6f05" ,
345
- KVStoreUsedBytes : pointer . Int64 (104861752 ),
346
- KVStoreTotalBytes : pointer . Int64 (135012552704 ),
347
- KVStoreFreeBytes : pointer . Int64 (84178202624 ),
348
- KVStoreAvailableBytes : pointer . Int64 (84178202624 ),
345
+ KVStoreUsedBytes : ptr. To [ int64 ] (104861752 ),
346
+ KVStoreTotalBytes : ptr. To [ int64 ] (135012552704 ),
347
+ KVStoreFreeBytes : ptr. To [ int64 ] (84178202624 ),
348
+ KVStoreAvailableBytes : ptr. To [ int64 ] (84178202624 ),
349
349
},
350
350
},
351
351
Messages : []FoundationDBStatusProcessMessage {},
@@ -373,10 +373,10 @@ var _ = Describe("FoundationDBStatus", func() {
373
373
Name : "healthy" ,
374
374
MinReplicasRemaining : 2 ,
375
375
},
376
- UnhealthyServers : pointer . Int64 (0 ),
376
+ UnhealthyServers : ptr. To [ int64 ] (0 ),
377
377
},
378
378
},
379
- TotalDiskUsedBytes : pointer . Int64 (629203472 ),
379
+ TotalDiskUsedBytes : ptr. To [ int64 ] (629203472 ),
380
380
},
381
381
FullReplication : true ,
382
382
Clients : FoundationDBStatusClusterClientInfo {
@@ -498,7 +498,7 @@ var _ = Describe("FoundationDBStatus", func() {
498
498
},
499
499
},
500
500
Layers : FoundationDBStatusLayerInfo {
501
- Valid : pointer . Bool (true ),
501
+ Valid : ptr . To (true ),
502
502
Backup : FoundationDBStatusBackupInfo {Paused : false , Tags : nil },
503
503
Error : "" ,
504
504
},
@@ -540,12 +540,12 @@ var _ = Describe("FoundationDBStatus", func() {
540
540
},
541
541
Generation : 2 ,
542
542
BounceImpact : FoundationDBBounceImpact {
543
- CanCleanBounce : pointer . Bool (true ),
543
+ CanCleanBounce : ptr . To (true ),
544
544
},
545
- DatabaseAvailable : pointer . Bool (true ),
546
- ActivePrimaryDC : pointer . String ("" ),
545
+ DatabaseAvailable : ptr . To (true ),
546
+ ActivePrimaryDC : ptr . To ("" ),
547
547
DatabaseLockState : FoundationDBStatusLockState {
548
- Locked : pointer . Bool (false ),
548
+ Locked : ptr . To (false ),
549
549
},
550
550
}
551
551
0 commit comments