From ad5007266abda4f51e3d0e2ca7ca10927e01cb86 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 19 May 2020 11:14:11 +0100 Subject: [PATCH] Add draft for central helm library --- charts/kubezero-lib/.helmignore | 23 ++++++++++++++++++++++ charts/kubezero-lib/Chart.yaml | 12 +++++++++++ charts/kubezero-lib/README.md | 11 +++++++++++ charts/kubezero-lib/templates/_helpers.tpl | 9 +++++++++ 4 files changed, 55 insertions(+) create mode 100644 charts/kubezero-lib/.helmignore create mode 100644 charts/kubezero-lib/Chart.yaml create mode 100644 charts/kubezero-lib/README.md create mode 100644 charts/kubezero-lib/templates/_helpers.tpl diff --git a/charts/kubezero-lib/.helmignore b/charts/kubezero-lib/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/charts/kubezero-lib/.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/kubezero-lib/Chart.yaml b/charts/kubezero-lib/Chart.yaml new file mode 100644 index 0000000..78f7791 --- /dev/null +++ b/charts/kubezero-lib/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: kubezero-lib +description: KubeZero helm library - common helm functions and blocks +type: library +version: 0.1.0 +home: https://kubezero.com +icon: https://cdn.zero-downtime.net/assets/logo_small.png +keywords: + - kubezero +maintainers: + - name: Quarky9 +kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-lib/README.md b/charts/kubezero-lib/README.md new file mode 100644 index 0000000..479c259 --- /dev/null +++ b/charts/kubezero-lib/README.md @@ -0,0 +1,11 @@ +kubezero-lib +============ +KubeZero helm library - common helm functions and blocks + +Current chart version is `0.1.0` + +Source code can be found [here](https://kubezero.com) + + + + diff --git a/charts/kubezero-lib/templates/_helpers.tpl b/charts/kubezero-lib/templates/_helpers.tpl new file mode 100644 index 0000000..498dd1b --- /dev/null +++ b/charts/kubezero-lib/templates/_helpers.tpl @@ -0,0 +1,9 @@ +{{- /* +Common set of labels +*/ -}} +{{- define "kubezero-library.labels" -}} +app.kubernetes.io/name: {{ .name }} +helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +app.kubernetes.io/part-of: kubezero +{{- end -}}