Skip to content

Commit

Permalink
[OSSM-6732] Remove explicitly specified tracing type from SMCP files (#…
Browse files Browse the repository at this point in the history
…696)

* Also adapt some tests to not check Jaeger on SMCP v2.6
  • Loading branch information
mkralik3 authored Jun 26, 2024
1 parent 91ee53b commit b6da4f7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 22 deletions.
5 changes: 4 additions & 1 deletion pkg/tests/ossm/deploy_on_infra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ spec:
})

t.LogStep("Verify that the following control plane pods are running on the infra node: istiod, istio-ingressgateway, istio-egressgateway, jaeger, grafana, prometheus")
istioPodLabelSelectors := []string{"app=istiod", "app=istio-ingressgateway", "app=istio-egressgateway", "app=grafana", "app=prometheus", "app=jaeger"}
istioPodLabelSelectors := []string{"app=istiod", "app=istio-ingressgateway", "app=istio-egressgateway", "app=grafana", "app=prometheus"}
if env.GetSMCPVersion().LessThanOrEqual(version.SMCP_2_5) {
istioPodLabelSelectors = append(istioPodLabelSelectors, "app=jaeger")
}
for _, pLabel := range istioPodLabelSelectors {
assertPodScheduledToNode(t, pLabel)
}
Expand Down
5 changes: 0 additions & 5 deletions pkg/tests/ossm/operator/clusterwide_mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,17 +554,12 @@ spec:
componentLevels:
default: info
tracing:
type: Jaeger
sampling: 10000
policy:
type: Istiod
addons:
grafana:
enabled: true
jaeger:
install:
storage:
type: Memory
kiali:
enabled: true
prometheus:
Expand Down
1 change: 0 additions & 1 deletion pkg/tests/ossm/route_prevent_additional_ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ metadata:
spec:
version: {{ .Version }}
tracing:
type: Jaeger
sampling: 10000
policy:
type: Istiod
Expand Down
15 changes: 12 additions & 3 deletions pkg/tests/ossm/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,25 @@ func assertRoutesExist(t TestHelper) {
assert.OutputContains("istio-ingressgateway",
"Route istio-ingressgateway is created",
"Still waiting for route istio-ingressgateway to be created in namespace"),
assert.OutputContains("jaeger",
"Route jaeger is created",
"Still waiting for route jaeger to be created in namespace"),
assert.OutputContains("kiali",
"Route kiali is created",
"Still waiting for route kiali to be created in namespace"),
assert.OutputContains("prometheus",
"Route prometheus is created",
"Still waiting for route prometheus to be created in namespace"))
})

if env.GetSMCPVersion().LessThanOrEqual(version.SMCP_2_5) {
retry.UntilSuccess(t, func(t TestHelper) {
oc.Get(t,
meshNamespace,
"routes", "",
assert.OutputContains("jaeger",
"Route jaeger is created",
"Still waiting for route jaeger to be created in namespace"),
)
})
}
}

func getPreviousVersion(ver version.Version) version.Version {
Expand Down
5 changes: 0 additions & 5 deletions pkg/tests/ossm/yaml/smcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ metadata:
spec:
version: {{ .Version }}
tracing:
type: Jaeger
sampling: 10000
policy:
type: Istiod
addons:
grafana:
enabled: true
jaeger:
install:
storage:
type: Memory
kiali:
enabled: true
prometheus:
Expand Down
1 change: 0 additions & 1 deletion templates/smcp-templates/v2.5/cr_2.5_default_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ spec:
enabled: true
prometheus:
enabled: true

telemetry:
type: Istiod
7 changes: 1 addition & 6 deletions templates/smcp-templates/v2.6/cr_2.6_default_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ metadata:
spec:
version: v2.6
tracing:
type: Jaeger
sampling: 10000
type: None
policy:
type: Istiod
addons:
grafana:
enabled: true
jaeger:
install:
storage:
type: Memory
kiali:
enabled: true
prometheus:
Expand Down

0 comments on commit b6da4f7

Please sign in to comment.