Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kickthemooon committed Aug 6, 2023
1 parent e2a7a3c commit 6f48065
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/helm-interface/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.4
version: 0.1.5

# 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
8 changes: 6 additions & 2 deletions charts/helm-interface/templates/workloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ spec:
{{- /* START SERVICE */}}
{{- range .deployment.pod.containers }}
{{- range .ports }}
{{- if and (hasKey . "service") }}
{{- if .service.enabled }}
{{- $portName := default $defaultPortName .name }}
{{- if and (hasKey . "service") .service.enabled }}
{{- $computedNameService := ternary $computedDeploymentName (printf "%s-%s" $computedDeploymentName .service.nameSuffix) (empty .service.nameSuffix) }}
---
apiVersion: {{ default "v1" .service.apiVersion }}
Expand All @@ -199,14 +200,16 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- /* END SERVICES */}}

{{- /* START INGRESS */}}
{{- range .deployment.pod.containers }}
{{- range .ports }}
{{- if (hasKey . "ingress") }}
{{- if .ingress.enabled }}
{{- $portName := default $defaultPortName .name }}
{{- $portNumber := default .containerPort .service.port }}
{{- if and (hasKey . "ingress") .ingress.enabled }}
{{- $computedNameIngress := ternary $computedDeploymentName (printf "%s-%s" $computedDeploymentName .ingress.nameSuffix) (empty .ingress.nameSuffix) }}
{{- $computedNameService := ternary $computedDeploymentName (printf "%s-%s" $computedDeploymentName .service.nameSuffix) (empty .service.nameSuffix) }}
---
Expand Down Expand Up @@ -253,6 +256,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- /* END INGRESS */}}

{{- /* START HPA */}}
Expand Down
5 changes: 3 additions & 2 deletions examples/values-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ defaults:
# Deployments list including deployment, hpa,
# service and ingress
deployments:
- name: nginx
nginx:
name: nginx
enabled: true
deployment:
enabled: true
Expand Down Expand Up @@ -228,4 +229,4 @@ daemonsets:
- name: nginx
image:
registry: nginx
tag: 1.14.2
tag: 1.14.2
3 changes: 2 additions & 1 deletion examples/values-simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defaults:
tag: latest

workloads:
- name: nginx
nginx:
name: nginx
enabled: true
deployment:
enabled: true
Expand Down

0 comments on commit 6f48065

Please sign in to comment.