asset/manifests: network and ingress equal from state file and on-disk #871
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The on-disk and in-state-file versions of the Network and Ingress manifest assets are not evaluating as equal when read into the store. Consequently, they are being marked as dirty, even when the user has not made any changes to them. This propagates to the Operators and Openshift manifest assets, making them dirty as well.
For both assets, the underlying issue is that the
configfield is not stored in the state file but it is populated when loading from on-disk. Theconfigfield inmanifests.Networkhas been made public, allowing it to be stored in the state file. Theconfigfield inmanifests.Ingresshas been removed, since it is not being used.Fixes https://jira.coreos.com/browse/CORS-938
https://jira.coreos.com/browse/CORS-940 has been created to add tests to ensure that there are not more assets that have this same problem.