Skip to content

Draft:CSPL-3675 Update Operator-SDK to v1.39 #1488

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 55 commits into
base: develop
Choose a base branch
from

Conversation

Igor-splunk
Copy link
Collaborator

@Igor-splunk Igor-splunk commented Apr 14, 2025

@coveralls
Copy link
Collaborator

coveralls commented Apr 14, 2025

Pull Request Test Coverage Report for Build 15271737043

Details

  • 267 of 271 (98.52%) changed or added relevant lines in 13 files are covered.
  • 399 unchanged lines in 10 files lost coverage.
  • Overall coverage increased (+0.1%) to 86.716%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/splunk/enterprise/upgrade.go 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
pkg/splunk/enterprise/afwscheduler.go 1 92.96%
pkg/splunk/enterprise/licensemaster.go 12 78.01%
pkg/splunk/enterprise/licensemanager.go 13 77.4%
pkg/splunk/enterprise/clustermaster.go 30 77.48%
pkg/splunk/client/enterprise.go 33 91.34%
pkg/splunk/enterprise/searchheadcluster.go 34 82.91%
pkg/splunk/enterprise/standalone.go 35 72.22%
pkg/splunk/enterprise/clustermanager.go 47 78.59%
pkg/splunk/enterprise/indexercluster.go 71 71.25%
pkg/splunk/enterprise/util.go 123 90.64%
Totals Coverage Status
Change from base Build 14714583762: 0.1%
Covered Lines: 10627
Relevant Lines: 12255

💛 - Coveralls

@Igor-splunk Igor-splunk changed the title Draft:CSPL-3675 Draft:CSPL-3675 Update Operator-SDK to v1.39 Apr 15, 2025
igor.grzankowski added 2 commits April 16, 2025 14:31
@@ -63,7 +63,7 @@ var _ = BeforeSuite(func(ctx context.Context) {
By("bootstrapping test environment")

testEnv = &envtest.Environment{
CRDDirectoryPaths: []string{filepath.Join("..", "config", "crd", "bases")},
CRDDirectoryPaths: []string{filepath.Join("..", "..", "config", "crd", "bases")},
Copy link
Collaborator

Choose a reason for hiding this comment

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

is it intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

cmd/main.go Outdated
@@ -123,56 +125,56 @@ func main() {
os.Exit(1)
}

if err = (&controllers.ClusterMasterReconciler{
if err = (&controller2.ClusterMasterReconciler{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change this to splunk-controller instead.

predicate.GenerationChangedPredicate{},
predicate.AnnotationChangedPredicate{},
common.GenerationChangedPredicate(),
common.AnnotationChangedPredicate(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Come back to this change.

err = ctrl.Watch(
source.Kind(mgr.GetCache(), instance, &handler.TypedEnqueueRequestForObject[splcommon.MetaObject]{}),
)
//err = ctrl.Watch(&source.Kind{Type: instance}, &handler.EnqueueRequestForObject{})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove commented line if not needed.

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.

4 participants