diff --git a/README.md b/README.md index 4744cb875..6a2b446c1 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ helm repo add adfinis https://charts.adfinis.com | [caasperli](charts/caasperli) | Deploy Caasperli to a Kubernetes Cluster | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: latest](https://img.shields.io/badge/app%20version-latest-brightgreen) | | [common](charts/common) | Common chartbuilding components and helpers, based on incubator/common | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) | | [kasperleyn](charts/kasperleyn) | A Helm 2 chart to deploy Caasperli | ![Version: 1.0.x](https://img.shields.io/badge/version-1.0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) | +| [misc-apps](charts/misc-apps) | Argo CD app-of-apps config for miscellaneous small tools | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 0.x](https://img.shields.io/badge/app%20version-0.x-brightgreen) | | [sentry-apps](charts/sentry-apps) | Sentry on premise | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 5.1.x](https://img.shields.io/badge/app%20version-5.1.x-brightgreen) | | [timed](charts/timed) | Chart for Timed application | ![Version: 0.x](https://img.shields.io/badge/version-0.x-brightgreen) ![App version: 1.1.x](https://img.shields.io/badge/app%20version-1.1.x-brightgreen) | diff --git a/charts/misc-apps/.helmignore b/charts/misc-apps/.helmignore new file mode 100644 index 000000000..0e8a0eb36 --- /dev/null +++ b/charts/misc-apps/.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/misc-apps/Chart.lock b/charts/misc-apps/Chart.lock new file mode 100644 index 000000000..7e012317e --- /dev/null +++ b/charts/misc-apps/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: argoconfig + repository: https://charts.adfinis.com + version: 0.6.3 +digest: sha256:0288146a81727cebb26606a32948691d2758b48c4a6c00ecc6bd5f413a5e4fa2 +generated: "2020-09-08T19:58:21.947318+02:00" diff --git a/charts/misc-apps/Chart.yaml b/charts/misc-apps/Chart.yaml new file mode 100644 index 000000000..c6f506d22 --- /dev/null +++ b/charts/misc-apps/Chart.yaml @@ -0,0 +1,18 @@ +apiVersion: v2 +name: misc-apps +description: Argo CD app-of-apps config for miscellaneous small tools +type: application +# version and appVersion are in sync in this chart! +version: 0.1.0 +appVersion: 0.1.0 +home: https://github.com/adfinis-sygroup/helm-charts/tree/master/charts/misc-apps +sources: + - https://github.com/adfinis-sygroup/helm-charts +maintainers: + - name: adfinis-sygroup + email: support@adfinis.com + url: https://adfinis.com +dependencies: + - name: argoconfig + version: 0.6.3 + repository: https://charts.adfinis.com diff --git a/charts/misc-apps/README.md b/charts/misc-apps/README.md new file mode 100644 index 000000000..65959dfa9 --- /dev/null +++ b/charts/misc-apps/README.md @@ -0,0 +1,53 @@ +# misc-apps + +![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) + +Argo CD app-of-apps config for miscellaneous small tools + +**Homepage:** + +## Maintainers +This chart is maintained by [Adfinis](https://adfinis.com/?pk_campaign=github&pk_kwd=helm-charts). + +## Source Code + +* + +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| https://charts.adfinis.com | argoconfig | 0.6.3 | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| downscaler | object | - | [kube-downscaler](https://github.com/hjacobs/kube-downscaler) ([example](./examples/kube-downscaler.yaml)) | +| downscaler.chart | string | `"kube-downscaler"` | Chart | +| downscaler.destination.namespace | string | `"infra-downscaler"` | Namespace | +| downscaler.enabled | bool | `false` | Enable kube-downscaler | +| downscaler.repoURL | string | [repo](http://storage.googleapis.com/kubernetes-charts-incubator) | Repo URL | +| downscaler.targetRevision | string | `"0.5.*"` | [kube-downscaler Helm chart](https://github.com/helm/charts/tree/master/incubator/kube-downscaler) version | +| downscaler.values | object | [upstream values](https://github.com/helm/charts/blob/master/incubator/kube-downscaler/values.yaml) | Helm values | +| signalilo | object | - | [sigalilo](https://github.com/vshn/signalilo) ([example](./examples/signalilo.yaml)) | +| signalilo.chart | string | `"signalilo"` | Chart | +| signalilo.destination.namespace | string | `"infra-signalilo"` | Namespace | +| signalilo.enabled | bool | `false` | Enable signalilo | +| signalilo.repoURL | string | [repo](https://charts.appuio.ch) | Repo URL | +| signalilo.targetRevision | string | `"0.5.*"` | [signalilo Helm chart](https://github.com/appuio/charts/tree/master/signalilo) version | +| signalilo.values | object | [upstream values](https://github.com/appuio/charts/blob/master/signalilo/values.yaml) | Helm values | + +## About this chart + +Adfinis fights for a software world that is more open, where the quality is +better and where software must be accessible to everyone. This chart +is part of the action behind this commitment. Feel free to +[contact](https://adfinis.com/kontakt/?pk_campaign=github&pk_kwd=helm-charts) +us if you have any questions. + +## License + +This Helm chart is free software: you can redistribute it and/or modify it under the terms +of the GNU Affero General Public License as published by the Free Software Foundation, +version 3 of the License. diff --git a/charts/misc-apps/ci/default-values.yaml b/charts/misc-apps/ci/default-values.yaml new file mode 100644 index 000000000..31af1c179 --- /dev/null +++ b/charts/misc-apps/ci/default-values.yaml @@ -0,0 +1,7 @@ +downscaler: + enabled: true + values: {} + +signalilo: + enabled: true + values: {} diff --git a/charts/misc-apps/examples/kube-downscaler.yaml b/charts/misc-apps/examples/kube-downscaler.yaml new file mode 100644 index 000000000..313b886a3 --- /dev/null +++ b/charts/misc-apps/examples/kube-downscaler.yaml @@ -0,0 +1,13 @@ +downscaler: + enabled: true + project: infra-downscaler + values: + debug: + enable: false + resources: + limits: + cpu: 50m + memory: 200Mi + excludedNamespaces: + - kube-system + - infra-downscaler diff --git a/charts/misc-apps/examples/signalilo.yaml b/charts/misc-apps/examples/signalilo.yaml new file mode 100644 index 000000000..9d1fb85f5 --- /dev/null +++ b/charts/misc-apps/examples/signalilo.yaml @@ -0,0 +1,24 @@ +signalilo: + enabled: true + project: infra-signalilo + values: + resources: + limits: + cpu: 100m + memory: 200Mi + config: + # needs replacing with a fresh uuid + uuid: + icinga_hostname: kubernetes.default.svc + icinga_url: https://icinga.int.example.com + icinga_username: api-user + icinga_password: secret + alertmanager_bearer_token: secret + extraEnvVars: + - name: SIGNALILO_ICINGA_DEBUG + value: "false" + # the CA of your icinga setup, if needed + - name: SIGNALILO_ICINGA_CA + value: | + -----BEGIN CERTIFICATE----- + -----END CERTIFICATE----- diff --git a/charts/misc-apps/templates/NOTES.txt b/charts/misc-apps/templates/NOTES.txt new file mode 100644 index 000000000..497a5a698 --- /dev/null +++ b/charts/misc-apps/templates/NOTES.txt @@ -0,0 +1,7 @@ +The following apps are available: +{{ if .Values.downscaler.enabled }} +* kube-downscaler +{{ end }} +{{ if .Values.signalilo.enabled }} +* signalilo +{{ end }} diff --git a/charts/misc-apps/templates/downscaler.yaml b/charts/misc-apps/templates/downscaler.yaml new file mode 100644 index 000000000..f1cabb2ff --- /dev/null +++ b/charts/misc-apps/templates/downscaler.yaml @@ -0,0 +1,33 @@ +{{ if .Values.downscaler.enabled }} +{{ template "argoconfig.application" (list . "misc-apps.downscaler") }} +{{ end }} + +{{- define "misc-apps.downscaler" -}}{{- $app := unset .Values.downscaler "enabled" -}}{{- $name := default $app.destination.namespace $app.name -}} +metadata: + name: {{ template "common.fullname" . }}-{{ $name }} +spec: + {{- if $app.project }} + project: {{ $app.project | quote }} + {{- end }} + source: + repoURL: {{ $app.repoURL | quote }} + chart: {{ $app.chart | quote }} + targetRevision: {{ $app.targetRevision | quote }} + helm: + releaseName: {{ $name | quote }} + values: |- + nameOverride: {{ $name | quote }} + {{- $app.values | toYaml | nindent 8 }} + {{- if $app.destination }} + destination: + {{ $app.destination | toYaml | nindent 4 }} + {{- end }} + {{- if $app.syncPolicy }} + syncPolicy: + {{ $app.syncPolicy | toYaml | nindent 4 }} + {{- end }} + {{- if $app.ignoreDifferences }} + ignoreDifferences: + {{ $app.ignoreDifferences | toYaml | nindent 4 }} + {{- end }} +{{- end -}} diff --git a/charts/misc-apps/templates/signalilo.yaml b/charts/misc-apps/templates/signalilo.yaml new file mode 100644 index 000000000..f531e40bb --- /dev/null +++ b/charts/misc-apps/templates/signalilo.yaml @@ -0,0 +1,33 @@ +{{ if .Values.signalilo.enabled }} +{{ template "argoconfig.application" (list . "misc-apps.signalilo") }} +{{ end }} + +{{- define "misc-apps.signalilo" -}}{{- $app := unset .Values.signalilo "enabled" -}}{{- $name := default $app.destination.namespace $app.name -}} +metadata: + name: {{ template "common.fullname" . }}-{{ $name }} +spec: + {{- if $app.project }} + project: {{ $app.project | quote }} + {{- end }} + source: + repoURL: {{ $app.repoURL | quote }} + chart: {{ $app.chart | quote }} + targetRevision: {{ $app.targetRevision | quote }} + helm: + releaseName: {{ $name | quote }} + values: |- + nameOverride: {{ $name | quote }} + {{- $app.values | toYaml | nindent 8 }} + {{- if $app.destination }} + destination: + {{ $app.destination | toYaml | nindent 4 }} + {{- end }} + {{- if $app.syncPolicy }} + syncPolicy: + {{ $app.syncPolicy | toYaml | nindent 4 }} + {{- end }} + {{- if $app.ignoreDifferences }} + ignoreDifferences: + {{ $app.ignoreDifferences | toYaml | nindent 4 }} + {{- end }} +{{- end -}} diff --git a/charts/misc-apps/values.yaml b/charts/misc-apps/values.yaml new file mode 100644 index 000000000..a118ddfd0 --- /dev/null +++ b/charts/misc-apps/values.yaml @@ -0,0 +1,37 @@ +# downscaler -- [kube-downscaler](https://github.com/hjacobs/kube-downscaler) ([example](./examples/kube-downscaler.yaml)) +# @default -- - +downscaler: + # downscaler.enabled -- Enable kube-downscaler + enabled: false + destination: + # downscaler.destination.namespace -- Namespace + namespace: "infra-downscaler" + # downscaler.repoURL -- Repo URL + # @default -- [repo](http://storage.googleapis.com/kubernetes-charts-incubator) + repoURL: "http://storage.googleapis.com/kubernetes-charts-incubator" + # downscaler.chart -- Chart + chart: "kube-downscaler" + # downscaler.targetRevision -- [kube-downscaler Helm chart](https://github.com/helm/charts/tree/master/incubator/kube-downscaler) version + targetRevision: "0.5.*" + # downscaler.values -- Helm values + # @default -- [upstream values](https://github.com/helm/charts/blob/master/incubator/kube-downscaler/values.yaml) + values: {} + +# signalilo -- [sigalilo](https://github.com/vshn/signalilo) ([example](./examples/signalilo.yaml)) +# @default -- - +signalilo: + # signalilo.enabled -- Enable signalilo + enabled: false + destination: + # signalilo.destination.namespace -- Namespace + namespace: "infra-signalilo" + # signalilo.repoURL -- Repo URL + # @default -- [repo](https://charts.appuio.ch) + repoURL: "https://charts.appuio.ch" + # signalilo.chart -- Chart + chart: "signalilo" + # signalilo.targetRevision -- [signalilo Helm chart](https://github.com/appuio/charts/tree/master/signalilo) version + targetRevision: "0.5.*" + # signalilo.values -- Helm values + # @default -- [upstream values](https://github.com/appuio/charts/blob/master/signalilo/values.yaml) + values: {}