From 4e0e6be104552535025d0d3250a20d3a00849aad Mon Sep 17 00:00:00 2001 From: qiqian Date: Wed, 17 Aug 2022 16:58:45 +0800 Subject: [PATCH] fix post bug --- k8s/base/deployment.yaml | 3 +++ k8s/kustomization.yaml | 4 ++-- views/apis/bark_service.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/k8s/base/deployment.yaml b/k8s/base/deployment.yaml index 0fd948b..2eaadb4 100644 --- a/k8s/base/deployment.yaml +++ b/k8s/base/deployment.yaml @@ -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 + diff --git a/k8s/kustomization.yaml b/k8s/kustomization.yaml index 5716ef0..dcacb9b 100644 --- a/k8s/kustomization.yaml +++ b/k8s/kustomization.yaml @@ -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: diff --git a/views/apis/bark_service.py b/views/apis/bark_service.py index 1a44b51..1e86f1f 100644 --- a/views/apis/bark_service.py +++ b/views/apis/bark_service.py @@ -54,7 +54,7 @@ class BarkResource(Resource): headers = { "Content-Type": "application/json; charset=utf-8", }, - data=content + json=content ) app.logger.info(response) return {