Skip to content

Commit

Permalink
Merge pull request #112 from codecademy-engineering/lindsay-DEVOPS-7273
Browse files Browse the repository at this point in the history
optional deployment/pods
  • Loading branch information
lindsaylandry authored Feb 13, 2024
2 parents 3db1f74 + 84a6679 commit 45a3c6d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: service
description: A generic k8s service chart
type: application
version: 1.8.13
version: 1.8.14
maintainers:
- email: [email protected]
name: devops
5 changes: 5 additions & 0 deletions charts/service/ci/nothing-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
deployment:
enabled: false

service:
enabled: false
2 changes: 2 additions & 0 deletions charts/service/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.deployment.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -185,3 +186,4 @@ spec:
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions charts/service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

deployment:
enabled: true

podAnnotations: {}

podSecurityContext: {}
Expand Down
2 changes: 1 addition & 1 deletion ci/pv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: "/tmp/"
path: "/tmp/"

0 comments on commit 45a3c6d

Please sign in to comment.