138
139
// NewEnabledArchivalConfig returns an ArchivalConfig where archival is enabled for both the cluster and the namespace
141
>
return &archivalConfig{
142
>
staticClusterState: ArchivalEnabled,
143
>
dynamicClusterState: dynamicconfig.GetStringPropertyFn("enabled"),
144
>
enableRead: dynamicconfig.GetBoolPropertyFn(true),
145
>
namespaceDefaultState: enumspb.ARCHIVAL_STATE_ENABLED,
146
>
namespaceDefaultURI: "some-uri",
147
>
}
148
>
}
149
150
// ClusterConfiguredForArchival returns true if cluster is configured to handle archival, false otherwise