Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,24 +1,8 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
kind: SecretStore
|
| 10 |
-
target:
|
| 11 |
-
template:
|
| 12 |
-
type: kubernetes.io/dockerconfigjson
|
| 13 |
-
data:
|
| 14 |
-
.dockerconfigjson: '{"auths":{"{{ .registryName | lower }}.{{ .registryHost }}":{"username":"{{ .registryName }}","password":"{{ .password }}","auth":"{{ printf "%s:%s" .registryName .password | b64enc }}"}}}'
|
| 15 |
-
data:
|
| 16 |
-
- secretKey: registryName
|
| 17 |
-
remoteRef:
|
| 18 |
-
key: secret/docker-registry-name # "myRegistry"
|
| 19 |
-
- secretKey: registryHost
|
| 20 |
-
remoteRef:
|
| 21 |
-
key: secret/docker-registry-host # "docker.io"
|
| 22 |
-
- secretKey: password
|
| 23 |
-
remoteRef:
|
| 24 |
-
key: secret/docker-registry-password>
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
@app.get("/")
|
| 6 |
+
def greet_json():
|
| 7 |
+
return {"Hello": "World!"}
|
| 8 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|