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

Add a controller for NicFirmwareTemplates #79

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

Conversation

almaslennikov
Copy link
Collaborator

@almaslennikov almaslennikov commented Feb 19, 2025

The template apply logic is very similar to the one we already have for the NicConfigurationTemplate, so let's extract it into a separate file and reuse in both controllers

@coveralls
Copy link

coveralls commented Feb 19, 2025

Pull Request Test Coverage Report for Build 13457135054

Details

  • 153 of 273 (56.04%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.2%) to 54.767%

Changes Missing Coverage Covered Lines Changed/Added Lines %
api/v1alpha1/zz_generated.deepcopy.go 12 20 60.0%
internal/controller/template_matcher.go 113 128 88.28%
internal/controller/nicfirmwaretemplate_controller.go 0 97 0.0%
Totals Coverage Status
Change from base Build 13435211666: -1.2%
Covered Lines: 1821
Relevant Lines: 3325

💛 - Coveralls

@almaslennikov almaslennikov force-pushed the fw-configuration-template-controller branch from 1045cf1 to cedd770 Compare February 21, 2025 09:28
The controller reuses the logic extracted to template_matcher.go

Signed-off-by: Alexander Maslennikov <[email protected]>
@almaslennikov almaslennikov force-pushed the fw-configuration-template-controller branch from cedd770 to 4a3dc9d Compare February 21, 2025 12:48
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.

2 participants