Skip to content

Commit

Permalink
allow service to be disabled (#59)
Browse files Browse the repository at this point in the history
* allow service to be disabled

* bump chart

* ci: update actions
  • Loading branch information
domdepasquale authored Nov 20, 2023
1 parent 5f19434 commit 9f9e1f6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/application-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.local.yaml
local.yaml
2 changes: 1 addition & 1 deletion charts/application-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions charts/application-core/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -18,3 +19,4 @@ spec:
name: http
selector:
{{- include "application-core.selectorLabels" . | nindent 4 }}
{{- end -}}
1 change: 1 addition & 0 deletions charts/application-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ securityContext:
# runAsUser: 1000

service:
enabled: true
type: ClusterIP
port: 8000
annotations: {}
Expand Down

0 comments on commit 9f9e1f6

Please sign in to comment.