Skip to content

Commit 7bff181

Browse files
committed
Update import paths in subscription.go and go.mod for consistency
1 parent 9fe9af0 commit 7bff181

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require (
88
github.com/jaypipes/ghw v0.23.0
99
github.com/onsi/ginkgo/v2 v2.28.1
1010
github.com/onsi/gomega v1.39.1
11+
github.com/prometheus/client_golang v1.23.2
1112
github.com/safchain/ethtool v0.7.0
1213
github.com/siderolabs/go-smbios v0.3.3
1314
github.com/spf13/cobra v1.10.2
@@ -70,7 +71,6 @@ require (
7071
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7172
github.com/pkg/errors v0.9.1 // indirect
7273
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
73-
github.com/prometheus/client_golang v1.23.2 // indirect
7474
github.com/prometheus/client_model v0.6.2 // indirect
7575
github.com/prometheus/common v0.67.1 // indirect
7676
github.com/prometheus/procfs v0.19.1 // indirect

internal/serverevents/subscription.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ import (
88
"fmt"
99

1010
"github.com/ironcore-dev/metal-operator/bmc"
11-
"github.com/stmcginnis/gofish/redfish"
11+
"github.com/stmcginnis/gofish/schemas"
1212
)
1313

14-
// SubscribeMetricsReport subscribes to Redfish metric reporting events for the given hostname and callback URL.
14+
// SubscribeMetricsReport subscribes to sRedfish metric reporting events for the given hostname and callback URL.
1515
func SubscribeMetricsReport(ctx context.Context, url, hostname string, bmcClient bmc.BMC) (string, error) {
1616
link, err := bmcClient.CreateEventSubscription(
1717
ctx,
1818
fmt.Sprintf("%s/serverevents/metricsreport/%s", url, hostname),
19-
redfish.MetricReportEventFormatType,
20-
redfish.TerminateAfterRetriesDeliveryRetryPolicy,
19+
schemas.MetricReportEventFormatType,
20+
schemas.TerminateAfterRetriesDeliveryRetryPolicy,
2121
)
2222
if err != nil {
2323
return link, fmt.Errorf("failed to create event subscription: %w", err)
@@ -30,8 +30,8 @@ func SubscribeEvents(ctx context.Context, url, hostname string, bmcClient bmc.BM
3030
link, err := bmcClient.CreateEventSubscription(
3131
ctx,
3232
fmt.Sprintf("%s/serverevents/alerts/%s", url, hostname),
33-
redfish.EventEventFormatType,
34-
redfish.TerminateAfterRetriesDeliveryRetryPolicy,
33+
schemas.EventEventFormatType,
34+
schemas.TerminateAfterRetriesDeliveryRetryPolicy,
3535
)
3636
if err != nil {
3737
return link, fmt.Errorf("failed to create alert subscription: %w", err)

0 commit comments

Comments
 (0)