Skip to content

Commit

Permalink
OSSM-5999: Remove Kiali fields, which are reconciled by Istio Operator (
Browse files Browse the repository at this point in the history
#666)

Signed-off-by: Jacek Ewertowski <jewertow@redhat.com>
  • Loading branch information
jewertow authored Mar 4, 2024
1 parent 89eb40b commit 43e1f48
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
22 changes: 19 additions & 3 deletions pkg/tests/tasks/observability/openshift_monitoring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,25 @@ func waitKialiAndVerifyIsReconciled(t test.TestHelper) {

t.LogStep("Verify that Kiali was reconciled by Istio Operator")
retry.UntilSuccess(t, func(t test.TestHelper) {
output := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.deployment.accessible_namespaces}'", kialiName, meshNamespace)
if output != fmt.Sprintf(`["%s"]`, ns.Foo) {
t.Errorf(`unexpected accessible namespaces: got '%s', expected: '["%s"]'`, output, ns.Foo)
accessibleNamespaces := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.deployment.accessible_namespaces}'", kialiName, meshNamespace)
if accessibleNamespaces != fmt.Sprintf(`["%s"]`, ns.Foo) {
t.Errorf(`unexpected accessible namespaces: got '%s', expected: '["%s"]'`, accessibleNamespaces, ns.Foo)
}
configMapName := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.external_services.istio.config_map_name}'", kialiName, meshNamespace)
if configMapName != fmt.Sprintf("istio-%s", smcpName) {
t.Errorf("unexpected istio config map name: got '%s', expected: 'istio-%s'", configMapName, smcpName)
}
sidecarInjectorConfigMapName := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.external_services.istio.istio_sidecar_injector_config_map_name:}'", kialiName, meshNamespace)
if sidecarInjectorConfigMapName != fmt.Sprintf("istio-sidecar-injector-%s", smcpName) {
t.Errorf("unexpected sidecar injecto config map name: got '%s', expected: 'istio-sidecar-injector-%s'", sidecarInjectorConfigMapName, smcpName)
}
deploymentName := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.external_services.istio.istiod_deployment_name}'", kialiName, meshNamespace)
if deploymentName != fmt.Sprintf("istiod-%s", smcpName) {
t.Errorf("unexpected istiod deployment name: got '%s', expected: 'istiod-%s'", deploymentName, smcpName)
}
urlServiceVersion := shell.Executef(t, "oc get kiali %s -n %s -o jsonpath='{.spec.external_services.istio.url_service_version}'", kialiName, meshNamespace)
if urlServiceVersion != fmt.Sprintf("http://istiod-%s.%s:15014/version", smcpName, meshNamespace) {
t.Errorf("unexpected URL service version: got '%s', expected: 'http://istiod-%s.%s:15014/version'", urlServiceVersion, smcpName, meshNamespace)
}
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ metadata:
name: kiali-user-workload-monitoring
spec:
external_services:
istio:
config_map_name: istio-{{ .SmcpName }}
istio_sidecar_injector_config_map_name: istio-sidecar-injector-{{ .SmcpName }}
istiod_deployment_name: istiod-{{ .SmcpName }}
istiod_pod_monitoring_port: 15014
url_service_version: "http://istiod-{{ .SmcpName }}.{{ .SmcpNamespace }}:15014/version"
prometheus:
auth:
type: bearer
Expand All @@ -19,4 +13,3 @@ spec:
thanos_proxy:
enabled: true
url: https://thanos-querier.openshift-monitoring.svc.cluster.local:9091
version: v1.65

0 comments on commit 43e1f48

Please sign in to comment.