Skip to content

Commit

Permalink
options svc selector
Browse files Browse the repository at this point in the history
  • Loading branch information
juri committed Mar 8, 2024
1 parent 25938a8 commit 8fabcde
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: app
description: A Helm chart for Kubernetes Deployment
type: application

version: 0.13.3
version: 0.13.4

keywords:
- deployment
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-applications/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: argo-applications
description: A Helm chart for Kubernetes argo applications
type: application

version: 0.13.3
version: 0.13.4

keywords:
- argocd
Expand Down
2 changes: 1 addition & 1 deletion charts/base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: base
description: A Helm chart for Kubernetes with helm named templates
type: library

version: 0.13.3
version: 0.13.4

keywords:
- deployment
Expand Down
7 changes: 7 additions & 0 deletions charts/base/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,15 @@ spec:
name: {{ $a.name | default (printf "http-%s" (toString $i)) }}
{{- end }}
{{- end }}
{{- with $serviceValues.selector }}
selector:
{{- if $serviceValues.selector }}
{{- with $serviceValues.selector }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- else }}
{{- include "base.selectorLabels" $root | trim | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/cronjob/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: cronjob
description: A Helm chart for Kubernetes cronjob
type: application

version: 0.13.3
version: 0.13.4

keywords:
- cronjob
Expand Down
2 changes: 1 addition & 1 deletion charts/default-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: default-base
description: A Helm chart for Kubernetes - default-base for namespaces

version: 0.13.3
version: 0.13.4

keywords:
- BackendConfig
Expand Down
2 changes: 1 addition & 1 deletion charts/ingress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: ingress
description: A Helm chart for Kubernetes ingress
type: application

version: 0.13.3
version: 0.13.4

keywords:
- ingress
Expand Down
2 changes: 1 addition & 1 deletion charts/job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: job
description: A Helm chart for Kubernetes job
type: application

version: 0.13.3
version: 0.13.4

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-rules/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: prometheus-rules
description: A Helm chart for Prometheus Rules
type: application

version: 0.13.3
version: 0.13.4

keywords:
- job
Expand Down
2 changes: 1 addition & 1 deletion charts/rbac/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: rbac
description: A Helm chart for Kubernetes rbac
type: application

version: 0.13.3
version: 0.13.4

keywords:
- rbac
Expand Down
2 changes: 1 addition & 1 deletion charts/service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: service
description: A Helm chart for Kubernetes service
type: application

version: 0.13.3
version: 0.13.4

keywords:
- service
Expand Down

0 comments on commit 8fabcde

Please sign in to comment.