-
Bug
-
Resolution: Done
-
Major
-
3.26.0.GA
-
None
-
False
-
-
False
-
Workaround Exists
-
-
-
-
Description of problem:
Dev Spaces operator misbehaves when the {{gitTrustedCertsConfigMapName }}points to a ConfigMap that has more than one data.keys.
Prerequisites (if any, like setup, operators/versions):
{}Dev Spaces v3.26
Steps to Reproduce:
Follow https://eclipse.dev/che/docs/stable/administration-guide/deploying-che-with-support-for-git-repositories-with-self-signed-certificates/ but create a ConfigMap with more than one data.key. The more keys you add, the more often you will see bad behavior.
Actual results:
During its normal reconciliation process, v3.26 of the Dev Spaces operator evaluates the ConfigMap, returning a list of its data.keys in a random order. The operator interprets the different ordering of keys as a change to the ConfigMap that it has to process (this is a bug, there was no change).
When the ConfigMap processing logic executes, it increments the CM_VERSION environment variable value for the devspaces Deployment, which causes a new ReplicaSet to be created and the devspaces Pod to be replaced.
Expected results:
The Dev Spaces operator properly evaluates the ConfigMap has "no change" and takes no action.
Reproducibility (Always/Intermittent/Only Once):
Always
Acceptance criteria:
Given a user may create gitTrustedCertsConfigMapName with more than one data.key if they have multiple CA bundles they need to include,
When the operator logic is updated to return the list of data.keys in the same order each time, (sort?)
Then the unnecessary devspaces Deployment rollouts will cease.
Definition of Done:
Build Details:
Additional info (Such as Logs, Screenshots, etc):