From 0dab92c00b9efab4b7f6019b6aa50300394cab43 Mon Sep 17 00:00:00 2001 From: actions Date: Wed, 21 Apr 2021 19:31:00 +0000 Subject: [PATCH] Merge pull request #1130 from jiaqiluo/fix-configmap-missing fix the issue where the configmap is missing when upgrading rancher-alerting-drives to enable a new driver --- .../rancher-alerting-drivers-1.0.100-rc03.tgz | Bin 0 -> 7274 bytes .../rancher-prom2teams-0.2.000-rc03.tgz | Bin 0 -> 4290 bytes .../rancher-sachet-1.0.100-rc03.tgz | Bin 0 -> 3523 bytes .../1.0.100-rc03/Chart.yaml | 21 ++++ .../1.0.100-rc03/app-readme.md | 11 +++ .../charts/prom2teams/.helmignore | 22 +++++ .../1.0.100-rc03/charts/prom2teams/Chart.yaml | 10 ++ .../charts/prom2teams/files/teams.j2 | 44 +++++++++ .../charts/prom2teams/templates/NOTES.txt | 2 + .../charts/prom2teams/templates/_helpers.tpl | 73 ++++++++++++++ .../prom2teams/templates/configmap.yaml | 39 ++++++++ .../prom2teams/templates/deployment.yaml | 77 +++++++++++++++ .../charts/prom2teams/templates/psp.yaml | 28 ++++++ .../charts/prom2teams/templates/role.yaml | 15 +++ .../prom2teams/templates/rolebinding.yaml | 13 +++ .../prom2teams/templates/service-account.yaml | 6 ++ .../charts/prom2teams/templates/service.yaml | 17 ++++ .../charts/prom2teams/values.yaml | 62 ++++++++++++ .../1.0.100-rc03/charts/sachet/.helmignore | 23 +++++ .../1.0.100-rc03/charts/sachet/Chart.yaml | 11 +++ .../charts/sachet/files/template.tmpl | 1 + .../charts/sachet/templates/NOTES.txt | 3 + .../charts/sachet/templates/_helpers.tpl | 79 +++++++++++++++ .../templates/configmap-pre-install.yaml | 21 ++++ .../charts/sachet/templates/deployment.yaml | 75 +++++++++++++++ .../charts/sachet/templates/psp.yaml | 28 ++++++ .../charts/sachet/templates/role.yaml | 15 +++ .../charts/sachet/templates/rolebinding.yaml | 13 +++ .../sachet/templates/service-account.yaml | 6 ++ .../charts/sachet/templates/service.yaml | 17 ++++ .../1.0.100-rc03/charts/sachet/values.yaml | 63 ++++++++++++ .../1.0.100-rc03/questions.yml | 14 +++ .../1.0.100-rc03/templates/NOTES.txt | 2 + .../1.0.100-rc03/templates/_helpers.tpl | 91 ++++++++++++++++++ .../1.0.100-rc03/templates/cluster-role.yaml | 50 ++++++++++ .../1.0.100-rc03/values.yaml | 17 ++++ .../0.2.000-rc03/.helmignore | 22 +++++ .../0.2.000-rc03/Chart.yaml | 10 ++ .../0.2.000-rc03/files/teams.j2 | 44 +++++++++ .../0.2.000-rc03/templates/NOTES.txt | 2 + .../0.2.000-rc03/templates/_helpers.tpl | 73 ++++++++++++++ .../0.2.000-rc03/templates/configmap.yaml | 39 ++++++++ .../0.2.000-rc03/templates/deployment.yaml | 77 +++++++++++++++ .../0.2.000-rc03/templates/psp.yaml | 28 ++++++ .../0.2.000-rc03/templates/role.yaml | 15 +++ .../0.2.000-rc03/templates/rolebinding.yaml | 13 +++ .../templates/service-account.yaml | 6 ++ .../0.2.000-rc03/templates/service.yaml | 17 ++++ .../0.2.000-rc03/values.yaml | 62 ++++++++++++ .../rancher-sachet/1.0.100-rc03/.helmignore | 23 +++++ .../rancher-sachet/1.0.100-rc03/Chart.yaml | 11 +++ .../1.0.100-rc03/files/template.tmpl | 1 + .../1.0.100-rc03/templates/NOTES.txt | 3 + .../1.0.100-rc03/templates/_helpers.tpl | 79 +++++++++++++++ .../templates/configmap-pre-install.yaml | 21 ++++ .../1.0.100-rc03/templates/deployment.yaml | 75 +++++++++++++++ .../1.0.100-rc03/templates/psp.yaml | 28 ++++++ .../1.0.100-rc03/templates/role.yaml | 15 +++ .../1.0.100-rc03/templates/rolebinding.yaml | 13 +++ .../templates/service-account.yaml | 6 ++ .../1.0.100-rc03/templates/service.yaml | 17 ++++ .../rancher-sachet/1.0.100-rc03/values.yaml | 63 ++++++++++++ index.yaml | 55 +++++++++++ 63 files changed, 1787 insertions(+) create mode 100755 assets/rancher-alerting-drivers/rancher-alerting-drivers-1.0.100-rc03.tgz create mode 100755 assets/rancher-prom2teams/rancher-prom2teams-0.2.000-rc03.tgz create mode 100755 assets/rancher-sachet/rancher-sachet-1.0.100-rc03.tgz create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/Chart.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/app-readme.md create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/.helmignore create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/Chart.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/files/teams.j2 create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/NOTES.txt create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/_helpers.tpl create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/configmap.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/deployment.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/psp.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/role.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/rolebinding.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service-account.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/values.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/.helmignore create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/Chart.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/files/template.tmpl create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/NOTES.txt create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/_helpers.tpl create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/configmap-pre-install.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/deployment.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/psp.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/role.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/rolebinding.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service-account.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/values.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/questions.yml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/NOTES.txt create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/_helpers.tpl create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/cluster-role.yaml create mode 100755 charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/values.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/.helmignore create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/Chart.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/files/teams.j2 create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/NOTES.txt create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/_helpers.tpl create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/configmap.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/deployment.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/psp.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/role.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/rolebinding.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service-account.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service.yaml create mode 100755 charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/values.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/.helmignore create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/Chart.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/files/template.tmpl create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/NOTES.txt create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/_helpers.tpl create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/configmap-pre-install.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/deployment.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/psp.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/role.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/rolebinding.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service-account.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service.yaml create mode 100755 charts/rancher-sachet/rancher-sachet/1.0.100-rc03/values.yaml diff --git a/assets/rancher-alerting-drivers/rancher-alerting-drivers-1.0.100-rc03.tgz b/assets/rancher-alerting-drivers/rancher-alerting-drivers-1.0.100-rc03.tgz new file mode 100755 index 0000000000000000000000000000000000000000..dc8125d31bb40d617514caca8ad608da86e115a5 GIT binary patch literal 7274 zcmV-w9F^lAiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PKDHZ`-)?Z-3TbF-N^co8C%(<t<h(7w#&~CTe`@6gP|8~1w{lC-c^&WM0+q>=d!T#>v!J~F(zkP7<2-;uF zxj{&UMEp_vi+NQm_nib3$4nwgSSN{W5LT7eoDLxRITWMic^Sx7`e z(Zq{Ug!^!qjV5?)MpJDTCi*~0oPMf}<(Oh5a7J+6Fm+Hue#2Z47Wd(%>!2hl9y@+# z-)}o1PH-IJI3QT`9S;H)heYZW31?APViXA<$7n!t=l~do(mhn(GNW@}Q4ib+X4^Wm$CGv8@&XP{J znKpUb@3h+<586HFYY**hXb|S={~JV8EFNS6Sfc;i`v)`nzqh-$)&H9akKr{QqLfN7 z9j!iq$WG#~{ZTI35up`2=pqm}5Yc0*TNF3%DheYSJmC zssx-xI-i&biKDDu=UMhXxUQpU3M`fK6sE#JhN?Jli(;wSiFDu@HJlZk#6lv?K$TsS zKw6oL1O*s4l4GpYF^aPiYT}xNYN#T6HU;QhA8s(`B*eN<&U6Y<_0DFDJ`52R*m2Bc zP!sbY{XbX!i|%Qiez<&d;mc2QT^`HizuP&e$p689ySJ79O@w*9BK(xQxveF z5p}%<;5={L-#d4A9)x&EVhnCJM0}Oj1#cRw?FirO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-|CwczKRVcPkJq7@S{~k=cDwCVeaka@(Dvrm>6#$p{`B%--!T^!%qD-Y-EMbmz}_6- z_IC`aND-wI)yVp5u%W&>FPXj-M~0IE(PnyUL|@2fKry<(28&6fCj~4P0b!}oq=PXd z0WM%dQ-Qf}WDilnfW!e;lcNS@iUXX1GYJis%3{Fr4dE;{s62W*l@cXa*{I8k@&ZH} zj1~J65|it6fPFX~D(Qrf!7YkQHL?Q*D`kOLOr%nCT&xq!@$B!!r$&Y72l64iQfXd5r{9RD0-(_ex z|F4bx`lt#1Yp**0cYE9KzicLy4Q(~m$Lw~B0GnIO8F1pioU_%w?Ns|Mr+(d+w`*+f zuiZ93LReY;SHymO)CB)^f5!j2+uQnoZzODiUAMrl-!`!8#vv=S)$iX1SGg`^tyQiE zhO4bB+>ZlRo3-m|K($|jQ){EZu8mUr4+g1Sg5sL>myO`MQ5@D1FpDWmu36s~K8oKy z#A?yp1yaJ22Cr7KDRgd0Z~5yW+1f?kt_mJBtZe^J_d+e0!^H;!OYHwnZ?Ag(w|8)` zz5lV1pfrHqXdDuX^-h11P&K`;i8cB_P@}UpSQ%z?X3l;vh|xOEbKpg13o-u&OJ&mf z#$iR3I2X90GvGK`U5cZJ+)dp+i>SrO*@x^Ko#ul{PqB^{+!}Q!Ba@)gTw`~?+?Li>c9u{z}3Hb+vR;^*T3m@p*@3 z6`L~q5U^UQ*gqG!Ng3l$4#o=8H=u-AZy($vaPg5FgD9gsfY=knmTnTVT_}lP5zq%TDV9d|?^;sM5 zvwq#V+5TTy{#V5QeAMLr$H5H#@BYCS|7RoN%ke+I=JDUxZoTh6tSkQy`Tdu6yNdtW z>vp&E|3<7WHf+N-{NUk#0{{U3|6ShO`~cVh E0O>M@djJ3c literal 0 HcmV?d00001 diff --git a/assets/rancher-prom2teams/rancher-prom2teams-0.2.000-rc03.tgz b/assets/rancher-prom2teams/rancher-prom2teams-0.2.000-rc03.tgz new file mode 100755 index 0000000000000000000000000000000000000000..f1891075d705e64656d6271eff327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|9#3M%7>3p1NX}R-oax0zrFXI|NkWAE9C!2 zw%Uh1v-p04 zIJUo52izzByNmXJr**j7ewP2ID785m3%m9Exc>XAXY%_jo5=rTj{x_{|KZO5^7}u} z`F~GR*2({0BlzA1f?pRHa<9HuVzF-bng&OqbY0oVUU#p7FK0YKmPogBV_A1oS-JSE zrWZW!uKuC-^bc778u<@K$YMI=LgKgCWB1Ab{?5VD_dnXt-~V}%@&bB9Yn1MVHn-|7 z&$ORXX8e3eNO((zIR6%iN)szdphn0T44LS={29uJZ$Kg=nvM}{vf8|!@W^`s9EUD( z^<^S)KtJcN;s3|004_M2*l#iMV+Y*&vV~n<;1KT^t-NT*Z?KiF|lvLA@ zFx&LD+dgU^$|< zdNy8OW)H8*IHpsW({XrUR$$gtGdo{BDPq(kOcmH%7}%T;E5j9wv^9g5*%u+Qx>vPB z!_eh4bl}spxNq`FsOgyM$#u@(+F{r(0}^V7#&TXj+xH{4X46V~iu=w`2Yj2^T|#3U zZNktZRi1xnA_tqjDNl2iXzqQjCVa~6W#UGp3v8Q`&o|U+@>ls6ls2JXpxcyw>ElhS zSvW3z;b{{t%1Bo;vSPUI8&Mk#)@|Afg@xhaXD!K%J8rna4}^qUoB-u3q28=uZ8`<_ zF2Y9Km63kBMXNHZj3SQ=H(RsPtjyD}>IPDJUFE*fR6)PxkV=?0AJ=bX{C-U2Z6xlv kUwoqqVD_8$9Qb)I&*iy1m#-@S8vp?R|H6}?TmV`C07wjlF#rGn literal 0 HcmV?d00001 diff --git a/assets/rancher-sachet/rancher-sachet-1.0.100-rc03.tgz b/assets/rancher-sachet/rancher-sachet-1.0.100-rc03.tgz new file mode 100755 index 0000000000000000000000000000000000000000..3fa31cafd16a5bd993a077985fe51e1c7352117b GIT binary patch literal 3523 zcmV;!4LtH6iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI}hbKAIb&u9J>`6|DN zFG;~3-Cs$PBpD5d?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u#?o{8xhEJzW5I<$oTZbo0NCPezCDe>_NO;=h`ZEGDIy3q}9ofHc1N-ak&)x50bC z@Cz=0hX@H;D0DCt0g<$cxwgvRan)mj_jOzr&zfT2wKP4c#_)OV#<-a%YS*?vHEEEQ z8ov?LyjA}vl;@Psz7z)T(*Mz*tN$lQ{X_ougOtzE|Nrn(@vXyvVE7)Vmbn@RZdqXf z&;YnkTaPX$zhY)8%<;pVw<4m!r}&)@d;UB1zjF5@;+OCx7;u;V4^F!IA4$J|`2P2U zl&uL99qIjcpZ~u0?*0DDUHX3?F2G&!pCsx2|A*1=_;CL}NV!e_zhT9%qeA{$y<4Kx zw!shIc&Cc0mzmvB?fOO8WwedE&p6wjs5V}_x>?!bS@qT8@D?TknqNWQ!e8CE;{j7| zeX-vo2jBpsf9}%3|9Fn9pffHM-rpQ|#($1B{{PS5q<_HwhbWI>OpHP0zxU=(-sk>K zO3JLC2a;qLWQKb6|3Gvp9jJnyBV#aQV&ZeDD4#tCg^U=wK=(x6s3$xR9s|djPbU6O zDxA_Q%>ASFU!KPBjziZ>iomG5ekFHP<=h*=hJh@snS6_qo(J6 zdiH~O@(KkJJ5tY?4Jf9eJAtp}Qr?4pz|0a^#oVtpxtXYqtw1kYkq*v~@IS@7)t zg2(VPQB;%~-n@FPgIFqI9ls!^Ig*|ySK`+oUg%8Z*!w-;YDfRwCakPLyPyY%|Mmx? xjri~IkpKT6<-YzajX{PpMG7Y}zX!oTltVd`L-~`J{|^8F|Nr14bUgr6008Nb2zCGf literal 0 HcmV?d00001 diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/Chart.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/Chart.yaml new file mode 100755 index 000000000..dceaf8b96 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/Chart.yaml @@ -0,0 +1,21 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Alerting Drivers + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-alerting-drivers +apiVersion: v2 +appVersion: 1.16.0 +dependencies: +- condition: prom2teams.enabled + name: prom2teams + repository: file://./charts/prom2teams +- condition: sachet.enabled + name: sachet + repository: file://./charts/sachet +description: The manager for third-party webhook receivers used in Prometheus Alertmanager +keywords: +- monitoring +- alertmanger +- webhook +name: rancher-alerting-drivers +version: 1.0.100-rc03 diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/app-readme.md b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/app-readme.md new file mode 100755 index 000000000..ea3f11801 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/app-readme.md @@ -0,0 +1,11 @@ +# Rancher Alerting Drivers + +This chart installs one or more [Alertmanager Webhook Receiver Integrations](https://prometheus.io/docs/operating/integrations/#alertmanager-webhook-receiver) (i.e. Drivers). + +Those Drivers can be targeted by an existing deployment of Alertmanager to send alerts to notification mechanisms that are not natively supported. + +Currently, this chart supports the following Drivers: +- Microsoft Teams, based on [prom2teams](https://github.com/idealista/prom2teams) +- SMS, based on [Sachet](https://github.com/messagebird/sachet) + +After installing rancher-alerting-drivers, please refer to the upstream documentation for each Driver for configuration options. \ No newline at end of file diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/.helmignore b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/.helmignore new file mode 100755 index 000000000..50af03172 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/.helmignore @@ -0,0 +1,22 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/Chart.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/Chart.yaml new file mode 100755 index 000000000..463385d4b --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/Chart.yaml @@ -0,0 +1,10 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-prom2teams +apiVersion: v1 +appVersion: 3.2.1 +description: A Helm chart for Prom2Teams based on the upstream https://github.com/idealista/prom2teams +name: prom2teams +version: 0.2.0 diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/files/teams.j2 b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/files/teams.j2 new file mode 100755 index 000000000..f1cf61d4e --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/files/teams.j2 @@ -0,0 +1,44 @@ +{%- set + theme_colors = { + 'resolved' : '2DC72D', + 'critical' : '8C1A1A', + 'severe' : '8C1A1A', + 'warning' : 'FF9A0B', + 'unknown' : 'CCCCCC' + } +-%} + +{ + "@type": "MessageCard", + "@context": "http://schema.org/extensions", + "themeColor": "{% if status=='resolved' %} {{ theme_colors.resolved }} {% else %} {{ theme_colors[msg_text.severity] }} {% endif %}", + "summary": "{% if status=='resolved' %}(Resolved) {% endif %}{{ msg_text.summary }}", + "title": "Prometheus alert {% if status=='resolved' %}(Resolved) {% elif status=='unknown' %} (status unknown) {% endif %}", + "sections": [{ + "activityTitle": "{{ msg_text.summary }}", + "facts": [{% if msg_text.name %}{ + "name": "Alert", + "value": "{{ msg_text.name }}" + },{% endif %}{% if msg_text.instance %}{ + "name": "In host", + "value": "{{ msg_text.instance }}" + },{% endif %}{% if msg_text.severity %}{ + "name": "Severity", + "value": "{{ msg_text.severity }}" + },{% endif %}{% if msg_text.description %}{ + "name": "Description", + "value": "{{ msg_text.description }}" + },{% endif %}{ + "name": "Status", + "value": "{{ msg_text.status }}" + }{% if msg_text.extra_labels %}{% for key in msg_text.extra_labels %},{ + "name": "{{ key }}", + "value": "{{ msg_text.extra_labels[key] }}" + }{% endfor %}{% endif %} + {% if msg_text.extra_annotations %}{% for key in msg_text.extra_annotations %},{ + "name": "{{ key }}", + "value": "{{ msg_text.extra_annotations[key] }}" + }{% endfor %}{% endif %}], + "markdown": true + }] +} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/NOTES.txt b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/NOTES.txt new file mode 100755 index 000000000..a94c4132b --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/NOTES.txt @@ -0,0 +1,2 @@ +Prom2Teams has been installed. Check its status by running: + kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}" diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/_helpers.tpl b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/_helpers.tpl new file mode 100755 index 000000000..ffc0fa356 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/_helpers.tpl @@ -0,0 +1,73 @@ +{{/* vim: set filetype=mustache: */}} + +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} + +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} +beta.kubernetes.io/os: linux +{{- else -}} +kubernetes.io/os: linux +{{- end -}} +{{- end -}} + +{{/* +Expand the name of the chart. +*/}} +{{- define "prom2teams.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "prom2teams.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Allow the release namespace to be overridden for multi-namespace deployments in combined charts +*/}} +{{- define "prom2teams.namespace" -}} +{{ default .Release.Namespace .Values.global.namespaceOverride }} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "prom2teams.labels" -}} +app.kubernetes.io/name: {{ include "prom2teams.name" . }} +helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +app.kubernetes.io/instance: {{ .Release.Name }} +release: {{ .Release.Name }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/configmap.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/configmap.yaml new file mode 100755 index 000000000..ccf38953e --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/configmap.yaml @@ -0,0 +1,39 @@ +{{- $valid := list "DEBUG" "INFO" "WARNING" "ERROR" "CRITICAL" -}} +{{- if not (has .Values.prom2teams.loglevel $valid) -}} +{{- fail "Invalid log level"}} +{{- end -}} +{{- if and .Values.prom2teams.connector (hasKey .Values.prom2teams.connectors "Connector") -}} +{{- fail "Invalid configuration: prom2teams.connectors can't have a connector named Connector when prom2teams.connector is set"}} +{{- end -}} +{{/* Create the configmap when the operation is helm install and the target configmap does not exist. */}} +{{- if not (lookup "v1" "ConfigMap" (include "prom2teams.namespace" . ) (include "prom2teams.fullname" .)) }} +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ include "prom2teams.namespace" . }} + name: {{ include "prom2teams.fullname" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": pre-install, pre-upgrade + "helm.sh/hook-weight": "3" + "helm.sh/resource-policy": keep +data: + config.ini: |- + [HTTP Server] + Host: {{ .Values.prom2teams.host }} + Port: {{ .Values.prom2teams.port }} + [Microsoft Teams] + {{- with .Values.prom2teams.connector }} + Connector: {{ . }} + {{- end }} + {{- range $key, $val := .Values.prom2teams.connectors }} + {{ $key }}: {{ $val }} + {{- end }} + [Group Alerts] + Field: {{ .Values.prom2teams.group_alerts_by }} + [Log] + Level: {{ .Values.prom2teams.loglevel }} + [Template] + Path: {{ .Values.prom2teams.templatepath }} + teams.j2: {{ .Files.Get "files/teams.j2" | quote }} + {{- end -}} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/deployment.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/deployment.yaml new file mode 100755 index 000000000..c7149b9da --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/deployment.yaml @@ -0,0 +1,77 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + serviceAccountName: {{ include "prom2teams.fullname" . }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{ toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: config + configMap: + name: {{ include "prom2teams.fullname" . }} + containers: + - name: {{ .Chart.Name }} + image: {{ include "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 8089 + protocol: TCP + volumeMounts: + - name: config + mountPath: /opt/prom2teams/helmconfig/ + env: + - name: APP_CONFIG_FILE + value: {{ .Values.prom2teams.config | quote }} + - name: PROM2TEAMS_PORT + value: {{ .Values.prom2teams.port | quote }} + - name: PROM2TEAMS_HOST + value: {{ .Values.prom2teams.ip | quote }} + - name: PROM2TEAMS_CONNECTOR + value: {{ .Values.prom2teams.connector | quote }} + - name: PROM2TEAMS_GROUP_ALERTS_BY + value: {{ .Values.prom2teams.group_alerts_by | quote }} + resources: {{ toYaml .Values.resources | nindent 12 }} + {{- if .Values.securityContext.enabled }} + securityContext: + privileged: false + readOnlyRootFilesystem: false + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + {{- end }} + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} + {{- if .Values.nodeSelector }} + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} + {{- if .Values.tolerations }} + {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} + {{- if .Values.securityContext.enabled }} + securityContext: + runAsNonRoot: {{ if eq (int .Values.securityContext.runAsUser) 0 }}false{{ else }}true{{ end }} + runAsUser: {{ .Values.securityContext.runAsUser }} + runAsGroup: {{ .Values.securityContext.runAsGroup }} + fsGroup: {{ .Values.securityContext.fsGroup }} + {{- end }} + diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/psp.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/psp.yaml new file mode 100755 index 000000000..37f21f52a --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/psp.yaml @@ -0,0 +1,28 @@ +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + labels: {{ include "prom2teams.labels" . | nindent 4 }} +spec: + privileged: false + allowPrivilegeEscalation: false + hostNetwork: false + hostIPC: false + hostPID: false + runAsUser: + rule: 'MustRunAsNonRoot' + seLinux: + rule: 'RunAsAny' + supplementalGroups: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + fsGroup: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + readOnlyRootFilesystem: false + volumes: + - 'configMap' diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/role.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/role.yaml new file mode 100755 index 000000000..25391d588 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/role.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +rules: + - apiGroups: + - policy + resourceNames: + - {{ include "prom2teams.fullname" . }}-psp + resources: + - podsecuritypolicies + verbs: + - use diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/rolebinding.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/rolebinding.yaml new file mode 100755 index 000000000..3ca8bc252 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "prom2teams.fullname" . }}-psp +subjects: + - kind: ServiceAccount + name: {{ include "prom2teams.fullname" . }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service-account.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service-account.yaml new file mode 100755 index 000000000..a9572c5cd --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service-account.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service.yaml new file mode 100755 index 000000000..cc95cad35 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/templates/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: +{{ include "prom2teams.labels" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: 8089 + protocol: TCP + name: http + selector: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/values.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/values.yaml new file mode 100755 index 000000000..dcbbd8cfa --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/prom2teams/values.yaml @@ -0,0 +1,62 @@ +# Default values for prom2teams. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +global: + cattle: + systemDefaultRegistry: "" + namespaceOverride: "" + +nameOverride: "prom2teams" +fullnameOverride: "" + +replicaCount: 1 + +image: + repository: rancher/mirrored-idealista-prom2teams + tag: 3.2.1 + pullPolicy: IfNotPresent + +resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 200m + memory: 200Mi + +service: + type: ClusterIP + port: 8089 + +prom2teams: + host: 0.0.0.0 + port: 8089 + connector: the-connector-url + connectors: {} + # group_alerts_by can be one of + # ("name" | "description" | "instance" | "severity" | "status" | "summary" | "fingerprint" | "runbook_url") + group_alerts_by: + # loglevel can be one of (DEBUG | INFO | WARNING | ERROR | CRITICAL) + loglevel: INFO + templatepath: /opt/prom2teams/helmconfig/teams.j2 + config: /opt/prom2teams/helmconfig/config.ini + +# Security Context properties +securityContext: + # enabled is a flag to enable Security Context + enabled: true + # runAsUser is the user ID used to run the container + runAsUser: 65534 + # runAsGroup is the primary group ID used to run all processes within any container of the pod + runAsGroup: 65534 + # fsGroup is the group ID associated with the container + fsGroup: 65534 + # readOnlyRootFilesystem is a flag to enable readOnlyRootFilesystem for the Hazelcast security context + readOnlyRootFilesystem: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/.helmignore b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/.helmignore new file mode 100755 index 000000000..0e8a0eb36 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/Chart.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/Chart.yaml new file mode 100755 index 000000000..493bd9d9e --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/Chart.yaml @@ -0,0 +1,11 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-sachet +apiVersion: v2 +appVersion: 0.2.3 +description: A Helm chart for Sachet based on the upstream https://github.com/messagebird/sachet +name: sachet +type: application +version: 1.0.1 diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/files/template.tmpl b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/files/template.tmpl new file mode 100755 index 000000000..08f24e138 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/files/template.tmpl @@ -0,0 +1 @@ +# reference: https://github.com/messagebird/sachet/blob/master/examples/telegram.tmpl diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/NOTES.txt b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/NOTES.txt new file mode 100755 index 000000000..247a91fc1 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/NOTES.txt @@ -0,0 +1,3 @@ +rancher-sachet is now installed on the cluster! +Please refer to the upstream documentation for configuration options: +https://github.com/messagebird/sachet diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/_helpers.tpl b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/_helpers.tpl new file mode 100755 index 000000000..eaa61fee5 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/_helpers.tpl @@ -0,0 +1,79 @@ +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} + +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} +beta.kubernetes.io/os: linux +{{- else -}} +kubernetes.io/os: linux +{{- end -}} +{{- end -}} + +{{/* +Allow the release namespace to be overridden for multi-namespace deployments in combined charts +*/}} +{{- define "sachet.namespace" -}} +{{ default .Release.Namespace .Values.global.namespaceOverride }} +{{- end }} + +{{/* +Expand the name of the chart. +*/}} +{{- define "sachet.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "sachet.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "sachet.labels" -}} +helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{ include "sachet.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "sachet.selectorLabels" -}} +app.kubernetes.io/name: {{ include "sachet.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + + diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/configmap-pre-install.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/configmap-pre-install.yaml new file mode 100755 index 000000000..8472914a9 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/configmap-pre-install.yaml @@ -0,0 +1,21 @@ +{{/*This file is applied when the operation is helm install and the target confimap does not exist. */}} +{{- if not (lookup "v1" "ConfigMap" (include "sachet.namespace" . ) (include "sachet.fullname" .)) }} +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ include "sachet.namespace" . }} + name: {{ include "sachet.fullname" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": pre-install, pre-upgrade + "helm.sh/hook-weight": "3" + "helm.sh/resource-policy": keep +data: + config.yaml: |- + {{- with .Values.sachet.providers }} + providers: {{ toYaml . | nindent 6 }} + {{- end }} + {{- with .Values.sachet.receivers }} + receivers: {{ toYaml . | nindent 6 }} + {{- end }} +{{- end }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/deployment.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/deployment.yaml new file mode 100755 index 000000000..17215eebd --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/deployment.yaml @@ -0,0 +1,75 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: {{ include "sachet.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: {{ toYaml . | nindent 8 }} + {{- end }} + labels: {{ include "sachet.selectorLabels" . | nindent 8 }} + spec: + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} + {{- if .Values.nodeSelector }} + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} + {{- if .Values.tolerations }} + {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{ toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "sachet.fullname" . }} + {{- with .Values.podSecurityContext }} + securityContext: {{ toYaml .Values.podSecurityContext | nindent 8 }} + {{- end }} + containers: + - name: {{ .Chart.Name }} + securityContext: {{ toYaml .Values.securityContext | nindent 12 }} + image: {{ include "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 9876 + protocol: TCP + livenessProbe: + httpGet: + path: /-/live + port: http + readinessProbe: + httpGet: + path: /-/ready + port: http + volumeMounts: + - mountPath: /etc/sachet/ + name: config-volume + {{- with .Values.resources }} + resources: {{ toYaml .Values.resources | nindent 12 }} + {{- end }} + - name: config-reloader + securityContext: {{ toYaml .Values.securityContext | nindent 12 }} + image: {{ include "system_default_registry" . }}{{ .Values.configReloader.repository }}:{{ .Values.configReloader.tag }} + imagePullPolicy: {{ .Values.configReloader.pullPolicy }} + args: + - -volume-dir=/watch-config + - -webhook-method=POST + - -webhook-status-code=200 + - -webhook-url=http://127.0.0.1:{{ .Values.service.port }}/-/reload + volumeMounts: + - mountPath: /watch-config + name: config-volume + volumes: + - name: config-volume + configMap: + name: {{ include "sachet.fullname" . }} + defaultMode: 0777 diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/psp.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/psp.yaml new file mode 100755 index 000000000..1cc5b0895 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/psp.yaml @@ -0,0 +1,28 @@ +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: {{ include "sachet.fullname" . }}-psp + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + privileged: false + allowPrivilegeEscalation: false + hostNetwork: false + hostIPC: false + hostPID: false + runAsUser: + rule: 'MustRunAsNonRoot' + seLinux: + rule: 'RunAsAny' + supplementalGroups: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + fsGroup: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + readOnlyRootFilesystem: false + volumes: + - 'configMap' diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/role.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/role.yaml new file mode 100755 index 000000000..05d4410e3 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/role.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ include "sachet.fullname" . }}-psp + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +rules: + - apiGroups: + - policy + resourceNames: + - {{ include "sachet.fullname" . }}-psp + resources: + - podsecuritypolicies + verbs: + - use diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/rolebinding.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/rolebinding.yaml new file mode 100755 index 000000000..174f0d9e8 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ include "sachet.fullname" . }}-psp + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "sachet.fullname" . }}-psp +subjects: + - kind: ServiceAccount + name: {{ include "sachet.fullname" . }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service-account.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service-account.yaml new file mode 100755 index 000000000..8833f1b3b --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service-account.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service.yaml new file mode 100755 index 000000000..216e8322c --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/templates/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + {{- if contains "NodePort" .Values.service.type }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} + selector: {{ include "sachet.selectorLabels" . | nindent 4 }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/values.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/values.yaml new file mode 100755 index 000000000..b00cf0b18 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/charts/sachet/values.yaml @@ -0,0 +1,63 @@ +# Default values for sachet. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +global: + cattle: + systemDefaultRegistry: "" + namespaceOverride: "" + +nameOverride: "sachet" +fullnameOverride: "" + +configReloader: + repository: rancher/mirrored-jimmidyson-configmap-reload + pullPolicy: IfNotPresent + tag: v0.4.0 + +sachet: + # reference: https://github.com/messagebird/sachet/blob/master/examples/config.yaml + providers: {} + + receivers: [] + +replicaCount: 1 + +image: + repository: rancher/mirrored-messagebird-sachet + pullPolicy: IfNotPresent + tag: 0.2.3 + +imagePullSecrets: [] + +podAnnotations: {} + +podSecurityContext: + +securityContext: + runAsUser: 1000 + runAsNonRoot: true + runAsGroup: 1000 + +service: + type: ClusterIP + port: 9876 + nodePort: 30001 + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/questions.yml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/questions.yml new file mode 100755 index 000000000..741808c23 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/questions.yml @@ -0,0 +1,14 @@ +categories: + - monitoring +namespace: cattle-monitoring-system +questions: + - variable: prom2teams.enabled + default: false + label: Enable Microsoft Teams + type: boolean + group: "General" + - variable: sachet.enabled + default: false + label: Enable SMS + type: boolean + group: "General" diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/NOTES.txt b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/NOTES.txt new file mode 100755 index 000000000..59c1415e0 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/NOTES.txt @@ -0,0 +1,2 @@ +rancher-alerting-drivers is now installed on the cluster! +Please refer to the upstream documentation for each Driver for configuration options. \ No newline at end of file diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/_helpers.tpl b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/_helpers.tpl new file mode 100755 index 000000000..e57f6ff74 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/_helpers.tpl @@ -0,0 +1,91 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "drivers.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "drivers.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "drivers.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "drivers.labels" -}} +helm.sh/chart: {{ include "drivers.chart" . }} +{{ include "drivers.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "drivers.selectorLabels" -}} +app.kubernetes.io/name: {{ include "drivers.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "drivers.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "drivers.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} + +{{/* +https://github.com/helm/helm/issues/4535#issuecomment-477778391 +Usage: {{ include "call-nested" (list . "SUBCHART_NAME" "TEMPLATE") }} +e.g. {{ include "call-nested" (list . "grafana" "grafana.fullname") }} +*/}} +{{- define "call-nested" }} +{{- $dot := index . 0 }} +{{- $subchart := index . 1 | splitList "." }} +{{- $template := index . 2 }} +{{- $values := $dot.Values }} +{{- range $subchart }} +{{- $values = index $values . }} +{{- end }} +{{- include $template (dict "Chart" (dict "Name" (last $subchart)) "Values" $values "Release" $dot.Release "Capabilities" $dot.Capabilities) }} +{{- end }} + + +{{/* +Get the list of configMaps to be managed +*/}} +{{- define "drivers.configmapList" -}} +{{- if .Values.sachet.enabled -}} +- {{ include "call-nested" (list . "sachet" "sachet.fullname") }} +{{- end }} +{{- if .Values.prom2teams.enabled -}} +- {{ include "call-nested" (list . "prom2teams" "prom2teams.fullname") }} +{{- end }} +{{- end }} diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/cluster-role.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/cluster-role.yaml new file mode 100755 index 000000000..e3022a7ca --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/templates/cluster-role.yaml @@ -0,0 +1,50 @@ +{{- if and (not .Values.sachet.enabled) (not .Values.prom2teams.enabled) -}} +{{- fail "At least one Driver must be enabled to install the chart. " }} +{{- end -}} + +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "drivers.fullname" . }}-admin + labels: {{ include "drivers.labels" . | nindent 4 }} + rbac.authorization.k8s.io/aggregate-to-admin: "true" +rules: + - apiGroups: + - "" + resources: + - configmaps + resourceNames: {{ include "drivers.configmapList" . | nindent 6 }} + verbs: + - "*" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "drivers.fullname" . }}-edit + labels: {{ include "drivers.labels" . | nindent 4 }} + rbac.authorization.k8s.io/aggregate-to-edit: "true" +rules: + - apiGroups: + - "" + resources: + - configmaps + resourceNames: {{ include "drivers.configmapList" . | nindent 6 }} + verbs: + - "*" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "drivers.fullname" . }}-view + labels: {{ include "drivers.labels" . | nindent 4 }} + rbac.authorization.k8s.io/aggregate-to-view: "true" +rules: + - apiGroups: + - "" + resources: + - configmaps + resourceNames: {{ include "drivers.configmapList" . | nindent 6 }} + verbs: + - 'get' + - 'list' + - 'watch' diff --git a/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/values.yaml b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/values.yaml new file mode 100755 index 000000000..ff9ab90e0 --- /dev/null +++ b/charts/rancher-alerting-drivers/rancher-alerting-drivers/1.0.100-rc03/values.yaml @@ -0,0 +1,17 @@ +# Default values for rancher-alerting-driver. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +global: + cattle: + # the registry where all images will be pulled from + systemDefaultRegistry: "" + # set this value if you want the sub-charts to be installed into + # a namespace rather than where this chart is installed + namespaceOverride: "" + +prom2teams: + enabled: false + +sachet: + enabled: false diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/.helmignore b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/.helmignore new file mode 100755 index 000000000..50af03172 --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/.helmignore @@ -0,0 +1,22 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/Chart.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/Chart.yaml new file mode 100755 index 000000000..e1ce55f7f --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/Chart.yaml @@ -0,0 +1,10 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-prom2teams +apiVersion: v1 +appVersion: 3.2.1 +description: A Helm chart for Prom2Teams based on the upstream https://github.com/idealista/prom2teams +name: rancher-prom2teams +version: 0.2.000-rc03 diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/files/teams.j2 b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/files/teams.j2 new file mode 100755 index 000000000..f1cf61d4e --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/files/teams.j2 @@ -0,0 +1,44 @@ +{%- set + theme_colors = { + 'resolved' : '2DC72D', + 'critical' : '8C1A1A', + 'severe' : '8C1A1A', + 'warning' : 'FF9A0B', + 'unknown' : 'CCCCCC' + } +-%} + +{ + "@type": "MessageCard", + "@context": "http://schema.org/extensions", + "themeColor": "{% if status=='resolved' %} {{ theme_colors.resolved }} {% else %} {{ theme_colors[msg_text.severity] }} {% endif %}", + "summary": "{% if status=='resolved' %}(Resolved) {% endif %}{{ msg_text.summary }}", + "title": "Prometheus alert {% if status=='resolved' %}(Resolved) {% elif status=='unknown' %} (status unknown) {% endif %}", + "sections": [{ + "activityTitle": "{{ msg_text.summary }}", + "facts": [{% if msg_text.name %}{ + "name": "Alert", + "value": "{{ msg_text.name }}" + },{% endif %}{% if msg_text.instance %}{ + "name": "In host", + "value": "{{ msg_text.instance }}" + },{% endif %}{% if msg_text.severity %}{ + "name": "Severity", + "value": "{{ msg_text.severity }}" + },{% endif %}{% if msg_text.description %}{ + "name": "Description", + "value": "{{ msg_text.description }}" + },{% endif %}{ + "name": "Status", + "value": "{{ msg_text.status }}" + }{% if msg_text.extra_labels %}{% for key in msg_text.extra_labels %},{ + "name": "{{ key }}", + "value": "{{ msg_text.extra_labels[key] }}" + }{% endfor %}{% endif %} + {% if msg_text.extra_annotations %}{% for key in msg_text.extra_annotations %},{ + "name": "{{ key }}", + "value": "{{ msg_text.extra_annotations[key] }}" + }{% endfor %}{% endif %}], + "markdown": true + }] +} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/NOTES.txt b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/NOTES.txt new file mode 100755 index 000000000..a94c4132b --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/NOTES.txt @@ -0,0 +1,2 @@ +Prom2Teams has been installed. Check its status by running: + kubectl --namespace {{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}" diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/_helpers.tpl b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/_helpers.tpl new file mode 100755 index 000000000..ffc0fa356 --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/_helpers.tpl @@ -0,0 +1,73 @@ +{{/* vim: set filetype=mustache: */}} + +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} + +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} +beta.kubernetes.io/os: linux +{{- else -}} +kubernetes.io/os: linux +{{- end -}} +{{- end -}} + +{{/* +Expand the name of the chart. +*/}} +{{- define "prom2teams.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "prom2teams.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Allow the release namespace to be overridden for multi-namespace deployments in combined charts +*/}} +{{- define "prom2teams.namespace" -}} +{{ default .Release.Namespace .Values.global.namespaceOverride }} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "prom2teams.labels" -}} +app.kubernetes.io/name: {{ include "prom2teams.name" . }} +helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +app.kubernetes.io/instance: {{ .Release.Name }} +release: {{ .Release.Name }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/configmap.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/configmap.yaml new file mode 100755 index 000000000..ccf38953e --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/configmap.yaml @@ -0,0 +1,39 @@ +{{- $valid := list "DEBUG" "INFO" "WARNING" "ERROR" "CRITICAL" -}} +{{- if not (has .Values.prom2teams.loglevel $valid) -}} +{{- fail "Invalid log level"}} +{{- end -}} +{{- if and .Values.prom2teams.connector (hasKey .Values.prom2teams.connectors "Connector") -}} +{{- fail "Invalid configuration: prom2teams.connectors can't have a connector named Connector when prom2teams.connector is set"}} +{{- end -}} +{{/* Create the configmap when the operation is helm install and the target configmap does not exist. */}} +{{- if not (lookup "v1" "ConfigMap" (include "prom2teams.namespace" . ) (include "prom2teams.fullname" .)) }} +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ include "prom2teams.namespace" . }} + name: {{ include "prom2teams.fullname" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": pre-install, pre-upgrade + "helm.sh/hook-weight": "3" + "helm.sh/resource-policy": keep +data: + config.ini: |- + [HTTP Server] + Host: {{ .Values.prom2teams.host }} + Port: {{ .Values.prom2teams.port }} + [Microsoft Teams] + {{- with .Values.prom2teams.connector }} + Connector: {{ . }} + {{- end }} + {{- range $key, $val := .Values.prom2teams.connectors }} + {{ $key }}: {{ $val }} + {{- end }} + [Group Alerts] + Field: {{ .Values.prom2teams.group_alerts_by }} + [Log] + Level: {{ .Values.prom2teams.loglevel }} + [Template] + Path: {{ .Values.prom2teams.templatepath }} + teams.j2: {{ .Files.Get "files/teams.j2" | quote }} + {{- end -}} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/deployment.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/deployment.yaml new file mode 100755 index 000000000..c7149b9da --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/deployment.yaml @@ -0,0 +1,77 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + serviceAccountName: {{ include "prom2teams.fullname" . }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{ toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: config + configMap: + name: {{ include "prom2teams.fullname" . }} + containers: + - name: {{ .Chart.Name }} + image: {{ include "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 8089 + protocol: TCP + volumeMounts: + - name: config + mountPath: /opt/prom2teams/helmconfig/ + env: + - name: APP_CONFIG_FILE + value: {{ .Values.prom2teams.config | quote }} + - name: PROM2TEAMS_PORT + value: {{ .Values.prom2teams.port | quote }} + - name: PROM2TEAMS_HOST + value: {{ .Values.prom2teams.ip | quote }} + - name: PROM2TEAMS_CONNECTOR + value: {{ .Values.prom2teams.connector | quote }} + - name: PROM2TEAMS_GROUP_ALERTS_BY + value: {{ .Values.prom2teams.group_alerts_by | quote }} + resources: {{ toYaml .Values.resources | nindent 12 }} + {{- if .Values.securityContext.enabled }} + securityContext: + privileged: false + readOnlyRootFilesystem: false + allowPrivilegeEscalation: false + capabilities: + drop: + - ALL + {{- end }} + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} + {{- if .Values.nodeSelector }} + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} + {{- if .Values.tolerations }} + {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} + {{- if .Values.securityContext.enabled }} + securityContext: + runAsNonRoot: {{ if eq (int .Values.securityContext.runAsUser) 0 }}false{{ else }}true{{ end }} + runAsUser: {{ .Values.securityContext.runAsUser }} + runAsGroup: {{ .Values.securityContext.runAsGroup }} + fsGroup: {{ .Values.securityContext.fsGroup }} + {{- end }} + diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/psp.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/psp.yaml new file mode 100755 index 000000000..37f21f52a --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/psp.yaml @@ -0,0 +1,28 @@ +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + labels: {{ include "prom2teams.labels" . | nindent 4 }} +spec: + privileged: false + allowPrivilegeEscalation: false + hostNetwork: false + hostIPC: false + hostPID: false + runAsUser: + rule: 'MustRunAsNonRoot' + seLinux: + rule: 'RunAsAny' + supplementalGroups: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + fsGroup: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + readOnlyRootFilesystem: false + volumes: + - 'configMap' diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/role.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/role.yaml new file mode 100755 index 000000000..25391d588 --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/role.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +rules: + - apiGroups: + - policy + resourceNames: + - {{ include "prom2teams.fullname" . }}-psp + resources: + - podsecuritypolicies + verbs: + - use diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/rolebinding.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/rolebinding.yaml new file mode 100755 index 000000000..3ca8bc252 --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ include "prom2teams.fullname" . }}-psp + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "prom2teams.fullname" . }}-psp +subjects: + - kind: ServiceAccount + name: {{ include "prom2teams.fullname" . }} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service-account.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service-account.yaml new file mode 100755 index 000000000..a9572c5cd --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service-account.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: {{ include "prom2teams.labels" . | nindent 4 }} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service.yaml new file mode 100755 index 000000000..cc95cad35 --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/templates/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "prom2teams.fullname" . }} + namespace: {{ include "prom2teams.namespace" . }} + labels: +{{ include "prom2teams.labels" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: 8089 + protocol: TCP + name: http + selector: + app.kubernetes.io/name: {{ include "prom2teams.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/values.yaml b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/values.yaml new file mode 100755 index 000000000..dcbbd8cfa --- /dev/null +++ b/charts/rancher-prom2teams/rancher-prom2teams/0.2.000-rc03/values.yaml @@ -0,0 +1,62 @@ +# Default values for prom2teams. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +global: + cattle: + systemDefaultRegistry: "" + namespaceOverride: "" + +nameOverride: "prom2teams" +fullnameOverride: "" + +replicaCount: 1 + +image: + repository: rancher/mirrored-idealista-prom2teams + tag: 3.2.1 + pullPolicy: IfNotPresent + +resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 200m + memory: 200Mi + +service: + type: ClusterIP + port: 8089 + +prom2teams: + host: 0.0.0.0 + port: 8089 + connector: the-connector-url + connectors: {} + # group_alerts_by can be one of + # ("name" | "description" | "instance" | "severity" | "status" | "summary" | "fingerprint" | "runbook_url") + group_alerts_by: + # loglevel can be one of (DEBUG | INFO | WARNING | ERROR | CRITICAL) + loglevel: INFO + templatepath: /opt/prom2teams/helmconfig/teams.j2 + config: /opt/prom2teams/helmconfig/config.ini + +# Security Context properties +securityContext: + # enabled is a flag to enable Security Context + enabled: true + # runAsUser is the user ID used to run the container + runAsUser: 65534 + # runAsGroup is the primary group ID used to run all processes within any container of the pod + runAsGroup: 65534 + # fsGroup is the group ID associated with the container + fsGroup: 65534 + # readOnlyRootFilesystem is a flag to enable readOnlyRootFilesystem for the Hazelcast security context + readOnlyRootFilesystem: true + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/.helmignore b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/.helmignore new file mode 100755 index 000000000..0e8a0eb36 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/Chart.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/Chart.yaml new file mode 100755 index 000000000..62ded67ea --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/Chart.yaml @@ -0,0 +1,11 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-sachet +apiVersion: v2 +appVersion: 0.2.3 +description: A Helm chart for Sachet based on the upstream https://github.com/messagebird/sachet +name: rancher-sachet +type: application +version: 1.0.100-rc03 diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/files/template.tmpl b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/files/template.tmpl new file mode 100755 index 000000000..08f24e138 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/files/template.tmpl @@ -0,0 +1 @@ +# reference: https://github.com/messagebird/sachet/blob/master/examples/telegram.tmpl diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/NOTES.txt b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/NOTES.txt new file mode 100755 index 000000000..247a91fc1 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/NOTES.txt @@ -0,0 +1,3 @@ +rancher-sachet is now installed on the cluster! +Please refer to the upstream documentation for configuration options: +https://github.com/messagebird/sachet diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/_helpers.tpl b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/_helpers.tpl new file mode 100755 index 000000000..eaa61fee5 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/_helpers.tpl @@ -0,0 +1,79 @@ +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} + +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}} +beta.kubernetes.io/os: linux +{{- else -}} +kubernetes.io/os: linux +{{- end -}} +{{- end -}} + +{{/* +Allow the release namespace to be overridden for multi-namespace deployments in combined charts +*/}} +{{- define "sachet.namespace" -}} +{{ default .Release.Namespace .Values.global.namespaceOverride }} +{{- end }} + +{{/* +Expand the name of the chart. +*/}} +{{- define "sachet.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "sachet.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "sachet.labels" -}} +helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{ include "sachet.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "sachet.selectorLabels" -}} +app.kubernetes.io/name: {{ include "sachet.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + + diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/configmap-pre-install.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/configmap-pre-install.yaml new file mode 100755 index 000000000..8472914a9 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/configmap-pre-install.yaml @@ -0,0 +1,21 @@ +{{/*This file is applied when the operation is helm install and the target confimap does not exist. */}} +{{- if not (lookup "v1" "ConfigMap" (include "sachet.namespace" . ) (include "sachet.fullname" .)) }} +apiVersion: v1 +kind: ConfigMap +metadata: + namespace: {{ include "sachet.namespace" . }} + name: {{ include "sachet.fullname" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": pre-install, pre-upgrade + "helm.sh/hook-weight": "3" + "helm.sh/resource-policy": keep +data: + config.yaml: |- + {{- with .Values.sachet.providers }} + providers: {{ toYaml . | nindent 6 }} + {{- end }} + {{- with .Values.sachet.receivers }} + receivers: {{ toYaml . | nindent 6 }} + {{- end }} +{{- end }} diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/deployment.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/deployment.yaml new file mode 100755 index 000000000..17215eebd --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/deployment.yaml @@ -0,0 +1,75 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: {{ include "sachet.selectorLabels" . | nindent 6 }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: {{ toYaml . | nindent 8 }} + {{- end }} + labels: {{ include "sachet.selectorLabels" . | nindent 8 }} + spec: + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} + {{- if .Values.nodeSelector }} + {{- toYaml .Values.nodeSelector | nindent 8 }} + {{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} + {{- if .Values.tolerations }} + {{- toYaml .Values.tolerations | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: {{ toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: {{ toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "sachet.fullname" . }} + {{- with .Values.podSecurityContext }} + securityContext: {{ toYaml .Values.podSecurityContext | nindent 8 }} + {{- end }} + containers: + - name: {{ .Chart.Name }} + securityContext: {{ toYaml .Values.securityContext | nindent 12 }} + image: {{ include "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 9876 + protocol: TCP + livenessProbe: + httpGet: + path: /-/live + port: http + readinessProbe: + httpGet: + path: /-/ready + port: http + volumeMounts: + - mountPath: /etc/sachet/ + name: config-volume + {{- with .Values.resources }} + resources: {{ toYaml .Values.resources | nindent 12 }} + {{- end }} + - name: config-reloader + securityContext: {{ toYaml .Values.securityContext | nindent 12 }} + image: {{ include "system_default_registry" . }}{{ .Values.configReloader.repository }}:{{ .Values.configReloader.tag }} + imagePullPolicy: {{ .Values.configReloader.pullPolicy }} + args: + - -volume-dir=/watch-config + - -webhook-method=POST + - -webhook-status-code=200 + - -webhook-url=http://127.0.0.1:{{ .Values.service.port }}/-/reload + volumeMounts: + - mountPath: /watch-config + name: config-volume + volumes: + - name: config-volume + configMap: + name: {{ include "sachet.fullname" . }} + defaultMode: 0777 diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/psp.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/psp.yaml new file mode 100755 index 000000000..1cc5b0895 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/psp.yaml @@ -0,0 +1,28 @@ +apiVersion: policy/v1beta1 +kind: PodSecurityPolicy +metadata: + name: {{ include "sachet.fullname" . }}-psp + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + privileged: false + allowPrivilegeEscalation: false + hostNetwork: false + hostIPC: false + hostPID: false + runAsUser: + rule: 'MustRunAsNonRoot' + seLinux: + rule: 'RunAsAny' + supplementalGroups: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + fsGroup: + rule: 'MustRunAs' + ranges: + - min: 1 + max: 65535 + readOnlyRootFilesystem: false + volumes: + - 'configMap' diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/role.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/role.yaml new file mode 100755 index 000000000..05d4410e3 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/role.yaml @@ -0,0 +1,15 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + name: {{ include "sachet.fullname" . }}-psp + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +rules: + - apiGroups: + - policy + resourceNames: + - {{ include "sachet.fullname" . }}-psp + resources: + - podsecuritypolicies + verbs: + - use diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/rolebinding.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/rolebinding.yaml new file mode 100755 index 000000000..174f0d9e8 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/rolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: {{ include "sachet.fullname" . }}-psp + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: {{ include "sachet.fullname" . }}-psp +subjects: + - kind: ServiceAccount + name: {{ include "sachet.fullname" . }} diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service-account.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service-account.yaml new file mode 100755 index 000000000..8833f1b3b --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service-account.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service.yaml new file mode 100755 index 000000000..216e8322c --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/templates/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "sachet.fullname" . }} + namespace: {{ include "sachet.namespace" . }} + labels: {{ include "sachet.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + {{- if contains "NodePort" .Values.service.type }} + nodePort: {{ .Values.service.nodePort }} + {{- end }} + selector: {{ include "sachet.selectorLabels" . | nindent 4 }} diff --git a/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/values.yaml b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/values.yaml new file mode 100755 index 000000000..b00cf0b18 --- /dev/null +++ b/charts/rancher-sachet/rancher-sachet/1.0.100-rc03/values.yaml @@ -0,0 +1,63 @@ +# Default values for sachet. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +global: + cattle: + systemDefaultRegistry: "" + namespaceOverride: "" + +nameOverride: "sachet" +fullnameOverride: "" + +configReloader: + repository: rancher/mirrored-jimmidyson-configmap-reload + pullPolicy: IfNotPresent + tag: v0.4.0 + +sachet: + # reference: https://github.com/messagebird/sachet/blob/master/examples/config.yaml + providers: {} + + receivers: [] + +replicaCount: 1 + +image: + repository: rancher/mirrored-messagebird-sachet + pullPolicy: IfNotPresent + tag: 0.2.3 + +imagePullSecrets: [] + +podAnnotations: {} + +podSecurityContext: + +securityContext: + runAsUser: 1000 + runAsNonRoot: true + runAsGroup: 1000 + +service: + type: ClusterIP + port: 9876 + nodePort: 30001 + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {} diff --git a/index.yaml b/index.yaml index f0fc9e4ca..201aca8e0 100755 --- a/index.yaml +++ b/index.yaml @@ -1836,6 +1836,32 @@ entries: - released/assets/longhorn/longhorn-crd-1.0.200.tgz version: 1.0.200 rancher-alerting-drivers: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Alerting Drivers + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-alerting-drivers + apiVersion: v2 + appVersion: 1.16.0 + created: "2021-04-21T19:30:59.638973174Z" + dependencies: + - condition: prom2teams.enabled + name: prom2teams + repository: file://./charts/prom2teams + - condition: sachet.enabled + name: sachet + repository: file://./charts/sachet + description: The manager for third-party webhook receivers used in Prometheus + Alertmanager + digest: 4e6ae29c5ace7253df6d3ab03f365586dee5886983840252760dd1f4f745c36b + keywords: + - monitoring + - alertmanger + - webhook + name: rancher-alerting-drivers + urls: + - assets/rancher-alerting-drivers/rancher-alerting-drivers-1.0.100-rc03.tgz + version: 1.0.100-rc03 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Alerting Drivers @@ -8541,6 +8567,20 @@ entries: - released/assets/rancher-operator-crd/rancher-operator-crd-0.1.0-alpha800.tgz version: 0.1.0-alpha800 rancher-prom2teams: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-prom2teams + apiVersion: v1 + appVersion: 3.2.1 + created: "2021-04-21T19:31:00.376394323Z" + description: A Helm chart for Prom2Teams based on the upstream https://github.com/idealista/prom2teams + digest: 95e6b362dc67dc83e0359845ccad06a0d38cfbecf45203e6a4d361eea79f1d8e + name: rancher-prom2teams + urls: + - assets/rancher-prom2teams/rancher-prom2teams-0.2.000-rc03.tgz + version: 0.2.000-rc03 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/hidden: "true" @@ -8748,6 +8788,21 @@ entries: - released/assets/rancher-pushprox/rancher-pushprox-0.1.0.tgz version: 0.1.0 rancher-sachet: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: rancher-sachet + apiVersion: v2 + appVersion: 0.2.3 + created: "2021-04-21T19:31:00.381182575Z" + description: A Helm chart for Sachet based on the upstream https://github.com/messagebird/sachet + digest: 9bf4bcf83bf17d0972fbca2c45284b1e010358c841d86bc04300c73bc5fe87eb + name: rancher-sachet + type: application + urls: + - assets/rancher-sachet/rancher-sachet-1.0.100-rc03.tgz + version: 1.0.100-rc03 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/hidden: "true"