repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/informer/informer.go | proxy/pkg/informer/informer.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
// Package informer provides a controller that watches ManagedCluster resources to keep a label allowlist synchronized.
//
// The primary role of this package is to automatically dis... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/config/config.go | proxy/pkg/config/config.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package config
import (
projectv1 "github.com/openshift/api/project/v1"
userv1 "github.com/openshift/api/user/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/me... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/rewrite/rewrite_cluster_test.go | proxy/pkg/rewrite/rewrite_cluster_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rewrite
import "testing"
func TestInjectClusterLabels(t *testing.T) {
caseList := []struct {
name string
query string
values []string
expected string
}{
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/rewrite/rewrite_test.go | proxy/pkg/rewrite/rewrite_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rewrite
import "testing"
func TestInjectLabels(t *testing.T) {
caseList := []struct {
name string
query string
label string
values []string
expected ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/rewrite/rewrite.go | proxy/pkg/rewrite/rewrite.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rewrite
import (
"strings"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
"k8s.io/klog"
)
// labelInjector is a visit... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/pkg/rewrite/rewrite_cluster.go | proxy/pkg/rewrite/rewrite_cluster.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rewrite
import (
"strings"
"github.com/prometheus/prometheus/model/labels"
"github.com/prometheus/prometheus/promql/parser"
proxyconfig "github.com/stolostron/multiclus... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/proxy/cmd/main.go | proxy/cmd/main.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package main
import (
"context"
"flag"
"fmt"
"net/http"
"net/url"
"os"
"os/signal"
"syscall"
"time"
"github.com/spf13/pflag"
"k8s.io/client-go/kubernetes"
"k8s.io/klog/... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_right_sizing_test.go | tests/pkg/tests/observability_right_sizing_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"slices"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_config_test.go | tests/pkg/tests/observability_config_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"os"
"slices"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_route_test.go | tests/pkg/tests/observability_route_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"bytes"
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"net/http"
"os"
"strings"
"errors"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.i... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_uninstall_test.go | tests/pkg/tests/observability_uninstall_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"errors"
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/stolostron... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_alert_test.go | tests/pkg/tests/observability_alert_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"os"
"slices"
"strings"
. "github.com/onsi/ginkgo/v2"
. "gi... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_certrenew_test.go | tests/pkg/tests/observability_certrenew_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"fmt"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/klog"
"github.com/stolostron/multicluster-observability-opera... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_deployment_test.go | tests/pkg/tests/observability_deployment_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"os"
"strings"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_endpoint_preserve_test.go | tests/pkg/tests/observability_endpoint_preserve_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"os"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
appv1 "k8s.io/api/apps/v1"
v1 "k8s.io/api/core/v1"
rbacv1 "k8s.io/api/rbac/v1"
"github... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_rbac_test.go | tests/pkg/tests/observability_rbac_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"bytes"
"fmt"
"os"
"os/exec"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
"github.com/onsi/ginkgo/v2/types"
. "github.com/onsi/gomega"
"github.co... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_export_test.go | tests/pkg/tests/observability_export_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"os"
"strings"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stolostron/multicluster-observability-operator/te... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_observatorium_preserve_test.go | tests/pkg/tests/observability_observatorium_preserve_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"errors"
"fmt"
"slices"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_install_test.go | tests/pkg/tests/observability_install_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"os"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
"g... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_retention_test.go | tests/pkg/tests/observability_retention_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"math"
"reflect"
"slices"
"strconv"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/me... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_grafana_dev_test.go | tests/pkg/tests/observability_grafana_dev_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"bytes"
"os/exec"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/klog"
"github.com/stolostron/multicluster-observability-operator/te... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_metrics_test.go | tests/pkg/tests/observability_metrics_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/stolostron/multiclu... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_dashboard_test.go | tests/pkg/tests/observability_dashboard_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stolostron/multicluster-observability-operator/tests/pkg/kustomize"
"github.com/stol... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_reconcile_test.go | tests/pkg/tests/observability_reconcile_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"os"
"slices"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_mcoa_test.go | tests/pkg/tests/observability_mcoa_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stolostron/multicluster-observability-operator/tests/pkg/ut... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_manifestwork_test.go | tests/pkg/tests/observability_manifestwork_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"errors"
"fmt"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"github.com/stolostro... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_addon_test.go | tests/pkg/tests/observability_addon_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"fmt"
"strings"
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability-e2e-test_suite_test.go | tests/pkg/tests/observability-e2e-test_suite_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"flag"
"fmt"
"math/rand"
"os"
"strings"
"testing"
"time"
. "github.com/onsi/ginkgo/v2"
"github.com/onsi/ginkgo/v2/reporters"
. "github.com/onsi/gom... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/tests/observability_grafana_test.go | tests/pkg/tests/observability_grafana_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package tests
import (
"context"
"encoding/json"
"fmt"
"strings"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachiner... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/kustomize/render_test.go | tests/pkg/kustomize/render_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package kustomize
import (
"bytes"
"io"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/yaml.v2"
)
func TestRender(... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/kustomize/render.go | tests/pkg/kustomize/render.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package kustomize
import (
"sigs.k8s.io/kustomize/api/krusty"
"sigs.k8s.io/kustomize/kyaml/filesys"
"sigs.k8s.io/yaml"
)
// Options ...
type Options struct {
KustomizationPath ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/kube_debug.go | tests/pkg/utils/kube_debug.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"encoding/json"
"fmt"
"os"
"strings"
"text/tabwriter"
"time"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apima... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_openshift.go | tests/pkg/utils/mco_openshift.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
const (
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_export.go | tests/pkg/utils/mco_export.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"os"
"github.com/stolostron/multicluster-observability-operator/tests/pkg/kustomize"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apima... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_scrapeconfig.go | tests/pkg/utils/mco_scrapeconfig.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
)
func ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_clusterrolebinding.go | tests/pkg/utils/mco_clusterrolebinding.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
rbacv1 "k8s.io/api/rbac/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
func GetCRB(op... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_subscription.go | tests/pkg/utils/mco_subscription.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
"time"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachi... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/client.go | tests/pkg/utils/client.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"k8s.io/client-go/dynamic"
"k8s.io/client-go/kubernetes"
"k8s.io/klog"
)
func GetKubeClient(opt TestOptions, isHub bool) kubernetes.Interface {
clientKub... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_cert_secret.go | tests/pkg/utils/mco_cert_secret.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
const (
ServerCACerts = "observability-server-ca-certs"
ClientCACerts = "observ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_pods.go | tests/pkg/utils/mco_pods.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"bytes"
"context"
"io"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
func GetPodList(opt TestOptions, isHub bo... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_dashboard.go | tests/pkg/utils/mco_dashboard.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"crypto/tls"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"os"
"strings"
"k8s.io/klog"
)
const (
trueStr = "true"
)
func ContainDashboard(opt TestOpt... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_crd.go | tests/pkg/utils/mco_crd.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
"time"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_prometheusagent.go | tests/pkg/utils/mco_prometheusagent.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime/schem... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/cluster_deploy.go | tests/pkg/utils/cluster_deploy.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
// ClusterDeploy defines the data passed to Hive
type ClusterDeploy struct {
Kind string `yaml:"kind"`
APIVersion string `yaml:"apiVersion"`
Items []It... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/utils.go | tests/pkg/utils/utils.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"bytes"
"context"
"errors"
"fmt"
"os"
"os/exec"
"os/user"
"path/filepath"
"strings"
"time"
"github.com/ghodss/yaml"
appsv1 "k8s.io/api/apps/v1"
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/install_config.go | tests/pkg/utils/install_config.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
// InstallConfig definition for install config structure from install-config.yaml
type InstallConfig struct {
BaseDomain string `yaml:"baseDomain,omitempty"`
Net... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_addon.go | tests/pkg/utils/mco_addon.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
. "github.com/onsi/gomega"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/ru... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_namespace.go | tests/pkg/utils/mco_namespace.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
func GetNamespace(... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_configmaps.go | tests/pkg/utils/mco_configmaps.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
func GetConfigMap(opt TestOptions, isHub bool, name ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_router_ca.go | tests/pkg/utils/mco_router_ca.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/klog"
)
const (
RouterCertsSecretName = "router-ce... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_metric.go | tests/pkg/utils/mco_metric.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"crypto/tls"
"fmt"
"io"
"net/http"
"net/url"
"os"
"regexp"
"strings"
"gopkg.in/yaml.v2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_deployments.go | tests/pkg/utils/mco_deployments.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
. "github.com/onsi/gomega"
appv1 "k8s.io/api/apps/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/ap... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/clustermanagementaddon.go | tests/pkg/utils/clustermanagementaddon.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
"time"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runti... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_sa.go | tests/pkg/utils/mco_sa.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/klog"
)
func DeleteSA(opt ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_deploy.go | tests/pkg/utils/mco_deploy.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"encoding/json"
"errors"
"fmt"
"os"
"path/filepath"
"reflect"
"regexp"
"strings"
corev1 "k8s.io/api/core/v1"
k8serrors "k8s.io/apimachin... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_prometheusrule.go | tests/pkg/utils/mco_prometheusrule.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/ap... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_statefulset.go | tests/pkg/utils/mco_statefulset.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
. "github.com/onsi/gomega"
appv1 "k8s.io/api/apps/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/ap... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/options.go | tests/pkg/utils/options.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
type TestOptionsContainer struct {
Options TestOptions `yaml:"options"`
}
// Define options available for Tests to consume
type TestOptions struct {
HubCluster ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_oba.go | tests/pkg/utils/mco_oba.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"fmt"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachin... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_grafana.go | tests/pkg/utils/mco_grafana.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"os"
"strings"
)
func GetGrafanaURL(opt TestOptions) string {
cloudProvider := strings.ToLower(os.Getenv("CLOUD_PROVIDER"))
substring1 := "rosa"
substri... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/tests/pkg/utils/mco_managedcluster.go | tests/pkg/utils/mco_managedcluster.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
import (
"context"
"errors"
"fmt"
"slices"
"github.com/onsi/ginkgo/v2"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/cicd-scripts/metrics/cmd/dashcheck/main.go | cicd-scripts/metrics/cmd/dashcheck/main.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
/*
CI tool that provides a simple CLI to ensure that a list of metrics used in dashboards is well federated by
the referenced scrapeConfigs.
It ensures that metrics are not duplicate... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/cicd-scripts/metrics/cmd/rulescheck/main.go | cicd-scripts/metrics/cmd/rulescheck/main.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
/*
CI tool that provides a simple CLI to ensure that metrics resulting from rules evaluation defined in scrape configs
are defined in the listed rule files. This check applies to rul... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/cicd-scripts/metrics/internal/rule/rule.go | cicd-scripts/metrics/internal/rule/rule.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rule
import (
"errors"
"fmt"
"os"
"strings"
prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
"sigs.k8s.io/yaml"
)
func ReadFi... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/cicd-scripts/metrics/internal/scrapeconfig/scrapeconfig.go | cicd-scripts/metrics/internal/scrapeconfig/scrapeconfig.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package scrapeconfig
import (
"fmt"
"os"
"strings"
prometheusalpha1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1alpha1"
"github.com/prometheus/pr... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/cicd-scripts/metrics/internal/utils/utils.go | cicd-scripts/metrics/internal/utils/utils.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package utils
// Diff returns the list of added elements (elements from slice b that are not found in a)
// and removed elements (elements from slice a that are not found in b)
func... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/obj_compare.go | operators/pkg/util/obj_compare.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"reflect"
"strings"
"k8s.io/apimachinery/pkg/api/equality"
prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
v1 "... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/client.go | operators/pkg/util/client.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"fmt"
ocpClientSet "github.com/openshift/client-go/config/clientset/versioned"
promClientSet "github.com/prometheus-operator/prometheus-operator... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/allowlist_test.go | operators/pkg/util/allowlist_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"reflect"
"testing"
"github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/pkg/config"
operatorconfig "github.com/... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/util.go | operators/pkg/util/util.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"crypto/rand"
"encoding/base64"
"net/http"
"net/http/pprof"
"os"
"time"
appv1 "k8s.io/api/apps/v1"
k8serrors "k8s.io/apimachinery/pkg/api/e... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/client_test.go | operators/pkg/util/client_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"testing"
restclient "k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
)
const (
namespace = "namespace"
)
func TestGetStatefulSe... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/allowlist.go | operators/pkg/util/allowlist.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"maps"
"strings"
"gopkg.in/yaml.v2"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/obj_compare_test.go | operators/pkg/util/obj_compare_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"testing"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
rbacv1 "k8s.io/api/rbac/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/ap... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/util/util_test.go | operators/pkg/util/util_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"encoding/base64"
"os"
"testing"
)
// Siddharth's code
func TestRemove(t *testing.T) {
type testCaseList struct {
name string
list []string
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/rendering/renderer.go | operators/pkg/rendering/renderer.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"errors"
"maps"
"strconv"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"sigs.k8s.io/kustomize/api/resource"
)
const (
metadataErr = "fa... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/rendering/patching/patcher_test.go | operators/pkg/rendering/patching/patcher_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package patching
// var apiserver = `
// kind: Deployment
// apiVersion: apps/v1
// metadata:
// name: mcm-apiserver
// labels:
// app: "mcm-apiserver"
// spec:
// templat... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/rendering/patching/patcher.go | operators/pkg/rendering/patching/patcher.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package patching
// const (
// specFirstContainer = "spec.template.spec.containers[0]"
// )
// type patchGenerateFn func(
// res *resource.Resource,
// mco *mcov1beta2.MultiClus... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/rendering/templates/templates.go | operators/pkg/rendering/templates/templates.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package templates
import (
"log"
"os"
"sync"
"sigs.k8s.io/kustomize/api/krusty"
"sigs.k8s.io/kustomize/api/resmap"
"sigs.k8s.io/kustomize/api/resource"
"sigs.k8s.io/kustomiz... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/deploying/deployer_test.go | operators/pkg/deploying/deployer_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package deploying
import (
"context"
"testing"
prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
mcov1beta2 "github.com/stolostron/multic... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | true |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/deploying/deployer.go | operators/pkg/deploying/deployer.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package deploying
import (
"context"
"encoding/json"
"fmt"
"maps"
"strings"
prometheusv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
monitori... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/config/types.go | operators/pkg/config/types.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package config
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// HubInfo is the struct that contains the common information about the hub
// cluster, for example the nam... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/config/config.go | operators/pkg/config/config.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package config
const (
ClusterNameKey = "cluster-name"
HubInfoSecretName = "hub-info-secret"
HubInfoSecretKey = "hub-info.yaml" // #... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/status/status.go | operators/pkg/status/status.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package status
import (
"context"
"errors"
"fmt"
"time"
"github.com/go-logr/logr"
oav1beta1 "github.com/stolostron/multicluster-observability-operator/operators/multiclustero... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/pkg/status/status_test.go | operators/pkg/status/status_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package status
import (
"context"
"fmt"
"testing"
"time"
"github.com/go-logr/logr"
oav1beta1 "github.com/stolostron/multicluster-observability-operator/operators/multicluster... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/main.go | operators/multiclusterobservability/main.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package main
import (
"crypto/tls"
"flag"
"fmt"
"os"
imagev1 "github.com/openshift/api/image/v1"
imagev1client "github.com/openshift/client-go/image/clientset/versioned/type... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/remotewriteendpoint.go | operators/multiclusterobservability/pkg/util/remotewriteendpoint.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"fmt"
"net/url"
"path"
"github.com/prometheus/common/config"
)
const MountPath = "/var/run/secrets/"
type TLSConfigWithSecret struct {
// Name of the s... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/backuputil.go | operators/multiclusterobservability/pkg/util/backuputil.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/clustermanagementaddon_test.go | operators/multiclusterobservability/pkg/util/clustermanagementaddon_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"testing"
routev1 "github.com/openshift/api/route/v1"
"github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservabi... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/managedclusteraddon_test.go | operators/multiclusterobservability/pkg/util/managedclusteraddon_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"testing"
"github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/pkg/config"
"k8s.io/apimachinery/pkg/ty... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/clustermanagementaddon.go | operators/multiclusterobservability/pkg/util/clustermanagementaddon.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"fmt"
"net/url"
"github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/pkg/config"
"k8s.io/apimachinery... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/managedclusteraddon.go | operators/multiclusterobservability/pkg/util/managedclusteraddon.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"context"
"fmt"
"os"
"time"
"github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/pkg/config"
"k8s.io/apimachin... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/util/remotewriteendpoint_test.go | operators/multiclusterobservability/pkg/util/remotewriteendpoint_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package util
import (
"net/url"
"path"
"testing"
"github.com/prometheus/common/config"
)
const (
basicAuthSName = "basic_secret"
basicAuthSKey = "basic_key"
AuthSName ... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/servicemonitor/sm_controller_test.go | operators/multiclusterobservability/pkg/servicemonitor/sm_controller_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package servicemonitor
import (
"testing"
promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1"
"github.com/stolostron/multicluster-observability-op... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/servicemonitor/sm_controller.go | operators/multiclusterobservability/pkg/servicemonitor/sm_controller.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package servicemonitor
import (
"context"
"os"
"time"
"k8s.io/apimachinery/pkg/api/equality"
promv1 "github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring/v1... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer_mcoa_test.go | operators/multiclusterobservability/pkg/rendering/renderer_mcoa_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"os"
"path/filepath"
"testing"
mcov1beta2 "github.com/stolostron/multicluster-observability-operator/operators/multiclusterobservability/api/v1beta2"... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer_alertmanager_test.go | operators/multiclusterobservability/pkg/rendering/renderer_alertmanager_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"context"
"fmt"
"os"
"path/filepath"
"reflect"
"strings"
"testing"
imagev1 "github.com/openshift/api/image/v1"
fakeimageclient "github.com/opens... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer.go | operators/multiclusterobservability/pkg/rendering/renderer.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
imagev1client "github.com/openshift/client-go/image/clientset/versioned/typed/image/v1"
v1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/ap... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer_mcoa.go | operators/multiclusterobservability/pkg/rendering/renderer_mcoa.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"fmt"
"maps"
"net/url"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer_proxy.go | operators/multiclusterobservability/pkg/rendering/renderer_proxy.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"fmt"
"strings"
v1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/ru... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
stolostron/multicluster-observability-operator | https://github.com/stolostron/multicluster-observability-operator/blob/a116fae78ab8eb55e54c9a9bdabdc478c9a309be/operators/multiclusterobservability/pkg/rendering/renderer_test.go | operators/multiclusterobservability/pkg/rendering/renderer_test.go | // Copyright (c) Red Hat, Inc.
// Copyright Contributors to the Open Cluster Management project
// Licensed under the Apache License 2.0
package rendering
import (
"context"
"os"
"path"
"testing"
imagev1 "github.com/openshift/api/image/v1"
fakeimageclient "github.com/openshift/client-go/image/clientset/version... | go | Apache-2.0 | a116fae78ab8eb55e54c9a9bdabdc478c9a309be | 2026-01-07T09:45:49.228954Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.