Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ (misc-apps) init misc-apps #79

Merged
merged 10 commits into from
Sep 9, 2020
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

Expand Down
23 changes: 23 additions & 0 deletions charts/misc-apps/.helmignore
Original file line number Diff line number Diff line change
@@ -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/
6 changes: 6 additions & 0 deletions charts/misc-apps/Chart.lock
Original file line number Diff line number Diff line change
@@ -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"
18 changes: 18 additions & 0 deletions charts/misc-apps/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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: [email protected]
url: https://adfinis.com
dependencies:
- name: argoconfig
version: 0.6.3
repository: https://charts.adfinis.com
53 changes: 53 additions & 0 deletions charts/misc-apps/README.md
Original file line number Diff line number Diff line change
@@ -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:** <https://github.com/adfinis-sygroup/helm-charts/tree/master/charts/misc-apps>

## Maintainers
This chart is maintained by [Adfinis](https://adfinis.com/?pk_campaign=github&pk_kwd=helm-charts).

## Source Code

* <https://github.com/adfinis-sygroup/helm-charts>

## 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.
7 changes: 7 additions & 0 deletions charts/misc-apps/ci/default-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
downscaler:
enabled: true
values: {}

signalilo:
enabled: true
values: {}
13 changes: 13 additions & 0 deletions charts/misc-apps/examples/kube-downscaler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
downscaler:
enabled: true
hairmare marked this conversation as resolved.
Show resolved Hide resolved
project: infra-downscaler
values:
debug:
enable: false
resources:
limits:
cpu: 50m
memory: 200Mi
excludedNamespaces:
- kube-system
- infra-downscaler
24 changes: 24 additions & 0 deletions charts/misc-apps/examples/signalilo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
signalilo:
enabled: true
hairmare marked this conversation as resolved.
Show resolved Hide resolved
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-----
7 changes: 7 additions & 0 deletions charts/misc-apps/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The following apps are available:
{{ if .Values.downscaler.enabled }}
* kube-downscaler
{{ end }}
{{ if .Values.signalilo.enabled }}
* signalilo
{{ end }}
33 changes: 33 additions & 0 deletions charts/misc-apps/templates/downscaler.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
blaserd marked this conversation as resolved.
Show resolved Hide resolved
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 -}}
33 changes: 33 additions & 0 deletions charts/misc-apps/templates/signalilo.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
blaserd marked this conversation as resolved.
Show resolved Hide resolved
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 -}}
37 changes: 37 additions & 0 deletions charts/misc-apps/values.yaml
Original file line number Diff line number Diff line change
@@ -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
hairmare marked this conversation as resolved.
Show resolved Hide resolved
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
hairmare marked this conversation as resolved.
Show resolved Hide resolved
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: {}