Skip to content

Commit

Permalink
Merge pull request #6 from factory24/tasks/update-deployment-template
Browse files Browse the repository at this point in the history
Updated deployment template
  • Loading branch information
samtoya authored Aug 20, 2024
2 parents 5ac94d1 + ad67a43 commit 8fb43ea
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lint:
helm lint flow

template:
helm template flow-helm-chart flow
helm template flow-helm-chart flow --values flow/values.yaml

bundle:
make lint
Expand Down
Binary file added flow-helm-chart-0.1.12.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion flow/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: 0.1.11
version: 0.1.12

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
15 changes: 15 additions & 0 deletions flow/templates/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ spec:
- name: {{ .Values.deployment.name }}
image: {{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }}
{{ if .Values.deployment.args }}
args:
{{- range .Values.deployment.args }}
- {{ . | quote }}
{{- end }}
{{ end }}
{{ if .Values.resources.enabled }}
ports:
{{- range .Values.deployment.ports }}
- name: {{ .name }}
containerPort: {{ .containerPort }}
protocol: {{ .protocol }}
{{- end }}
{{- end }}

{{ if .Values.resources.enabled }}
resources:
limits:
Expand Down
6 changes: 6 additions & 0 deletions flow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ deployment:
namespace: default
replicaCount: 1
restartPolicy: Always
args: []
image:
repository: athari/billing-service
tag: latest
pullPolicy: Never
ports:
- name: http
containerPort: 8080
protocol: TCP


service:
name: billing-service
Expand Down
34 changes: 22 additions & 12 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ entries:
flow-helm-chart:
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.507918Z"
created: "2024-08-20T12:52:05.202095Z"
description: A Helm chart for Kubernetes
digest: 329fe95dfcd3871f07a6708084b3f5d9a545d87f443fc31552bec8bd192bd553
name: flow-helm-chart
type: application
urls:
- flow-helm-chart-0.1.12.tgz
version: 0.1.12
- apiVersion: v2
appVersion: 1.16.0
created: "2024-08-20T12:52:05.201847Z"
description: A Helm chart for Kubernetes
digest: 5d8b818672fd6d4d8a3edbbfd6934e777bddf996023157eb2ca7ec5975bc2256
name: flow-helm-chart
Expand All @@ -13,7 +23,7 @@ entries:
version: 0.1.11
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.507684Z"
created: "2024-08-20T12:52:05.201476Z"
description: A Helm chart for Kubernetes
digest: 58887e3a615c3f965fb7de502c398cfbd4f50b64726641b141ed494c393dad61
name: flow-helm-chart
Expand All @@ -23,7 +33,7 @@ entries:
version: 0.1.10
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.512181Z"
created: "2024-08-20T12:52:05.205414Z"
description: A Helm chart for Kubernetes
digest: db761f53e78fa7934eb33fef7d45ff805eb455044a6806f0289cfe9a97a19ccd
name: flow-helm-chart
Expand All @@ -33,7 +43,7 @@ entries:
version: 0.1.9
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.511769Z"
created: "2024-08-20T12:52:05.20507Z"
description: A Helm chart for Kubernetes
digest: 28aa7c1af2a486bd3b5d0e945eddaed85e79998f40c697db636dbd2ebfea5b57
name: flow-helm-chart
Expand All @@ -43,7 +53,7 @@ entries:
version: 0.1.8
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.511316Z"
created: "2024-08-20T12:52:05.204588Z"
description: A Helm chart for Kubernetes
digest: 2f40b648b3abfa2709df5ee292ed7e87946813f1ec1ac0e4e60ed48883555a6e
name: flow-helm-chart
Expand All @@ -53,7 +63,7 @@ entries:
version: 0.1.7
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.510877Z"
created: "2024-08-20T12:52:05.204106Z"
description: A Helm chart for Kubernetes
digest: e4237a98f59756faf926c9fdd699545f33f2cca7e78c223fc9dca9847fdc8806
name: flow-helm-chart
Expand All @@ -63,7 +73,7 @@ entries:
version: 0.1.6
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.510502Z"
created: "2024-08-20T12:52:05.203766Z"
description: A Helm chart for Kubernetes
digest: aebced81782c25722134fbd79c67032a271553961e28900b58349a929140645b
name: flow-helm-chart
Expand All @@ -73,7 +83,7 @@ entries:
version: 0.1.5
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.509998Z"
created: "2024-08-20T12:52:05.203322Z"
description: A Helm chart for Kubernetes
digest: 9bcb41f21780c117fc5dddd630040953fd50d8598f8476f1da6335ef27641f0c
name: flow-helm-chart
Expand All @@ -83,7 +93,7 @@ entries:
version: 0.1.4
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.509502Z"
created: "2024-08-20T12:52:05.203019Z"
description: A Helm chart for Kubernetes
digest: 75d9d6f6fba3bbe5c42260ef86c81b26d69f0134fc3511e4eedb9743f1edaf9a
name: flow-helm-chart
Expand All @@ -93,7 +103,7 @@ entries:
version: 0.1.3
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.508414Z"
created: "2024-08-20T12:52:05.20257Z"
description: A Helm chart for Kubernetes
digest: fea51eefb8b730252916fac6373a35d61d44ba7c9cc8a527ac7b7cd4a6fb7571
name: flow-helm-chart
Expand All @@ -103,12 +113,12 @@ entries:
version: 0.1.2
- apiVersion: v2
appVersion: 1.16.0
created: "2024-07-10T11:24:29.507033Z"
created: "2024-08-20T12:52:05.201045Z"
description: A Helm chart for Kubernetes
digest: 97190966ce1069b0188a7ad825ef070b3274d37d25841e1b9ee12415edf0e268
name: flow-helm-chart
type: application
urls:
- flow-helm-chart-0.1.1.tgz
version: 0.1.1
generated: "2024-07-10T11:24:29.506387Z"
generated: "2024-08-20T12:52:05.200498Z"

0 comments on commit 8fb43ea

Please sign in to comment.