diff options
| author | 2020-12-28 21:53:56 +0000 | |
|---|---|---|
| committer | 2020-12-28 21:53:56 +0000 | |
| commit | 5aebc27e2d1eac3a1f359e4672b34b2b9af2c572 (patch) | |
| tree | 9b6a8e18987133f2518c8bf652fb5a2253c21e43 | |
| parent | Merge pull request #48 from python-discord/ks123/optional-questions (diff) | |
Minor DevOps tweaks
| -rw-r--r-- | backend/routes/index.py | 8 | ||||
| -rw-r--r-- | deployment.yaml | 2 | 
2 files changed, 8 insertions, 2 deletions
| diff --git a/backend/routes/index.py b/backend/routes/index.py index 2551c58..207c36a 100644 --- a/backend/routes/index.py +++ b/backend/routes/index.py @@ -1,6 +1,8 @@  """  Index route for the forms API.  """ +import platform +  from pydantic import BaseModel  from pydantic.fields import Field  from spectree import Response @@ -23,6 +25,9 @@ class IndexResponse(BaseModel):      sha: str = Field(          description="Current release Git SHA in production."      ) +    node: str = Field( +        description="The node that processed the request." +    )  class IndexRoute(Route): @@ -46,7 +51,8 @@ class IndexRoute(Route):              "user": {                  "authenticated": False              }, -            "sha": GIT_SHA +            "sha": GIT_SHA, +            "node": platform.uname().node          }          if request.user.is_authenticated: diff --git a/deployment.yaml b/deployment.yaml index 19a074e..fc5719e 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment  metadata:    name: forms-backend  spec: -  replicas: 1 +  replicas: 2    selector:      matchLabels:        app: forms-backend | 
