Skip to content

Commit

Permalink
Merge pull request kubernetes#3575 from michelzanini/master
Browse files Browse the repository at this point in the history
[Helm Chart] Add support to configure custom service labels
  • Loading branch information
k8s-ci-robot authored Oct 3, 2020
2 parents 59ba79b + 2ad0f02 commit 5a7e7cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cluster-autoscaler-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ name: cluster-autoscaler-chart
sources:
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
type: application
version: 1.0.3
version: 1.0.4
1 change: 1 addition & 0 deletions charts/cluster-autoscaler-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ Though enough for the majority of installations, the default PodSecurityPolicy _
| resources | object | `{}` | Pod resource requests and limits. |
| securityContext | object | `{}` | [Security context for pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| service.annotations | object | `{}` | Annotations to add to service |
| service.labels | object | `{}` | Labels to add to service |
| service.externalIPs | list | `[]` | List of IP addresses at which the service is available. Ref: https://kubernetes.io/docs/user-guide/services/#external-ips. |
| service.loadBalancerIP | string | `""` | IP address to assign to load balancer (if supported). |
| service.loadBalancerSourceRanges | list | `[]` | List of IP CIDRs allowed access to load balancer (if supported). |
Expand Down
3 changes: 3 additions & 0 deletions charts/cluster-autoscaler-chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
{{- end }}
labels:
{{ include "cluster-autoscaler.labels" . | indent 4 }}
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
name: {{ template "cluster-autoscaler.fullname" . }}
spec:
{{- if .Values.service.clusterIP }}
Expand Down
2 changes: 2 additions & 0 deletions charts/cluster-autoscaler-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ securityContext: {}
service:
# service.annotations -- Annotations to add to service
annotations: {}
# service.labels -- Labels to add to service
labels: {}
# service.externalIPs -- List of IP addresses at which the service is available. Ref: https://kubernetes.io/docs/user-guide/services/#external-ips.
externalIPs: []

Expand Down

0 comments on commit 5a7e7cf

Please sign in to comment.