Skip to content

Commit

Permalink
add nodeport value
Browse files Browse the repository at this point in the history
  • Loading branch information
becitsthere authored and nnewc committed Feb 9, 2024
2 parents 266cad5 + a9ee888 commit 6779ecf
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/core/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: core
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector's core services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion charts/core/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $pre530 := false -}}
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+" .Values.tag }}
{{- $pre530 = (semverCompare "<5.2.10" .Values.tag) -}}
{{- $pre530 = (semverCompare "<5.2.10-0" .Values.tag) -}}
{{- end }}
{{- if .Values.controller.enabled -}}
{{- if (semverCompare ">=1.9-0" (substr 1 -1 .Capabilities.KubeVersion.GitVersion)) }}
Expand Down
6 changes: 6 additions & 0 deletions charts/core/templates/controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
- port: 11443
name: fed
protocol: TCP
{{- if .Values.controller.federation.mastersvc.nodePort }}
nodePort: {{ .Values.controller.federation.mastersvc.nodePort }}
{{- end }}
selector:
app: neuvector-controller-pod
{{ end -}}
Expand Down Expand Up @@ -109,6 +112,9 @@ spec:
- port: 10443
name: fed
protocol: TCP
{{- if .Values.controller.federation.managedsvc.nodePort }}
nodePort: {{ .Values.controller.federation.managedsvc.nodePort }}
{{- end }}
selector:
app: neuvector-controller-pod
{{ end -}}
Expand Down
2 changes: 1 addition & 1 deletion charts/core/templates/enforcer-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $pre530 := false -}}
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+" .Values.tag }}
{{- $pre530 = (semverCompare "<5.2.10" .Values.tag) -}}
{{- $pre530 = (semverCompare "<5.2.10-0" .Values.tag) -}}
{{- end }}
{{- $runtimePath := "" -}}
{{- if .Values.runtimePath }}
Expand Down
2 changes: 2 additions & 0 deletions charts/core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ controller:
mastersvc:
type:
clusterIP:
nodePort: # Must be a valid NodePort: 30000-32767
externalTrafficPolicy:
internalTrafficPolicy:
# Federation Master Ingress
Expand Down Expand Up @@ -191,6 +192,7 @@ controller:
managedsvc:
type:
clusterIP:
nodePort: # Must be a valid NodePort: 30000-32767
externalTrafficPolicy:
internalTrafficPolicy:
# Federation Managed Ingress
Expand Down
2 changes: 1 addition & 1 deletion charts/crd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: crd
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector's CRD services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion charts/monitor/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: monitor
apiVersion: v1
version: 2.7.0
version: 2.7.1
appVersion: 5.2.4-s1
description: Helm chart for NeuVector monitor services
home: https://neuvector.com
Expand Down
2 changes: 1 addition & 1 deletion test/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestControllerDeploymentPre53(t *testing.T) {

options := &helm.Options{
SetValues: map[string]string{
"tag": "5.2.4",
"tag": "5.2.4-s1",
},
}

Expand Down

0 comments on commit 6779ecf

Please sign in to comment.