Container image isn't rebuilt on repository change
See original GitHub issueDescribe the bug
When updating the container image repository (spec.build.output.image
) in a KafkaConnect
resource, the operator reports “Build configuration did not changed. Nothing new to build.”. While reading the source code, I stumbled over the strimzi.io/force-rebuild
annotation, which seems to be undocumented - the image rebuilt successfully afterwards.
To Reproduce Steps to reproduce the behavior:
- Change the build output image repository in
spec.build.output.image
- The operator will not trigger a rebuild (and push) of the image to the new repository
Expected behavior The operator should trigger a rebuild of the image and a rolling upgrade of the connectors.
Environment (please complete the following information):
- Strimzi version: 0.25.0
- Installation method: Helm chart
- Kubernetes cluster: Kubernetes 1.21
- Infrastructure: Amazon EKS
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
docker image is not rebuilt automatically on file change
Docker is not going to rebuild an image on a file change. I suspect you are really asking why node has not rebuilt/reacted/reloaded...
Read more >You Don't Need to Rebuild Your Development Docker Image ...
You don't need to restart it - the folder is shared and the changes you make locally will be noticed quickly by the...
Read more >Docker compose up does not rebuild containers when images ...
When running docker compose up, existing containers with images that have changed continue running as is without any rebuild.
Read more >Create a Dev Container - Visual Studio Code
When editing the contents of the .devcontainer folder, you'll need to rebuild for changes to take effect. Use the Dev Containers: Rebuild Container...
Read more >Set up Automated Builds - Docker Documentation
Configure automated build settings · From the Repositories section, select a repository to view its details. · Select the Builds tab....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are always happy to accept contributions. I think the best way to fix this would be to append the information about the output to the existing build revision.
We plan to start working on the 0.26.0 release some time early next week. Is it important for you to have the fix in it? If yes, do you think you will have time for the PR to get it into it? If it is important for you and you are not sure you will be able to make it I can have a look at it as well. Otherwise I think we are fine to wait and just get it into some later release.
Another reason for rebuilding is that after removing all references to the repo from the
KafkaConnector
resource, the user expects to be able to destroy the repository.Not forcing a rebuild in order to create the image in the new repo breaks that expectation, because destroying the repo would cause any scheduling of replicas in nodes that don’t have the image cached to fail.