fix post bug
This commit is contained in:
parent
4f954c6d6b
commit
4e0e6be104
@ -11,6 +11,8 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: alertmanager-webhook
|
app: alertmanager-webhook
|
||||||
spec:
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: reg
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
@ -33,3 +35,4 @@ spec:
|
|||||||
port: web
|
port: web
|
||||||
path: /health
|
path: /health
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ configMapGenerator:
|
|||||||
- config/text_template.tpl
|
- config/text_template.tpl
|
||||||
images:
|
images:
|
||||||
- name: webhook
|
- name: webhook
|
||||||
newName: ''
|
newName: harbor.hxjscloud.com/ops/alertmanager-webhook
|
||||||
newTag: ''
|
newTag: '0.0.2'
|
||||||
patches:
|
patches:
|
||||||
- path: overlay.yaml
|
- path: overlay.yaml
|
||||||
target:
|
target:
|
||||||
|
@ -54,7 +54,7 @@ class BarkResource(Resource):
|
|||||||
headers = {
|
headers = {
|
||||||
"Content-Type": "application/json; charset=utf-8",
|
"Content-Type": "application/json; charset=utf-8",
|
||||||
},
|
},
|
||||||
data=content
|
json=content
|
||||||
)
|
)
|
||||||
app.logger.info(response)
|
app.logger.info(response)
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user