demonstrate that remoteManifests rendering is broken #9828
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.
Related:
#5855
#5216
Description
The method
ReplaceRemoteManifestImages
is no longer used anywhere except the test case modified in this PR. This is a hint that all manifests, even those from remote, go throughReplaceImages
. So this one-line PR exists to demonstrate that a regression has taken place for remoteManifests by showing that it breaks a test case; but is correct to be broken, because the without the change in this PR the test is exercising an orphaned code path.The expectations outlined in the test case are real expectations that the community relies on for remote manifests.
If I were a better Go programmer, I would love to also PR a fix for this, but I hope this PR make the issue easy to understand.
TL;DR: If this test case were an integration test rather than a unit test, I think it would have started failing 2.5 years ago.
User facing changes
Before:
All tests pass, so we think there is no issue
After:
kubernetes/manifest unit tests fail, revealing the truth about how remoteManifests no longer work
Follow-up Work (remove if N/A)
The handling of remoteManifests needs some tune-up.
Commits in #7603 and #7658 fully removed any actual code paths to ReplaceRemoteManifestImages.