From 9f9e1f69fa6978fb33a3a554ea9e6f1ac5e2b035 Mon Sep 17 00:00:00 2001 From: Dominic DePasquale <7384087+domdepasquale@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:13:43 -0500 Subject: [PATCH] allow service to be disabled (#59) * allow service to be disabled * bump chart * ci: update actions --- .github/workflows/lint-test.yaml | 4 ++-- charts/application-core/.gitignore | 2 ++ charts/application-core/Chart.yaml | 2 +- charts/application-core/templates/service.yaml | 2 ++ charts/application-core/values.yaml | 1 + 5 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 charts/application-core/.gitignore diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 4d403f6..5886fd5 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -14,14 +14,14 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v1 with: - version: v3.8.1 + version: v3.13.2 - uses: actions/setup-python@v2 with: python-version: 3.7 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.4.0 + uses: helm/chart-testing-action@v2 - name: Run chart-testing (list-changed) id: list-changed diff --git a/charts/application-core/.gitignore b/charts/application-core/.gitignore new file mode 100644 index 0000000..df1609c --- /dev/null +++ b/charts/application-core/.gitignore @@ -0,0 +1,2 @@ +*.local.yaml +local.yaml diff --git a/charts/application-core/Chart.yaml b/charts/application-core/Chart.yaml index 1d9306d..b7c7c25 100644 --- a/charts/application-core/Chart.yaml +++ b/charts/application-core/Chart.yaml @@ -15,7 +15,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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.6.0 +version: 1.7.0 maintainers: - name: Dominic DePasquale diff --git a/charts/application-core/templates/service.yaml b/charts/application-core/templates/service.yaml index 2e7c3ae..ba76287 100644 --- a/charts/application-core/templates/service.yaml +++ b/charts/application-core/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if .Values.service.enabled -}} apiVersion: v1 kind: Service metadata: @@ -18,3 +19,4 @@ spec: name: http selector: {{- include "application-core.selectorLabels" . | nindent 4 }} +{{- end -}} \ No newline at end of file diff --git a/charts/application-core/values.yaml b/charts/application-core/values.yaml index fc21082..a208960 100644 --- a/charts/application-core/values.yaml +++ b/charts/application-core/values.yaml @@ -56,6 +56,7 @@ securityContext: # runAsUser: 1000 service: + enabled: true type: ClusterIP port: 8000 annotations: {}