style: normalize indentations for list items
This commit is contained in:
@ -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 }}
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
|
||||||
|
@ -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 }}
|
||||||
|
@ -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 }}
|
||||||
|
Reference in New Issue
Block a user