otto 9 months ago
parent
commit
bb6fa56723
  1. 2
      hotspot-clear-job-master.yaml
  2. 3
      task/task.go

2
hotspot-clear-job-master.yaml

@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: hotspot-clear
image: 192.168.0.19:5000/job/master/hotspot-clear:77828635aff0ab0eb0992c381e668db2f29fd979
image: 192.168.0.19:5000/job/master/hotspot-clear:5ea4b60e8364579d393c5c46088cb1d0b58135ff
imagePullPolicy: Always
env:
- name: JM_ENVIRONMENT

3
task/task.go

@ -100,6 +100,7 @@ func task(start, end int64) error {
}
func wechatHook(times int64, err error) {
if err != nil {
envi := "测试"
if k8sclient.Environment() == k8sclient.MasterNamespace {
envi = "正式"
@ -115,3 +116,5 @@ func wechatHook(times int64, err error) {
}
_ = hook.Send()
}
}

Loading…
Cancel
Save