From 6db3129f614e8ecd15b34cde0120f286b4b258c6 Mon Sep 17 00:00:00 2001 From: Shubhendu Ram Tripathi Date: Wed, 25 Oct 2023 13:28:49 +0530 Subject: [PATCH] Replicate ILM expiry replication config across sites Signed-off-by: Shubhendu Ram Tripathi --- cluster-commands.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cluster-commands.go b/cluster-commands.go index 1c80366..c6fe435 100644 --- a/cluster-commands.go +++ b/cluster-commands.go @@ -151,10 +151,11 @@ func (adm *AdminClient) SiteReplicationInfo(ctx context.Context) (info SiteRepli // SRPeerJoinReq - arg body for SRPeerJoin type SRPeerJoinReq struct { - SvcAcctAccessKey string `json:"svcAcctAccessKey"` - SvcAcctSecretKey string `json:"svcAcctSecretKey"` - SvcAcctParent string `json:"svcAcctParent"` - Peers map[string]PeerInfo `json:"peers"` + SvcAcctAccessKey string `json:"svcAcctAccessKey"` + SvcAcctSecretKey string `json:"svcAcctSecretKey"` + SvcAcctParent string `json:"svcAcctParent"` + Peers map[string]PeerInfo `json:"peers"` + ReplicateILMExpiry bool `json:"replicate-ilm-expiry"` } // PeerInfo - contains some properties of a cluster peer. @@ -163,9 +164,10 @@ type PeerInfo struct { Name string `json:"name"` // Deployment ID is useful as it is immutable - though endpoint may // change. - DeploymentID string `json:"deploymentID"` - SyncState SyncStatus `json:"sync"` // whether to enable| disable synchronous replication - DefaultBandwidth BucketBandwidth `json:"defaultbandwidth"` // bandwidth limit per bucket in bytes/sec + DeploymentID string `json:"deploymentID"` + SyncState SyncStatus `json:"sync"` // whether to enable| disable synchronous replication + DefaultBandwidth BucketBandwidth `json:"defaultbandwidth"` // bandwidth limit per bucket in bytes/sec + ReplicateILMExpiry bool `json:"replicate-ilm-expiry"` } // BucketBandwidth has default bandwidth limit per bucket in bytes/sec