Skip to content

Commit

Permalink
post graph annotations when sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Dec 21, 2023
1 parent 2c8867c commit 27a2b67
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions manifests/iot-monitor/mackerel-sesame/postsync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: batch/v1
kind: Job
metadata:
generateName: mackerel-sesame-deploy-annotation-
annotations:
argocd.argoproj.io/hook: PostSync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
template:
spec:
containers:
- name: mkr-create-annotation
image: docker.io/mackerel/mkr:latest
env:
- name: MACKEREL_APIKEY
valueFrom:
secretKeyRef:
name: mackerel-arthur-1
key: apikey
command:
- "annotations"
- "create"
- "--title"
- "\"synced mackerel-sesame\""
- "--service"
- "iot-monitor"
- "--role"
- "mackerel-sesame"
- "--from"
- "\"$(date +%s)\""
- "--to"
- "\"$(date +%s)\""
restartPolicy: Never

0 comments on commit 27a2b67

Please sign in to comment.