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

Update Ingress API to use NetworkingV1 package & Fix the backend column in kubernetes_ingress table. Fixes #91 #98

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

bigdatasourav
Copy link
Contributor

Example query results

Results
> select
  name,
  namespace,
  ingress_class_name as class,
  age(current_timestamp, creation_timestamp)
from
  kubernetes_ingress
order by
  namespace,
  name;
+-----------------+-----------+---------------+----------+
| name            | namespace | class         | age      |
+-----------------+-----------+---------------+----------+
| minimal-ingress | default   | nginx-example | 00:23:30 |
+-----------------+-----------+---------------+----------+
> select
  name,
  namespace,
  jsonb_pretty(rules) as rules
from
  kubernetes_ingress;
+-----------------+-----------+----------------------------------------------+
| name            | namespace | rules                                        |
+-----------------+-----------+----------------------------------------------+
| minimal-ingress | default   | [                                            |
|                 |           |     {                                        |
|                 |           |         "http": {                            |
|                 |           |             "paths": [                       |
|                 |           |                 {                            |
|                 |           |                     "path": "/testpath",     |
|                 |           |                     "backend": {             |
|                 |           |                         "service": {         |
|                 |           |                             "name": "test",  |
|                 |           |                             "port": {        |
|                 |           |                                 "number": 80 |
|                 |           |                             }                |
|                 |           |                         }                    |
|                 |           |                     },                       |
|                 |           |                     "pathType": "Prefix"     |
|                 |           |                 }                            |
|                 |           |             ]                                |
|                 |           |         }                                    |
|                 |           |     }                                        |
|                 |           | ]                                            |
+-----------------+-----------+----------------------------------------------+

@bigdatasourav bigdatasourav changed the title Update Ingress API to use NetworkingV1 package in kubernetes_ingress table. Update Ingress API to use NetworkingV1 package & Fix the backend column in kubernetes_ingress table. Dec 21, 2022
@bigdatasourav bigdatasourav changed the title Update Ingress API to use NetworkingV1 package & Fix the backend column in kubernetes_ingress table. Update Ingress API to use NetworkingV1 package & Fix the backend column in kubernetes_ingress table. Fixes #91 Dec 22, 2022
@cbruno10 cbruno10 merged commit a058ca5 into main Jan 4, 2023
@cbruno10 cbruno10 deleted the ingress-fix branch January 4, 2023 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle not found error in kubernetes_ingress table
2 participants