fix types
This commit is contained in:
parent
15e01cbe70
commit
f7d54b9a73
1 changed files with 3 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ from pydantic import BaseModel
|
||||||
from fastapi import APIRouter
|
from fastapi import APIRouter
|
||||||
|
|
||||||
from htmx_patterns.config import get_config
|
from htmx_patterns.config import get_config
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
zpages_router = APIRouter(tags=["zpages"])
|
zpages_router = APIRouter(tags=["zpages"])
|
||||||
|
|
||||||
|
|
@ -35,8 +36,8 @@ class PodInfo(BaseModel):
|
||||||
namespace: str
|
namespace: str
|
||||||
node_name: str
|
node_name: str
|
||||||
container_image: str
|
container_image: str
|
||||||
start_time: str
|
start_time: Union[str, datetime]
|
||||||
pod_uptime: str
|
pod_uptime: Union[str, int]
|
||||||
|
|
||||||
|
|
||||||
class Ready(BaseModel):
|
class Ready(BaseModel):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue