Skip to content

Deploy the bundled NSTemplateTiers using SSA#1185

Merged
metlos merged 4 commits intocodeready-toolchain:masterfrom
metlos:ssa-bundled-tiers
Jul 10, 2025
Merged

Deploy the bundled NSTemplateTiers using SSA#1185
metlos merged 4 commits intocodeready-toolchain:masterfrom
metlos:ssa-bundled-tiers

Conversation

@metlos
Copy link
Contributor

@metlos metlos commented Jul 2, 2025

Comment on lines 34 to 41
if !canUpdate {
if err := client.Create(ctx, toEnsure); err != nil && !apierrors.IsAlreadyExists(err) {
return false, err
}
return true, nil
}
applyCl := commonclient.NewApplyClient(client)
return applyCl.ApplyObject(ctx, toEnsure, commonclient.ForceUpdate(true))
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to clarify the original code - the purpose of the "canUpdate" parameter was to ensure immutability of the TierTemplates - they should be created only, not updated.
However, this requirement will go away as soon as we finish the NSTemplateTier refactoring effort, so it's probably fine to remove this check.
Also, all other tests should verify that there is no TierTemplate that would be updated

@openshift-ci
Copy link

openshift-ci bot commented Jul 3, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, metlos

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,alexeykazakov,metlos]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 8, 2025

@metlos
Copy link
Contributor Author

metlos commented Jul 9, 2025

/retest

@metlos metlos merged commit 4d9e730 into codeready-toolchain:master Jul 10, 2025
10 of 15 checks passed
@codecov
Copy link

codecov bot commented Jul 10, 2025

Codecov Report

Attention: Patch coverage is 55.81395% with 19 lines in your changes missing coverage. Please review.

Project coverage is 71.10%. Comparing base (951ae7b) to head (123b007).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...plates/nstemplatetiers/nstemplatetier_generator.go 70.58% 7 Missing and 3 partials ⚠️
test/nstemplatetier/nstemplatetier.go 0.00% 9 Missing ⚠️

❌ Your changes status has failed because you have indirect coverage changes. Learn more about Unexpected Coverage Changes and reasons for indirect coverage changes.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1185      +/-   ##
==========================================
- Coverage   71.21%   71.10%   -0.12%     
==========================================
  Files          82       82              
  Lines        7977     8008      +31     
==========================================
+ Hits         5681     5694      +13     
- Misses       2092     2107      +15     
- Partials      204      207       +3     
Files with missing lines Coverage Δ
test/nstemplatetier/nstemplatetier.go 0.00% <0.00%> (ø)
...plates/nstemplatetiers/nstemplatetier_generator.go 61.97% <70.58%> (-0.53%) ⬇️

... and 1 file with indirect coverage changes

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

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.

3 participants