Skip to content

Commit 302f21d

Browse files
authored
Merge pull request #19409 from k8s-infra-cherrypick-robot/cherry-pick-19408-to-release-3.6
[release-3.6] Fix more v3.6 deprecation comments
2 parents 34afaca + ef3f116 commit 302f21d

File tree

3 files changed

+31
-22
lines changed

3 files changed

+31
-22
lines changed

server/config/config.go

+2
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ type ServerConfig struct {
190190

191191
// ExperimentalTxnModeWriteWithSharedBuffer enable write transaction to use
192192
// a shared buffer in its readonly check operations.
193+
// TODO: Delete in v3.7
194+
// Deprecated: Use TxnModeWriteWithSharedBuffer Feature Gate instead. Will be decommissioned in v3.7.
193195
ExperimentalTxnModeWriteWithSharedBuffer bool `json:"experimental-txn-mode-write-with-shared-buffer"`
194196

195197
// BootstrapDefragThresholdMegabytes is the minimum number of megabytes needed to be freed for etcd server to

server/embed/config.go

+7
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ type Config struct {
407407
// AuthTokenTTL in seconds of the simple token
408408
AuthTokenTTL uint `json:"auth-token-ttl"`
409409

410+
// ExperimentalInitialCorruptCheck defines to check data corrution on boot.
411+
// TODO: delete in v3.7
412+
// Deprecated: Use InitialCorruptCheck Feature Gate instead. Will be decommissioned in v3.7.
410413
ExperimentalInitialCorruptCheck bool `json:"experimental-initial-corrupt-check"`
411414
// ExperimentalCorruptCheckTime is the duration of time between cluster corruption check passes.
412415
// TODO: delete in v3.7
@@ -590,9 +593,13 @@ type Config struct {
590593
ExperimentalMemoryMlock bool `json:"experimental-memory-mlock"`
591594

592595
// ExperimentalTxnModeWriteWithSharedBuffer enables write transaction to use a shared buffer in its readonly check operations.
596+
// TODO: Delete in v3.7
597+
// Deprecated: Use TxnModeWriteWithSharedBuffer Feature Flag. Will be decommissioned in v3.7.
593598
ExperimentalTxnModeWriteWithSharedBuffer bool `json:"experimental-txn-mode-write-with-shared-buffer"`
594599

595600
// ExperimentalStopGRPCServiceOnDefrag enables etcd gRPC service to stop serving client requests on defragmentation.
601+
// TODO: Delete in v3.7
602+
// Deprecated: Use StopGRPCServiceOnDefrag Feature Flag. Will be decommissioned in v3.7.
596603
ExperimentalStopGRPCServiceOnDefrag bool `json:"experimental-stop-grpc-service-on-defrag"`
597604

598605
// V2Deprecation describes phase of API & Storage V2 support.

server/etcdmain/help.go

+22-22
Original file line numberDiff line numberDiff line change
@@ -264,77 +264,77 @@ Logging:
264264
265265
Experimental distributed tracing:
266266
--experimental-enable-distributed-tracing 'false'
267-
Enable experimental distributed tracing. Deprecated in v3.6 and will be decommissioned in v3.7. Use --enable-distributed-tracing instead.
267+
Enable experimental distributed tracing. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--enable-distributed-tracing' instead.
268268
--enable-distributed-tracing 'false'
269269
Enable distributed tracing.
270270
--experimental-distributed-tracing-address 'localhost:4317'
271-
Distributed tracing collector address. Deprecated in v3.6 and will be decommissioned in v3.7. Use --distributed-tracing-address instead.
271+
Distributed tracing collector address. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--distributed-tracing-address' instead.
272272
--distributed-tracing-address 'localhost:4317'
273273
Distributed tracing collector address.
274274
--experimental-distributed-tracing-service-name 'etcd'
275-
Distributed tracing service name, must be same across all etcd instances. Deprecated in v3.6 and will be decommissioned in v3.7. Use --distributed-tracing-service-name instead.
275+
Distributed tracing service name, must be same across all etcd instances. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--distributed-tracing-service-name' instead.
276276
--distributed-tracing-service-name 'etcd'
277277
Distributed tracing service name, must be same across all etcd instances.
278278
--experimental-distributed-tracing-instance-id ''
279-
Distributed tracing instance ID, must be unique per each etcd instance. Deprecated in v3.6 and will be decommissioned in v3.7. Use --distributed-tracing-instance-id instead.
279+
Distributed tracing instance ID, must be unique per each etcd instance. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--distributed-tracing-instance-id' instead.
280280
--distributed-tracing-instance-id ''
281281
Distributed tracing instance ID, must be unique per each etcd instance.
282282
--experimental-distributed-tracing-sampling-rate '0'
283-
Number of samples to collect per million spans for distributed tracing. Disabled by default. Deprecated in v3.6 and will be decommissioned in v3.7. Use --distributed-tracing-sampling-rate instead.
283+
Number of samples to collect per million spans for distributed tracing. Disabled by default. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--distributed-tracing-sampling-rate' instead.
284284
--distributed-tracing-sampling-rate '0'
285285
Number of samples to collect per million spans for distributed tracing.
286286
287287
Experimental feature:
288-
--experimental-initial-corrupt-check 'false'. It's deprecated, and will be decommissioned in v3.7. Use '--feature-gates=InitialCorruptCheck=true' instead.
289-
Enable to check data corruption before serving any client/peer traffic.
288+
--experimental-initial-corrupt-check 'false'
289+
Enable to check data corruption before serving any client/peer traffic. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=InitialCorruptCheck=true' instead.
290290
--experimental-corrupt-check-time '0s'
291-
Duration of time between cluster corruption check passes. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'corrupt-check-time' instead.
291+
Duration of time between cluster corruption check passes. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--corrupt-check-time' instead.
292292
--corrupt-check-time '0s'
293293
Duration of time between cluster corruption check passes.
294-
--experimental-compact-hash-check-enabled 'false'. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=CompactHashCheck=true' instead.
295-
Enable leader to periodically check followers compaction hashes.
294+
--experimental-compact-hash-check-enabled 'false'
295+
Enable leader to periodically check followers compaction hashes. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=CompactHashCheck=true' instead.
296296
--experimental-compact-hash-check-time '1m'
297297
Duration of time between leader checks followers compaction hashes. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--compact-hash-check-time' instead.
298298
--compact-hash-check-time '1m'
299299
Duration of time between leader checks followers compaction hashes.
300300
--experimental-enable-lease-checkpoint 'false'
301301
ExperimentalEnableLeaseCheckpoint enables primary lessor to persist lease remainingTTL to prevent indefinite auto-renewal of long lived leases. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=LeaseCheckpoint=true' instead.
302302
--experimental-compaction-batch-limit 1000
303-
ExperimentalCompactionBatchLimit sets the maximum revisions deleted in each compaction batch. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'compaction-batch-limit' instead.
303+
ExperimentalCompactionBatchLimit sets the maximum revisions deleted in each compaction batch. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--compaction-batch-limit' instead.
304304
--compaction-batch-limit 1000
305305
CompactionBatchLimit sets the maximum revisions deleted in each compaction batch.
306306
--experimental-peer-skip-client-san-verification 'false'
307-
Skip verification of SAN field in client certificate for peer connections. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'peer-skip-client-san-verification' instead.
307+
Skip verification of SAN field in client certificate for peer connections. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--peer-skip-client-san-verification' instead.
308308
--peer-skip-client-san-verification 'false'
309309
Skip verification of SAN field in client certificate for peer connections.
310310
--experimental-watch-progress-notify-interval '10m'
311-
Duration of periodical watch progress notification. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'watch-progress-notify-interval' instead.
311+
Duration of periodical watch progress notification. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--watch-progress-notify-interval' instead.
312312
--watch-progress-notify-interval '10m'
313313
Duration of periodical watch progress notification.
314314
--experimental-warning-apply-duration '100ms'
315-
Warning is generated if requests take more than this duration. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'warning-apply-duration' instead.
315+
Warning is generated if requests take more than this duration. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--warning-apply-duration' instead.
316316
--warning-apply-duration '100ms'
317317
Warning is generated if requests take more than this duration.
318-
--experimental-txn-mode-write-with-shared-buffer 'true'. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=TxnModeWriteWithSharedBuffer=true' instead.
319-
Enable the write transaction to use a shared buffer in its readonly check operations.
318+
--experimental-txn-mode-write-with-shared-buffer 'true'
319+
Enable the write transaction to use a shared buffer in its readonly check operations. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=TxnModeWriteWithSharedBuffer=true' instead.
320320
--experimental-bootstrap-defrag-threshold-megabytes
321-
Enable the defrag during etcd server bootstrap on condition that it will free at least the provided threshold of disk space. Needs to be set to non-zero value to take effect. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'bootstrap-defrag-threshold-megabytes' instead.
321+
Enable the defrag during etcd server bootstrap on condition that it will free at least the provided threshold of disk space. Needs to be set to non-zero value to take effect. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--bootstrap-defrag-threshold-megabytes' instead.
322322
--bootstrap-defrag-threshold-megabytes
323323
Enable the defrag during etcd server bootstrap on condition that it will free at least the provided threshold of disk space. Needs to be set to non-zero value to take effect.
324324
--experimental-warning-unary-request-duration '300ms'
325-
Set time duration after which a warning is generated if a unary request takes more than this duration. It's deprecated, and will be decommissioned in v3.7. Use --warning-unary-request-duration instead.
325+
Set time duration after which a warning is generated if a unary request takes more than this duration. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--warning-unary-request-duration' instead.
326326
--experimental-max-learners '1'
327-
Set the max number of learner members allowed in the cluster membership. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'max-learners' instead.
327+
Set the max number of learner members allowed in the cluster membership. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--max-learners' instead.
328328
--max-learners '1'
329329
Set the max number of learner members allowed in the cluster membership.
330330
--experimental-snapshot-catch-up-entries '5000'
331331
Number of entries for a slow follower to catch up after compacting the raft storage entries.
332332
--experimental-compaction-sleep-interval
333-
Sets the sleep interval between each compaction batch. Deprecated in v3.6 and will be decommissioned in v3.7. Use 'compaction-sleep-interval' instead.
333+
Sets the sleep interval between each compaction batch. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--compaction-sleep-interval' instead.
334334
--compaction-sleep-interval
335335
Sets the sleep interval between each compaction batch.
336336
--experimental-downgrade-check-time
337-
Duration of time between two downgrade status checks. Deprecated in v3.6 and will be decommissioned in v3.7. Use "downgrade-check-time" instead.
337+
Duration of time between two downgrade status checks. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--downgrade-check-time' instead.
338338
--downgrade-check-time
339339
Duration of time between two downgrade status checks.
340340
--experimental-enable-lease-checkpoint-persist 'false'
@@ -346,7 +346,7 @@ Experimental feature:
346346
--snapshot-catchup-entries
347347
Number of entries for a slow follower to catch up after compacting the raft storage entries.
348348
--experimental-stop-grpc-service-on-defrag
349-
Enable etcd gRPC service to stop serving client requests on defragmentation. It's deprecated, and will be decommissioned in v3.7. Use '--feature-gates=StopGRPCServiceOnDefrag=true' instead.
349+
Enable etcd gRPC service to stop serving client requests on defragmentation. Deprecated in v3.6 and will be decommissioned in v3.7. Use '--feature-gates=StopGRPCServiceOnDefrag=true' instead.
350350
351351
Unsafe feature:
352352
--force-new-cluster 'false'

0 commit comments

Comments
 (0)