Skip to content

Commit

Permalink
[castai-pod-node-lifecycle] Fix host port - remove HostPort when host…
Browse files Browse the repository at this point in the history
…Network is disabled (#247)

* only set host port if hostNetwork is true

* only set host port if hostNetwork is true

* bump chart version

---------

Co-authored-by: Phil Andrews <phil@Phils-MacBook-Pro.local>
  • Loading branch information
CastAIPhil and Phil Andrews authored Mar 31, 2023
1 parent a8b8ff8 commit c8382b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/castai-pod-node-lifecycle/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: castai-pod-node-lifecycle
description: CAST AI spot-only K8s webhook to control workload placement during cluster migration and spot-only.
type: application
version: 0.27.0
version: 0.28.0
appVersion: "v0.21.0"
2 changes: 1 addition & 1 deletion charts/castai-pod-node-lifecycle/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
ports:
- containerPort: {{ .Values.webhook.port }}
{{- if .Values.hostNetwork }}
{{- if .Values.hostNetwork.enabled }}
hostPort: {{ .Values.webhook.port }}
{{- end}}
name: https
Expand Down

0 comments on commit c8382b9

Please sign in to comment.