question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Container image isn't rebuilt on repository change

See original GitHub issue

Describe 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:

  1. Change the build output image repository in spec.build.output.image
  2. 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:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
scholzjcommented, Oct 1, 2021

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.

1reaction
juniorzcommented, Oct 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found