Skip to content

Commit

Permalink
fix tfjob hostNetwork, remove ps constraint (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhouX authored Jan 27, 2021
1 parent c6f5800 commit 386e37b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions charts/tfjob/templates/tfjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,12 @@ spec:
- worker
{{- end }}
{{- end }}
{{- if .Values.ps }}
{{- if .Values.useHostNetwork }}
{{- if not .Values.useENI }}
hostNetwork: {{ .Values.useHostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.useHostPID }}
hostPID: {{ .Values.useHostPID }}
{{- end }}
Expand Down Expand Up @@ -718,14 +716,12 @@ spec:
- worker
{{- end }}
{{- end }}
{{- if .Values.ps }}
{{- if .Values.useHostNetwork }}
{{- if not .Values.useENI }}
hostNetwork: {{ .Values.useHostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.useHostPID }}
hostPID: {{ .Values.useHostPID }}
{{- end }}
Expand Down Expand Up @@ -999,14 +995,12 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.ps }}
{{- if .Values.useHostNetwork }}
{{- if not .Values.useENI }}
hostNetwork: {{ .Values.useHostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.useHostPID }}
hostPID: {{ .Values.useHostPID }}
{{- end }}
Expand Down

0 comments on commit 386e37b

Please sign in to comment.