Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change deployment image reconciling #348

Merged

Conversation

ultram4rine
Copy link
Contributor

@ultram4rine ultram4rine commented Feb 16, 2024

Closes #346

πŸ“‘ Description

Fix deployment image update if repository has a port.

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

Also change Update the deployment image behavior. Now it will keep deployment image in sync with repo and version from K8sGPT CRD. Please tell me if this is wrong.

@ultram4rine ultram4rine requested review from a team as code owners February 16, 2024 14:35
Signed-off-by: ultram4rine <ultramarine730@gmail.com>
@ultram4rine ultram4rine force-pushed the fix/wrong-deployment-image-processing branch from 4114316 to b4f4b0d Compare February 16, 2024 14:39
controllers/k8sgpt_controller.go Outdated Show resolved Hide resolved
@ultram4rine ultram4rine force-pushed the fix/wrong-deployment-image-processing branch from 71db2f7 to 19dee35 Compare April 20, 2024 17:39
@ultram4rine
Copy link
Contributor Author

New func should work, playground: https://go.dev/play/p/eYTOsZhlJGH

Copy link
Member

@arbreezy arbreezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more readable as well, thanks @ultram4rine

@arbreezy arbreezy merged commit 6633529 into k8sgpt-ai:main Apr 22, 2024
6 checks passed
MateSousa pushed a commit to MateSousa/k8sgpt-operator that referenced this pull request May 2, 2024
* fix: change deployment image reconciling

Signed-off-by: ultram4rine <ultramarine730@gmail.com>

* improve image reconciling

Signed-off-by: ultram4rine <ultramarine730@gmail.com>

---------

Signed-off-by: ultram4rine <ultramarine730@gmail.com>
Co-authored-by: Aris Boutselis <arisboutselis08@gmail.com>
Signed-off-by: Matheus Sousa <matessousa@outlook.com>
@ultram4rine ultram4rine deleted the fix/wrong-deployment-image-processing branch May 4, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong deployment image processing
2 participants