Feature: add fetch ingress list and ingress detail from k8s cluster api to backend#169
Merged
wilhelmguo merged 9 commits intoQihoo360:masterfrom Jan 3, 2019
HZ89:k8s-ingress-api
Merged
Feature: add fetch ingress list and ingress detail from k8s cluster api to backend#169wilhelmguo merged 9 commits intoQihoo360:masterfrom HZ89:k8s-ingress-api
wilhelmguo merged 9 commits intoQihoo360:masterfrom
HZ89:k8s-ingress-api
Conversation
wilhelmguo
reviewed
Dec 21, 2018
chengyumeng
reviewed
Dec 28, 2018
wilhelmguo
reviewed
Dec 28, 2018
motecshine
reviewed
Jan 3, 2019
wilhelmguo
approved these changes
Jan 3, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
What this PR does / why we need it:
api add:
test result:
curl --location --request GET "http://127.0.0.1:8080/api/v1//kubernetes/apps/0/ingresses/namespaces/default/clusters/minikube"{ "data": { "pageNo": 1, "pageSize": 10, "totalPage": 1, "totalCount": 1, "list": [ { "objectMeta": { "name": "my-nginx", "namespace": "default", "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"extensions/v1beta1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"traefik\",\"traefik.frontend.rule.type\":\"PathPrefixStrip\"},\"name\":\"my-nginx\",\"namespace\":\"default\"},\"spec\":{\"rules\":[{\"host\":\"my-nginx.exapmle.com\",\"http\":{\"paths\":[{\"backend\":{\"serviceName\":\"my-nginx\",\"servicePort\":80},\"path\":\"/\"}]}}]}}\n", "kubernetes.io/ingress.class": "traefik", "traefik.frontend.rule.type": "PathPrefixStrip" }, "creationTimestamp": "2018-12-20T10:30:58Z" }, "typeMeta": { "kind": "ingress" }, "endpoints": [] } ] } }curl --location --request GET "http://127.0.0.1:8080/api/v1//kubernetes/apps/0/ingresses/my-nginx/detail/namespaces/default/clusters/minikube"{ "data": { "objectMeta": { "name": "my-nginx", "namespace": "default", "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"extensions/v1beta1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"traefik\",\"traefik.frontend.rule.type\":\"PathPrefixStrip\"},\"name\":\"my-nginx\",\"namespace\":\"default\"},\"spec\":{\"rules\":[{\"host\":\"my-nginx.exapmle.com\",\"http\":{\"paths\":[{\"backend\":{\"serviceName\":\"my-nginx\",\"servicePort\":80},\"path\":\"/\"}]}}]}}\n", "kubernetes.io/ingress.class": "traefik", "traefik.frontend.rule.type": "PathPrefixStrip" }, "creationTimestamp": "2018-12-20T10:30:58Z" }, "typeMeta": { "kind": "ingress" }, "endpoints": [] } }