Skip to content

Implement istiobase controller #802

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

luksa
Copy link
Contributor

@luksa luksa commented Apr 28, 2025

The istiobase controller manages the application of the base chart. As only one instance of this chart can be installed at once, this has to be done by a new controller. If we had added the rendering of this chart to the istiorevision controller, we could have two instances of that controller both trying to update the chart/release.

Addresses #749

@luksa luksa requested a review from a team as a code owner April 28, 2025 06:50
@luksa
Copy link
Contributor Author

luksa commented Apr 28, 2025

Needs #801

@luksa luksa force-pushed the istiobase_controller branch from abda715 to 9cf3e63 Compare April 29, 2025 12:02
Copy link

codecov bot commented Apr 29, 2025

Codecov Report

Attention: Patch coverage is 3.49650% with 138 lines in your changes missing coverage. Please review.

Project coverage is 48.90%. Comparing base (ac14e1d) to head (8a039d2).

Files with missing lines Patch % Lines
controllers/istiobase/istiobase_controller.go 0.00% 120 Missing ⚠️
pkg/helm/chartmanager.go 0.00% 8 Missing ⚠️
cmd/main.go 0.00% 6 Missing ⚠️
controllers/istiocni/istiocni_controller.go 0.00% 1 Missing ⚠️
...trollers/istiorevision/istiorevision_controller.go 0.00% 1 Missing ⚠️
...rs/istiorevisiontag/istiorevisiontag_controller.go 0.00% 1 Missing ⚠️
controllers/ztunnel/ztunnel_controller.go 0.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (ac14e1d) and HEAD (8a039d2). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ac14e1d) HEAD (8a039d2)
2 1
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #802       +/-   ##
===========================================
- Coverage   76.36%   48.90%   -27.47%     
===========================================
  Files          44       45        +1     
  Lines        2636     2773      +137     
===========================================
- Hits         2013     1356      -657     
- Misses        535     1352      +817     
+ Partials       88       65       -23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@nrfox nrfox left a comment

Choose a reason for hiding this comment

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

LGTM, do we need any tests for this?

@luksa luksa force-pushed the istiobase_controller branch 4 times, most recently from 8e3e549 to 8e5524e Compare April 30, 2025 08:09
@luksa
Copy link
Contributor Author

luksa commented Apr 30, 2025

/retest

@dgn
Copy link
Collaborator

dgn commented Apr 30, 2025

LGTM, do we need any tests for this?

I was about to write the same comment, some tests would be good

@luksa
Copy link
Contributor Author

luksa commented Apr 30, 2025

Yeah, I'm just about done with the tests.

@luksa luksa force-pushed the istiobase_controller branch from 8e5524e to 7feaafe Compare April 30, 2025 12:27
@luksa
Copy link
Contributor Author

luksa commented Apr 30, 2025

/retest

1 similar comment
@luksa
Copy link
Contributor Author

luksa commented Apr 30, 2025

/retest

@luksa luksa force-pushed the istiobase_controller branch from 7feaafe to ed577c9 Compare April 30, 2025 14:11
@luksa
Copy link
Contributor Author

luksa commented Apr 30, 2025

Not sure what's up with the integration test coverage job, because the integration tests pass fine when you run them locally (and in CI). There is a strange error message related to the revisiontag controller:

 2025-04-30T14:15:40Z	ERROR	ctrlr.revtag	Reconciler error	{"IstioRevisionTag": "default", "reconcileID": "5ca78ebf-7352-4088-9039-a474e9bed946", "error": "failed to uninstall Helm chart \"revisiontags\": uninstallation completed with 1 error(s): uninstall: Failed to purge the release: release: not found"}

@dgn
Copy link
Collaborator

dgn commented May 5, 2025

/test all

@dgn dgn self-assigned this May 15, 2025
luksa added 3 commits May 22, 2025 10:10
The istiobase controller manages the application of the base chart. As only one instance of this chart can be installed at once, this has to be done by a new controller. If we had added the rendering of this chart to the istiorevision controller, we could have two instances of that controller both trying to update the chart/release.

Signed-off-by: Marko Lukša <[email protected]>
Signed-off-by: Daniel Grimm <[email protected]>
Signed-off-by: Marko Lukša <[email protected]>
Signed-off-by: Daniel Grimm <[email protected]>
… in a different namespace

Signed-off-by: Marko Lukša <[email protected]>
Signed-off-by: Daniel Grimm <[email protected]>
@dgn dgn force-pushed the istiobase_controller branch from ed577c9 to ad3d3b8 Compare May 22, 2025 08:17
@istio-testing
Copy link
Collaborator

@luksa: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
integ-tests-arm64_sail-operator_main 8a039d2 link true /test integ-tests-arm64
docs-test_sail-operator_main 8a039d2 link false /test docs-test
e2e-kind-multicluster_sail-operator_main 8a039d2 link true /test e2e-kind-multicluster

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants