Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson committed Dec 17, 2024
1 parent b31f7ca commit 408b6f4
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 32 deletions.
8 changes: 0 additions & 8 deletions pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,3 @@ func FormatScrapedNamespaces(lc loggedcluster.Interface, namespaces []string) st

return "[]"
}

func FormatScrapedNamespaces(lc loggedcluster.Interface, namespaces []string) string {
if IsWorkloadCluster(lc) {
return fmt.Sprintf("[\"%s\"]", strings.Join(namespaces, "\", \""))
}

return "[]"
}
1 change: 1 addition & 0 deletions pkg/resource/events-logger-config/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package eventsloggerconfig
import (
"context"
"reflect"

"github.com/pkg/errors"
v1 "k8s.io/api/core/v1"
apimachineryerrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
1 change: 1 addition & 0 deletions pkg/resource/events-logger-secret/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package eventsloggersecret
import (
"context"
"reflect"

"github.com/pkg/errors"
v1 "k8s.io/api/core/v1"
apimachineryerrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-installation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-installation",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-cluster",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,6 @@ alloy:
tls_config {
insecure_skip_verify = false
}
tls_config {
insecure_skip_verify = false
}
}
external_labels = {
cluster_id = "test-cluster",
Expand Down

0 comments on commit 408b6f4

Please sign in to comment.