Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kiali UI not showing API Docs #6665

Closed
miquelpuigmena opened this issue Sep 29, 2023 · 4 comments
Closed

Kiali UI not showing API Docs #6665

miquelpuigmena opened this issue Sep 29, 2023 · 4 comments
Assignees
Labels
backlog Triaged Issue added to backlog bug Something isn't working

Comments

@miquelpuigmena
Copy link

miquelpuigmena commented Sep 29, 2023

I'm trying to get Kiali to show my swagger docs in the UI but it doesn't.

Here is the service definition

% kubectl describe service/plans-api --namespace plans --context dd-stag
Name:              plans-api
Namespace:         plans
Labels:            repository=plans
                   service=plans-api
                   skaffold.dev/run-id=x
Annotations:       kiali.io/api-spec: http://plans-api.plans/swagger/doc.json
                   kiali.kubernetes.io/api-type: rest
Selector:          app=plans-api,repository=plans,service=plans-api
Type:              ClusterIP
IP Family Policy:  SingleStack
IP Families:       IPv4
IP:                172.16.21.55
IPs:               172.16.21.55
Port:              plans-api  80/TCP
TargetPort:        8080/TCP
Endpoints:         172.20.1.131:8080
Session Affinity:  None
Events:            <none>

then, this is what I get. See that API Docs tab is not showing:
Screenshot 2023-09-29 at 13 36 18

Scraping a bit with the inspector, I can see that the annotation for the service is in place:

{
{
    "service": {
        "name": "plans-api",
        "createdAt": "2023-09-26T07:40:16Z",
        "resourceVersion": "447498536",
        "namespace": {
            "name": "plans",
            "cluster": "",
            "isAmbient": false,
            "labels": null,
            "annotations": null
        },
        "labels": {
            "repository": "plans",
            "service": "plans-api",
            "skaffold.dev/run-id": "x"
        },
        "selectors": {
            "app": "plans-api",
            "repository": "plans",
            "service": "plans-api"
        },
        "type": "ClusterIP",
        "ip": "172.16.21.55",
        "ports": [
            {
                "name": "plans-api",
                "protocol": "TCP",
                "istioProtocol": "UnsupportedProtocol",
                "port": 80,
                "tlsMode": "istio"
            }
        ],
        "externalName": "",
        "annotations": {
            "kiali.io/api-spec": "http://plans-api.plans/swagger/doc.json", // <- 
            "kiali.kubernetes.io/api-type": "rest", // <-
            "kubectl.kubernetes.io/last-applied-configuration": "x"
        },
        "healthAnnotations": {},
        "additionalDetails": []
    },
    ...
}

I'm unsure if it is a bug or a misconfiguration from my side. Any help is appreciated :)

@miquelpuigmena miquelpuigmena added the bug Something isn't working label Sep 29, 2023
@jshaughn
Copy link
Collaborator

Did you look at the Service Detail page, the screenshots are showing App Detail page. I'm honestly not sure if this feature works but this is something to check before we go further.

@miquelpuigmena
Copy link
Author

Hey @jshaughn. Here the screenshot of the service. It doesn't show either. Please, let me know if I can provide more info from my side 😄

Screenshot 2023-10-17 at 08 14 26

@jshaughn jshaughn added the backlog Triaged Issue added to backlog label Oct 25, 2023
@jshaughn
Copy link
Collaborator

Adding to sprint backlog for more investigation. It's unclear whether this feature should work or was intentionally dropped.

@hhovsepy
Copy link
Contributor

hhovsepy commented Dec 4, 2023

The issue fix will be available with the upcoming release Kiali v1.78.

@hhovsepy hhovsepy closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Triaged Issue added to backlog bug Something isn't working
Projects
Development

No branches or pull requests

3 participants