Skip to content

Commit b3f6787

Browse files
committed
update
Signed-off-by: Coleen Iona Quadros <[email protected]>
1 parent cfd4778 commit b3f6787

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

tests/pkg/utils/kube_debug.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func LogFailingTestStandardDebugInfo(opt TestOptions) {
5252
LogManagedClusters(hubDynClient)
5353

5454
for _, mc := range opt.ManagedClusters {
55-
if mc.Name == "local-cluster" {
55+
if mc.Name == HubManagedClusterName {
5656
// Skip local-cluster as same namespace as hub, and already checked
5757
continue
5858
}

tests/pkg/utils/mco_deploy.go

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ import (
2525
)
2626

2727
const (
28-
MCO_CR_NAME = "observability"
29-
MCO_COMPONENT_LABEL = "observability.open-cluster-management.io/name=" + MCO_CR_NAME
30-
OBSERVATORIUM_COMPONENT_LABEL = "app.kubernetes.io/part-of=observatorium"
31-
MCO_NAMESPACE = "open-cluster-management-observability"
32-
MCO_ADDON_NAMESPACE = "open-cluster-management-addon-observability"
33-
MCO_PULL_SECRET_NAME = "multiclusterhub-operator-pull-secret"
34-
OBJ_SECRET_NAME = "thanos-object-storage" // #nosec G101 -- Not a hardcoded credential.
35-
MCO_GROUP = "observability.open-cluster-management.io"
36-
OCM_WORK_GROUP = "work.open-cluster-management.io"
37-
OCM_CLUSTER_GROUP = "cluster.open-cluster-management.io"
38-
OCM_ADDON_GROUP = "addon.open-cluster-management.io"
28+
MCO_CR_NAME = "observability"
29+
MCO_NAMESPACE = "open-cluster-management-observability"
30+
MCO_ADDON_NAMESPACE = "open-cluster-management-addon-observability"
31+
OBJ_SECRET_NAME = "thanos-object-storage" // #nosec G101 -- Not a hardcoded credential.
32+
MCO_GROUP = "observability.open-cluster-management.io"
33+
OCM_WORK_GROUP = "work.open-cluster-management.io"
34+
OCM_CLUSTER_GROUP = "cluster.open-cluster-management.io"
35+
OCM_ADDON_GROUP = "addon.open-cluster-management.io"
36+
HubManagedClusterName = "hub-cluster"
3937
)
4038

4139
func NewMCOGVRV1BETA2() schema.GroupVersionResource {

0 commit comments

Comments
 (0)