fix post bug

This commit is contained in:
qiqian 2022-08-17 16:58:45 +08:00
parent 4f954c6d6b
commit 4e0e6be104
3 changed files with 6 additions and 3 deletions

View File

@ -11,6 +11,8 @@ spec:
labels:
app: alertmanager-webhook
spec:
imagePullSecrets:
- name: reg
volumes:
- name: config
configMap:
@ -33,3 +35,4 @@ spec:
port: web
path: /health
initialDelaySeconds: 10

View File

@ -14,8 +14,8 @@ configMapGenerator:
- config/text_template.tpl
images:
- name: webhook
newName: ''
newTag: ''
newName: harbor.hxjscloud.com/ops/alertmanager-webhook
newTag: '0.0.2'
patches:
- path: overlay.yaml
target:

View File

@ -54,7 +54,7 @@ class BarkResource(Resource):
headers = {
"Content-Type": "application/json; charset=utf-8",
},
data=content
json=content
)
app.logger.info(response)
return {