Skip to content

Commit

Permalink
ci: Using cronjob for notifier
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Mar 16, 2021
1 parent d10cd73 commit f21cb48
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 75 deletions.
42 changes: 42 additions & 0 deletions infra/api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ketchup
namespace: default
spec:
interval: 120m
chart:
spec:
chart: app
version: "0.0.55"
sourceRef:
kind: HelmRepository
name: vibioh
interval: 120m
install:
skipCRDs: true
maxHistory: 3
upgrade:
remediation:
retries: 3
rollback:
cleanupOnFail: true
values:
nameOverride: ketchup
image:
name: vibioh/ketchup
tag: "202103142216" # {"$imagepolicy": "default:flux-ketchup-web:tag"}
config:
KETCHUP_LOGGER_JSON: "true"
KETCHUP_DB_HOST: ketchup-db
KETCHUP_DB_PORT: "80"
KETCHUP_DB_NAME: ketchup
KETCHUP_DB_USER: ketchup
KETCHUP_SCHEDULER_ENABLED: "false"
secrets:
KETCHUP_DB_PASS: AgDOK5Ph8WD8SbBi+Mn/ywPirM59KRfhAjkAqaOqDePJJDd3uIQhoJCKN5HCwYsUoux173go8RrPtyhc5CxKm+/sc6JiqeajZVv/mc/EVPa0MyNpCN376jXIvo0P+joasjBGys/rtqEauhdn7hWGr87PnJbL5A2k+XD3kMauzcKJtMXSYkz2QSTx7TW1kW+5zJs/Cgp3FS9qHZ8buvktggnKeffhd0paYJJrLmtyKxKzmkXcyL8Q3i3QnAbXC3u4vSPxP5PMFMEqDZNrmmYiEJVOmNcW+R0jO7u6q3gwWkATL7E0bbtWuanp6/FXgUhlgpmD+i9BSwTEzrglFHEGPESlg+uYDqXDXOKGBzmQPcq7aAU+/jcEyh5ozkF8aVod7fVxFo+g1nGCbwAhXK5E+iT+KZ1Q50mFkhRIOYSQ9aesHONBPpiaLp8y00OJ6oEmb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xHMGT3yPB3yWe3J7bbn+Y79bsJnn4yqmIK
ingress:
enabled: true
hosts:
- ketchup.vibioh.fr
75 changes: 0 additions & 75 deletions infra/config.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions infra/db.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ketchup-db
namespace: default
spec:
interval: 120m
chart:
spec:
chart: postgres
version: "0.0.19"
sourceRef:
kind: HelmRepository
name: vibioh
namespace: default
interval: 120m
install:
skipCRDs: true
maxHistory: 3
upgrade:
remediation:
retries: 3
rollback:
cleanupOnFail: true
values:
nameOverride: ketchup-db
config:
POSTGRES_USER: ketchup
POSTGRES_DB: ketchup
secrets:
POSTGRES_PASSWORD: AgAr0Y20QTFxHs7/7JHFv4aZK3fCpJm617TG7PcWjjBJspGYg25EABKiYAsLFT11HEAzZAjm3AIKf80YNy+YsdFku6psgkb6JLcKLt9FjCsjogLAaoXwOrpGoXdtXh0BU7epnE7bZy4jgey0kq/Ql5RKzPnF8jGNzVXhqzOVLheCu6PHJ9vJz7pbk9oQSaI13JaroW/V6bFq3z0thPjNZoyQRCQnd1rYm3yCTRjoSYjue/0F9I7hNZldSVNsKM/2BzlafWcWHexYiq4e16z2RIyKs9M+GmRELT/ep0ZkotLXX4XczJbo+zDYzHUkUCsRdUVqENugoNORHjZM9vOy+Mr2ZuyUcfD94fYTVPC9g18Qsr2I45m6oH4dIPZT+l7BWb2GwYpB/+ScYGJbroRwTog5SA7hittbXp6mBtD7knXrr04OfM6nkDCc9AyzMN/QmwJsY28AQCXFfiOGvBmn7peYD32KOmrNHPQ7xx4QC7ZCw0wqaKIGaFfn6Ly9tdR9/9dUi2f1UfgxHsUls0QZBMZ5rjkGKPhIR0o14i/RxP8+hghQYIfuQcrP0VdS+7zT2Q7ArtxWwt2pzapoGmWJ6jN/+QxZ9js+hz+LGp7A6KXw3VrCsm6m6xhaydXEOC2EQ/oJHz4uZhLSx+mDg+gVeVPtlzlmd8xPEv9S8UvzybJGH+EU8umNDP8z3Rcldww4qJ3V2dIpBeXj0dVWKyMj+oCs6lyQCo6Bhg9zwRmFFzbn4JOf1PV7Zi5F9s2+bMGfJPj1v5kzUYDBKlPYnwQ=
FIBR_BACKUP_PASSWORD: AgASIOVq6rvTyG5ohWtYw/X57njWZ9IPs4dhYxBvgMPGXcnk94R2t9bfSnxO/NAZWnCvrllS1PLRp/tYd8vUcf+bOr8OZrnVqbpklHVmiWcQR2qPmStjx5zrkOJD+wHhk8OpFXkJdqzrxVcoN1Sx69EiPNwFkX312808RCztshhfzDDK+u5lTlZ696v9M3a3zMPLEfZXVkVRPMW1Uq0suUWgMVjskGoRt4UpCKPPo/bZD0yzhVVzLjEGNJMDMauQ8dmNSjjaWglPZEWEcZFCzubtrIQvkoN992SraJLsJbg7l+ZFXPE6K2aiuylgkryid83tpwGhEZO0gMzZcUWEkU98pJ1LbWyXupIifHHpc9ayrxkdOsqPb96FlwzQl+fy1T0O3LOpeOwlVQSBMidDGI1P5oRWhNzZxulZgxlx8gFfzcFRzfdh9fULJTIOd/Dfj11Qc4dCHdQfpf7YfsLyRcpAvILWp50uYpdODYZonkqsTSw1BsAG+4PTfahbYo5ugMPpIAcRruvTe0cs31+sZp+Grn4bvyPVuI1DOcAYAiymRSLuRVkSPIl8r2uWSQgFEnyuo9Hyz6ju8lZkESBV1czUTPF07rltIYhFaOI+8Bp0LciZYKRoq8BUWtFjFHaHaREmcwlori/Tb1rrI7BExi0xhQhukOtQclOUWyMImzksiVGeZCVp4EZBJXgClPxbBiScR485ARGVratV6doqmisyyqmgfnf0Qo62T8Bvqqocj/sfqWy+TxWET0PvYUfzxby8gk9tJTV08eez+wk=
42 changes: 42 additions & 0 deletions infra/notifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: ketchup-notifier
namespace: default
spec:
interval: 120m
chart:
spec:
chart: cron
version: "0.0.16"
sourceRef:
kind: HelmRepository
name: vibioh
namespace: default
interval: 120m
install:
skipCRDs: true
maxHistory: 3
upgrade:
remediation:
retries: 3
rollback:
cleanupOnFail: true
values:
nameOverride: ketchup-notifier
schedule: "0 8 * * *"
image:
name: vibioh/ketchup-notifier
tag: "latest" # {"$imagepolicy": "default:flux-ketchup-notifier:tag"}
config:
KETCHUP_LOGGER_JSON: "true"
KETCHUP_DB_HOST: ketchup-db
KETCHUP_DB_PORT: "80"
KETCHUP_DB_NAME: ketchup
KETCHUP_DB_USER: ketchup
secrets:
KETCHUP_DB_PASS: AgAw+m39PXVIRub8NNvEenJC1CuqSraj0//3FUlhc5NV4cLT0lr15v7oIsd+LyLD65iirArC+03AJ7NQ6HQ/G4a0ARY/mljIFw82+lvZXCF22KvUrJ9CXRY/4ugARluGNwNbUmxO+2frON7G8Ek4GzxyUQK54h2esRWf9Ev7yTz/tfWCEg2JteMWMJ340glCIGUlY1V23GA2ucYmvSBEx8Svifs20lRFrWO0GHs5/gLYP9z4oFbEHO3fLH6a3WM0xiPZQ0I1wnJApRTKe/qraihlCxSz1PfJyELeoP3pEeuJ7M/J8kr/ryJDeI8f4ZSnJ1nbeP6e2VhWd/trGeNBnDbgnVwv/Ycsl15GC3OpD+qEuQtYGLa/zJS7GriLsQ+4uPkXPPhr45nhpiMouInnkw05ZX68V5c/aWDTVY3NNUAPuWL/VV0zq7OLDtokLiD/wS8XsG+XtewVMx6opvDYXqyUBbg2tbW96xdyCnRWfhE/LWdxirRaYKirGV4zRjD6icgd7xgkmzDngk1CfoSXVfUzklMI+P0ekE8Sds1zxKKdsIPwQ/dmorC0Uv98JYc194Ax6Kk7+9q5MBwUuNlU3IOCQuEF72MVsJM3rfSWou+m28bEFIiI6fI7DDCNmvZ5bhDva/KN7A8bLAltpv+ITCv5IJW9ejNVRiy90gdTm4GUPA9XZTDNdpU425DyCKQFOU+XPSpBsR2CDsZnyPMBlFqDnO3m7Mc1QO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HfdN1VfPf58OOZsIavTTjIh10jO0t/+k0iR7B5W239uYA2EI8foySF/geNjxvpw7HRQvZs44pXVDGdsF/5LB138AqrdegMJ6/1/G7yGS0fEx6y7SjEcUb7CIjZJCZNd5GsonYPQa+dja61RLb4NSHT5QTnw5s0zeTjWE2JpuGHlWihxQ9NKGSY/oLUMLWbsnbfzs9Z++ZP8Bq1UyYApWcFQBcQdmJcqmuLL6dtKbzDtHTtPmE8aDqq2mSXhKX8j5TDmGM2uG9a/ijFV3IgUdTRZaYDM9LEqOctVpAcYgfTytaf3ADxOJKHVBpvRTMOsByzJ5TGruw8p2gcwSgOO1kHcNbR7n28mDHIkGYMevrdzvLKENMYCV/97rUrK7CSLFxia47ITe/q5ak8V94EyoklTESs+YT1jNF+EkNb7nL1r6axNiAnbQizQ8J4078dSofrFPzlDY6s0jmUOMt8q3I+d0MpkNAQ0vhuqXy0OBj4w3D2Lpi2tqEFJiQ8aXDH5j3IOr4MSHg27KL+hjfzxs0JVVFbMIAyOSBKZThoOls9DlmqNmBBegaEhPR2ehT1BpsMBbq
containers:
- name: job

0 comments on commit f21cb48

Please sign in to comment.