From 3863f796a14961477374163ad34f32db2523cd17 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 08:56:52 -0800 Subject: [PATCH 01/24] Fixed branch name Signed-off-by: Abhimanyu Saharan --- .github/workflows/helm-charts-test.yml | 2 +- .github/workflows/release-drafter.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/helm-charts-test.yml b/.github/workflows/helm-charts-test.yml index fc003af..a5775ea 100644 --- a/.github/workflows/helm-charts-test.yml +++ b/.github/workflows/helm-charts-test.yml @@ -8,7 +8,7 @@ on: - dev pull_request: branches: - - master + - main jobs: lint-test: diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 843460a..2119297 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -3,7 +3,7 @@ name: Release Drafter on: push: branches: - - master + - main jobs: update_release_draft: From 417efbb80089f8b7c7f81bc05e08a0a3ba94fa12 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 08:58:05 -0800 Subject: [PATCH 02/24] Changed target-branch Signed-off-by: Abhimanyu Saharan --- ct.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct.yaml b/ct.yaml index 2ad26b6..285c476 100644 --- a/ct.yaml +++ b/ct.yaml @@ -1,5 +1,5 @@ remote: origin -target-branch: master +target-branch: dev chart-dirs: - charts helm-extra-args: --timeout 300s From 0d8f16e31a82c84067c6451cfd7e2951a6dc8c1e Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:02:11 -0800 Subject: [PATCH 03/24] Disable persistence by default Signed-off-by: Abhimanyu Saharan --- charts/daemon/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/daemon/values.yaml b/charts/daemon/values.yaml index 000e88c..18c2bf9 100644 --- a/charts/daemon/values.yaml +++ b/charts/daemon/values.yaml @@ -62,7 +62,7 @@ resources: {} # Persist data to a persistent volume ## persistence: - enabled: true + enabled: false ## If true will use an existing PVC instead of creating one # useExisting: false ## Name of existing PVC to be used in the influx deployment From 5aef6dc1bf7552cf367b97723851ba632ef2b496 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:02:34 -0800 Subject: [PATCH 04/24] Bumped up chart version Signed-off-by: Abhimanyu Saharan --- charts/daemon/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/daemon/Chart.yaml b/charts/daemon/Chart.yaml index f2721c0..733ccfe 100644 --- a/charts/daemon/Chart.yaml +++ b/charts/daemon/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.0 +version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. From 20a7c850ccf536575f3edf9ea8499008bc57da54 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:24:23 -0800 Subject: [PATCH 05/24] More fixes Signed-off-by: Abhimanyu Saharan --- .github/workflows/helm-charts-test.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/helm-charts-test.yml b/.github/workflows/helm-charts-test.yml index a5775ea..ea1c539 100644 --- a/.github/workflows/helm-charts-test.yml +++ b/.github/workflows/helm-charts-test.yml @@ -1,8 +1,6 @@ -name: "helm-charts/test" +name: Lint and Test Charts on: - schedule: - - cron: '0 2 * * *' # run at 2 AM UTC push: branches: - dev @@ -13,38 +11,43 @@ on: jobs: lint-test: runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Set up Helm uses: azure/setup-helm@v1 with: - version: v3.4.0 + version: v3.4.1 - - uses: actions/setup-python@v2 + # Python is required because `ct lint` runs Yamale (https://github.com/23andMe/Yamale) and + # yamllint (https://github.com/adrienverge/yamllint) which require Python + - name: Set up Python + uses: actions/setup-python@v2 with: python-version: 3.7 - name: Set up chart-testing uses: helm/chart-testing-action@v2.0.1 + with: + version: v3.3.0 - name: Run chart-testing (list-changed) id: list-changed run: | - changed=$(ct list-changed) + changed=$(ct list-changed --config ct.yaml) if [[ -n "$changed" ]]; then echo "::set-output name=changed::true" fi - name: Run chart-testing (lint) - run: ct lint + run: ct lint --config ct.yaml - name: Create kind cluster - uses: helm/kind-action@v1.0.0 - # Only build a kind cluster if there are chart changes to test. + uses: helm/kind-action@v1.1.0 if: steps.list-changed.outputs.changed == 'true' - name: Run chart-testing (install) - run: ct install \ No newline at end of file + run: ct install --config ct.yaml From e4d231f43844a567b24613956d4072c29733c487 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:26:32 -0800 Subject: [PATCH 06/24] Revert target-branch Signed-off-by: Abhimanyu Saharan --- ct.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct.yaml b/ct.yaml index 285c476..2ad26b6 100644 --- a/ct.yaml +++ b/ct.yaml @@ -1,5 +1,5 @@ remote: origin -target-branch: dev +target-branch: master chart-dirs: - charts helm-extra-args: --timeout 300s From 8683cea93ba5a3989b48a275a145308fed51e9e0 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:29:26 -0800 Subject: [PATCH 07/24] More workflow fixes Signed-off-by: Abhimanyu Saharan --- .github/workflows/helm-charts-test.yml | 8 +------- ct.yaml | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/helm-charts-test.yml b/.github/workflows/helm-charts-test.yml index ea1c539..3df8c3e 100644 --- a/.github/workflows/helm-charts-test.yml +++ b/.github/workflows/helm-charts-test.yml @@ -1,12 +1,6 @@ name: Lint and Test Charts -on: - push: - branches: - - dev - pull_request: - branches: - - main +on: pull_request jobs: lint-test: diff --git a/ct.yaml b/ct.yaml index 2ad26b6..57d3885 100644 --- a/ct.yaml +++ b/ct.yaml @@ -1,5 +1,4 @@ remote: origin -target-branch: master chart-dirs: - charts helm-extra-args: --timeout 300s From 1ddc7ae71f6fb39dcc867de4ab07e3b3f7ee1e87 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:33:11 -0800 Subject: [PATCH 08/24] Added target branch main Signed-off-by: Abhimanyu Saharan --- ct.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/ct.yaml b/ct.yaml index 57d3885..6f1480d 100644 --- a/ct.yaml +++ b/ct.yaml @@ -1,4 +1,5 @@ remote: origin +target-branch: main chart-dirs: - charts helm-extra-args: --timeout 300s From 05d1e4a2aedb36ecaa6e10a8dc7beb977c2ff61f Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:49:47 -0800 Subject: [PATCH 09/24] Added maintainers section Signed-off-by: Abhimanyu Saharan --- charts/daemon/Chart.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/charts/daemon/Chart.yaml b/charts/daemon/Chart.yaml index 733ccfe..d9a921b 100644 --- a/charts/daemon/Chart.yaml +++ b/charts/daemon/Chart.yaml @@ -19,3 +19,7 @@ version: 0.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. appVersion: latest + +maintainers: + - name: abhi1693 + email: desk.abhimanyu@gmail.com \ No newline at end of file From ef6fc52041f337d6821374ce7416517516c16f50 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:51:08 -0800 Subject: [PATCH 10/24] Fixed new-line-at-end-of-file Signed-off-by: Abhimanyu Saharan --- charts/daemon/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/daemon/Chart.yaml b/charts/daemon/Chart.yaml index d9a921b..1ca363c 100644 --- a/charts/daemon/Chart.yaml +++ b/charts/daemon/Chart.yaml @@ -22,4 +22,4 @@ appVersion: latest maintainers: - name: abhi1693 - email: desk.abhimanyu@gmail.com \ No newline at end of file + email: desk.abhimanyu@gmail.com From f7b73e97faa6235a87040f86fed8a2e25fda3aa1 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:58:53 -0800 Subject: [PATCH 11/24] Added helm-charts-release.yml Signed-off-by: Abhimanyu Saharan --- .github/workflows/helm-charts-release.yml | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/helm-charts-release.yml diff --git a/.github/workflows/helm-charts-release.yml b/.github/workflows/helm-charts-release.yml new file mode 100644 index 0000000..ab4dcd6 --- /dev/null +++ b/.github/workflows/helm-charts-release.yml @@ -0,0 +1,30 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.0 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file From 40c789100bb3b6f6009e553e75feb911f0a363d1 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 09:59:21 -0800 Subject: [PATCH 12/24] Added name to the job step Signed-off-by: Abhimanyu Saharan --- .github/workflows/helm-charts-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/helm-charts-release.yml b/.github/workflows/helm-charts-release.yml index ab4dcd6..edd446f 100644 --- a/.github/workflows/helm-charts-release.yml +++ b/.github/workflows/helm-charts-release.yml @@ -7,6 +7,7 @@ on: jobs: release: + name: Release Charts runs-on: ubuntu-latest steps: - name: Checkout From 2d7f3fc72a2d2eb44e7592d7e331ba58388c65dd Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:09:49 -0800 Subject: [PATCH 13/24] Added pvc Signed-off-by: Abhimanyu Saharan --- .../templates/persistent-volume-claim.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 charts/daemon/templates/persistent-volume-claim.yaml diff --git a/charts/daemon/templates/persistent-volume-claim.yaml b/charts/daemon/templates/persistent-volume-claim.yaml new file mode 100644 index 0000000..8ac6103 --- /dev/null +++ b/charts/daemon/templates/persistent-volume-claim.yaml @@ -0,0 +1,23 @@ +{{- if and (.Values.persistence.enabled) }} +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: "{{ template "charts.fullname" . }}" + labels: + {{- include "charts.labels" . | nindent 4 }} + annotations: + helm.sh/resource-policy: "keep" +spec: + accessModes: + - {{ .Values.persistence.accessMode | quote }} + resources: + requests: + storage: {{ .Values.persistence.size | quote }} +{{- if .Values.persistence.storageClass }} +{{- if (eq "-" .Values.persistence.storageClass) }} + storageClassName: "" +{{- else }} + storageClassName: "{{ .Values.persistence.storageClass }}" +{{- end }} +{{- end }} +{{- end }} \ No newline at end of file From 9b073a273dc1611fda60c8e48d19e8fa227f771c Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:09:58 -0800 Subject: [PATCH 14/24] Added missing service name Signed-off-by: Abhimanyu Saharan --- charts/daemon/templates/statefulset.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/daemon/templates/statefulset.yaml b/charts/daemon/templates/statefulset.yaml index cf7a25b..c0bdf40 100644 --- a/charts/daemon/templates/statefulset.yaml +++ b/charts/daemon/templates/statefulset.yaml @@ -9,6 +9,7 @@ spec: selector: matchLabels: {{- include "charts.selectorLabels" . | nindent 6 }} + serviceName: "{{ include "charts.fullname" . }}" template: metadata: labels: From 787668fd72238942379599658010e905c770693d Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:15:11 -0800 Subject: [PATCH 15/24] Added icon Signed-off-by: Abhimanyu Saharan --- charts/daemon/Chart.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/daemon/Chart.yaml b/charts/daemon/Chart.yaml index 1ca363c..33b9084 100644 --- a/charts/daemon/Chart.yaml +++ b/charts/daemon/Chart.yaml @@ -23,3 +23,5 @@ appVersion: latest maintainers: - name: abhi1693 email: desk.abhimanyu@gmail.com + +icon: https://avatars0.githubusercontent.com/u/60273284 \ No newline at end of file From 86fc0b3b38bc5c03579b3b582e23f60f240262cf Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:16:26 -0800 Subject: [PATCH 16/24] Fixed new-line-at-end-of-file Signed-off-by: Abhimanyu Saharan --- charts/daemon/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/daemon/Chart.yaml b/charts/daemon/Chart.yaml index 33b9084..8b1b342 100644 --- a/charts/daemon/Chart.yaml +++ b/charts/daemon/Chart.yaml @@ -24,4 +24,4 @@ maintainers: - name: abhi1693 email: desk.abhimanyu@gmail.com -icon: https://avatars0.githubusercontent.com/u/60273284 \ No newline at end of file +icon: https://avatars0.githubusercontent.com/u/60273284 From 32b3e0130e8b8bc77b78279682f6dd4ab7c65e1c Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:34:16 -0800 Subject: [PATCH 17/24] Added env Signed-off-by: Abhimanyu Saharan --- charts/daemon/templates/statefulset.yaml | 7 +++++++ charts/daemon/values.yaml | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/charts/daemon/templates/statefulset.yaml b/charts/daemon/templates/statefulset.yaml index c0bdf40..11c9781 100644 --- a/charts/daemon/templates/statefulset.yaml +++ b/charts/daemon/templates/statefulset.yaml @@ -36,6 +36,13 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- if .Values.env }} + env: + {{- range .Values.env }} + - name: {{ .name }} + value: {{ .value }} + {{- end }} + {{- end }} ports: - name: http containerPort: 80 diff --git a/charts/daemon/values.yaml b/charts/daemon/values.yaml index 18c2bf9..b731644 100644 --- a/charts/daemon/values.yaml +++ b/charts/daemon/values.yaml @@ -10,6 +10,10 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +env: + - name: CI + value: 1 + serviceAccount: # Specifies whether a service account should be created create: true From 088d4b63b82bb9c9b107f87118a2ff5886151dcb Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:42:15 -0800 Subject: [PATCH 18/24] Fixed env Signed-off-by: Abhimanyu Saharan --- charts/daemon/templates/statefulset.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/daemon/templates/statefulset.yaml b/charts/daemon/templates/statefulset.yaml index 11c9781..d4cce63 100644 --- a/charts/daemon/templates/statefulset.yaml +++ b/charts/daemon/templates/statefulset.yaml @@ -38,9 +38,9 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} {{- if .Values.env }} env: - {{- range .Values.env }} - - name: {{ .name }} - value: {{ .value }} + {{- range $name, $value := .Values.env }} + - name: {{ $name }} + value: {{ $value | quote }} {{- end }} {{- end }} ports: From 049f4f606c981af18ee5bce2a07b25a6f3f1527a Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 10:48:02 -0800 Subject: [PATCH 19/24] Fixed env in values.yaml Signed-off-by: Abhimanyu Saharan --- charts/daemon/values.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/charts/daemon/values.yaml b/charts/daemon/values.yaml index b731644..70791ef 100644 --- a/charts/daemon/values.yaml +++ b/charts/daemon/values.yaml @@ -11,8 +11,7 @@ nameOverride: "" fullnameOverride: "" env: - - name: CI - value: 1 + CI: 1 serviceAccount: # Specifies whether a service account should be created From 74d14c9e0b934dbc148bb788a29f9122bd60262b Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 11:06:13 -0800 Subject: [PATCH 20/24] Added helm-docs support --- .pre-commit-config.yaml | 14 ++++++++++++++ .pre-commit-hooks.yaml | 8 ++++++++ git-hook/helm-docs | 15 +++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 .pre-commit-hooks.yaml create mode 100644 git-hook/helm-docs diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d888eb9 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: local + hooks: + - id: helm-docs + args: + # Make the tool search for charts only under the `charts` directory + - --chart-search-root=charts + + # The `./` makes it relative to the chart-search-root set above + - --template-files=./templates + + # Repeating the flag adds this to the list, now [./templates, README.md.gotmpl] + # A base filename makes it relative to each chart directory found + - --template-files=README.md.gotmpl \ No newline at end of file diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..d565e1d --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,8 @@ +- id: helm-docs + args: [] + description: Uses 'helm-docs' to create documentation from the Helm chart's 'values.yaml' file, and inserts the result into a corresponding 'README.md' file. + entry: git-hook/helm-docs + files: (README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$ + language: script + name: Helm Docs + require_serial: true \ No newline at end of file diff --git a/git-hook/helm-docs b/git-hook/helm-docs new file mode 100644 index 0000000..c48e9d9 --- /dev/null +++ b/git-hook/helm-docs @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +VERSION=1.4.0 + +if ! command -v helm-docs &>/dev/null; then + wget https://github.com/norwoodj/helm-docs/releases/download/v"${VERSION}"/helm-docs_"${VERSION}"_linux_amd64.deb + sudo dpkg -i helm-docs_"${VERSION}"_linux_amd64.deb + rm helm-docs_"${VERSION}"_linux_amd64.deb +fi + +if ! command -v pre-commit &>/dev/null; then + pip install pre-commit +fi \ No newline at end of file From 8d18011b6fa499f98d9055e708d4ff6ac35bdbc7 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 11:09:37 -0800 Subject: [PATCH 21/24] Added pre-commit --- .pre-commit-config.yaml | 6 ++++++ .pre-commit-hooks.yaml | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) delete mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d888eb9..7de501d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,12 @@ repos: - repo: local hooks: - id: helm-docs + name: Helm Docs + description: Uses 'helm-docs' to create documentation from the Helm chart's 'values.yaml' file, and inserts the result into a corresponding 'README.md' file. + entry: git-hook/helm-docs + files: (README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$ + language: script + require_serial: true args: # Make the tool search for charts only under the `charts` directory - --chart-search-root=charts diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index d565e1d..0000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,8 +0,0 @@ -- id: helm-docs - args: [] - description: Uses 'helm-docs' to create documentation from the Helm chart's 'values.yaml' file, and inserts the result into a corresponding 'README.md' file. - entry: git-hook/helm-docs - files: (README\.md\.gotmpl|(Chart|requirements|values)\.yaml)$ - language: script - name: Helm Docs - require_serial: true \ No newline at end of file From 2d1d9e62a6cc68c112a7adf52268e901b1f6091f Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 11:10:47 -0800 Subject: [PATCH 22/24] Fixed helm-docs --- git-hook/helm-docs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-hook/helm-docs b/git-hook/helm-docs index c48e9d9..28e21b3 100644 --- a/git-hook/helm-docs +++ b/git-hook/helm-docs @@ -12,4 +12,6 @@ fi if ! command -v pre-commit &>/dev/null; then pip install pre-commit -fi \ No newline at end of file +fi + +helm-docs "${@}" \ No newline at end of file From 95b50cfe07f939e3e8f5aa028d84ee8ecdb53c91 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 11:14:48 -0800 Subject: [PATCH 23/24] Fixed helm-docs --- .pre-commit-config.yaml | 9 +-------- git-hook/helm-docs | 0 2 files changed, 1 insertion(+), 8 deletions(-) mode change 100644 => 100755 git-hook/helm-docs diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7de501d..e0815a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,11 +10,4 @@ repos: require_serial: true args: # Make the tool search for charts only under the `charts` directory - - --chart-search-root=charts - - # The `./` makes it relative to the chart-search-root set above - - --template-files=./templates - - # Repeating the flag adds this to the list, now [./templates, README.md.gotmpl] - # A base filename makes it relative to each chart directory found - - --template-files=README.md.gotmpl \ No newline at end of file + - --chart-search-root=charts \ No newline at end of file diff --git a/git-hook/helm-docs b/git-hook/helm-docs old mode 100644 new mode 100755 From 0cc212a131e9633343f625d6da58b3af0f3d7c19 Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Mon, 21 Dec 2020 11:15:40 -0800 Subject: [PATCH 24/24] Updated README.md --- charts/daemon/README.md | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 charts/daemon/README.md diff --git a/charts/daemon/README.md b/charts/daemon/README.md new file mode 100644 index 0000000..a3dd0ef --- /dev/null +++ b/charts/daemon/README.md @@ -0,0 +1,45 @@ +# daemon + +![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) + +A Helm chart for Kryptos daemon + +## Maintainers + +| Name | Email | Url | +| ---- | ------ | --- | +| abhi1693 | desk.abhimanyu@gmail.com | | + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| env.CI | int | `1` | | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"kryptosteam/daemon"` | | +| imagePullSecrets | list | `[]` | | +| ingress.annotations | object | `{}` | | +| ingress.enabled | bool | `false` | | +| ingress.hosts[0].host | string | `"chart-example.local"` | | +| ingress.hosts[0].paths | list | `[]` | | +| ingress.tls | list | `[]` | | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| persistence.accessMode | string | `"ReadWriteOnce"` | | +| persistence.enabled | bool | `false` | | +| persistence.mountPath | string | `"/opt"` | | +| persistence.size | string | `"50Gi"` | | +| podSecurityContext | object | `{}` | | +| resources | object | `{}` | | +| securityContext | object | `{}` | | +| service.port | int | `80` | | +| service.type | string | `"ClusterIP"` | | +| serviceAccount.annotations | object | `{}` | | +| serviceAccount.create | bool | `true` | | +| serviceAccount.name | string | `nil` | | +| tolerations | list | `[]` | | + +---------------------------------------------- +Autogenerated from chart metadata using [helm-docs v1.4.0](https://github.com/norwoodj/helm-docs/releases/v1.4.0)