style: normalize indentations for list items

This commit is contained in:
Chi-En Wu
2020-04-27 10:50:33 +08:00
parent a0bfeb4cf6
commit a6fab55d7d
4 changed files with 31 additions and 31 deletions

View File

@ -16,20 +16,20 @@ spec:
maxReplicas: {{ $autoscaling.maxReplicas }} maxReplicas: {{ $autoscaling.maxReplicas }}
metrics: metrics:
{{- with $autoscaling.cpuUtilizationPercentage }} {{- with $autoscaling.cpuUtilizationPercentage }}
- type: Resource - type: Resource
resource: resource:
name: cpu name: cpu
target: target:
type: Utilization type: Utilization
averageUtilization: {{ . }} averageUtilization: {{ . }}
{{- end }} {{- end }}
{{- with $autoscaling.memoryUtilizationPercentage }} {{- with $autoscaling.memoryUtilizationPercentage }}
- type: Resource - type: Resource
resource: resource:
name: memory name: memory
target: target:
type: Utilization type: Utilization
averageUtilization: {{ . }} averageUtilization: {{ . }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -26,24 +26,24 @@ spec:
{{- if $ingress.tls }} {{- if $ingress.tls }}
tls: tls:
{{- range $ingress.tls }} {{- range $ingress.tls }}
- hosts: - hosts:
{{- range .hosts }} {{- range .hosts }}
- {{ . | quote }} - {{ . | quote }}
{{- end }} {{- end }}
secretName: {{ .secretName }} secretName: {{ .secretName }}
{{- end }} {{- end }}
{{- end }} {{- end }}
rules: rules:
{{- range $ingress.hosts }} {{- range $ingress.hosts }}
- host: {{ .host | quote }} - host: {{ .host | quote }}
http: http:
paths: paths:
{{- range .paths }} {{- range .paths }}
- path: {{ . }} - path: {{ . }}
backend: backend:
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: {{ $svcPort }} servicePort: {{ $svcPort }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -20,7 +20,7 @@ spec:
securityContext: securityContext:
{{- toYaml $pod.podSecurityContext | nindent 4 }} {{- toYaml $pod.podSecurityContext | nindent 4 }}
containers: containers:
- {{- include "common.container" (list $top $pod) | nindent 6 }} - {{- include "common.container" (list $top $pod) | nindent 4 }}
{{- with $pod.nodeSelector }} {{- with $pod.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}

View File

@ -10,10 +10,10 @@ metadata:
spec: spec:
type: {{ $service.type }} type: {{ $service.type }}
ports: ports:
- port: {{ $service.port }} - port: {{ $service.port }}
targetPort: http targetPort: http
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
{{- include "common.selectorLabels" $top | nindent 4 }} {{- include "common.selectorLabels" $top | nindent 4 }}
{{- end }} {{- end }}