Washedashore commited on
Commit
5975e48
·
verified ·
1 Parent(s): 9e63f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -24
app.py CHANGED
@@ -1,24 +1,8 @@
1
- <apiVersion: external-secrets.io/v1beta1
2
- kind: ExternalSecret
3
- metadata:
4
- name: dk-cfg
5
- spec:
6
- refreshInterval: 30
7
- secretStoreRef:
8
- name: example
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
+