diff --git a/.chloggen/matth.versioned_config.yaml b/.chloggen/matth.versioned_config.yaml index 8f1e8cd3ee..b49551e923 100755 --- a/.chloggen/matth.versioned_config.yaml +++ b/.chloggen/matth.versioned_config.yaml @@ -13,4 +13,5 @@ issues: [2871] # (Optional) One or more lines of additional information to render under the primary note. # These lines will be padded with 2 spaces and then inserted directly into the document. # Use pipe (|) for multiline entries. -subtext: +subtext: | + This change introduces a new field in the Collector ConfigMap, `ConfigVersions`, which allows users to specify the number of previous versions of the Collector ConfigMap to keep. The default value is 1, which means that the current and one previous version of the Collector ConfigMap are kept. By keeping historical versions of the configuration, we ensure that during a config upgrade the previous configuration is still available for running (non-upgraded) pods as well as for rollbacks. If we overwrite the original ConfigMap with the new configuration, any pod which restarts for any reason will get the new configuration, which makes rollouts impossible to control. \ No newline at end of file diff --git a/internal/manifests/collector/configmap_test.go b/internal/manifests/collector/configmap_test.go index d1c2f91001..8581b5ab20 100644 --- a/internal/manifests/collector/configmap_test.go +++ b/internal/manifests/collector/configmap_test.go @@ -19,6 +19,7 @@ import ( "github.com/open-telemetry/opentelemetry-operator/internal/manifests/manifestutils" "github.com/open-telemetry/opentelemetry-operator/internal/naming" + "github.com/stretchr/testify/assert" )