Skip to content

Commit

Permalink
Fix test for useNonPriviledgedPorts (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeberhard authored Jan 29, 2021
1 parent 725dd54 commit 6eaa44d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
{{- if or (not (.Values.persistentVolumeClaimName)) (.Values.virtualHostName) }}
env:
{{- end }}
{{- if ( .Values.useNonPriviledgedPorts ) and eq .Values.useNonPriviledgedPorts "true"}}
{{- if .Values.useNonPriviledgedPorts }}
- name: NonPriviledgedPorts
value: "true"
{{- end }}
Expand All @@ -82,7 +82,7 @@ spec:
{{- end }}
readinessProbe:
tcpSocket:
{{- if ( .Values.useNonPriviledgedPorts ) and eq .Values.useNonPriviledgedPorts "true"}}
{{- if .Values.useNonPriviledgedPorts }}
port: 8080
{{- else }}
port: 80
Expand All @@ -94,7 +94,7 @@ spec:
timeoutSeconds: 2
livenessProbe:
tcpSocket:
{{- if ( .Values.useNonPriviledgedPorts ) and eq .Values.useNonPriviledgedPorts "true"}}
{{- if .Values.useNonPriviledgedPorts }}
port: 8080
{{- else }}
port: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
selector:
app: {{ template "apache.fullname" . }}
ports:
{{- if ( .Values.useNonPriviledgedPorts ) and eq .Values.useNonPriviledgedPorts "true"}}
{{- if .Values.useNonPriviledgedPorts }}
- port: 8080
{{- else}}
- port: 80
Expand Down
3 changes: 2 additions & 1 deletion kubernetes/samples/charts/apache-webtier/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ customCert:
customKey:

# Unique ID identifying a domain.
# This ID must not contain an underscope ("_"), and must be lowercase and unique across all domains in a Kubernetes cluster.
# This ID must not contain an underscore ("_"), and must be lowercase and unique across all domains in a Kubernetes cluster.
domainUID: "domain1"

# Cluster name
Expand All @@ -74,5 +74,6 @@ managedServerPort: 8001
# where 'myhost' is the IP of the machine that runs the Apache web tier, and
# 'myport' is the port that the Apache web tier is publicly exposed to.
location: "/weblogic"

# Use non privileged port 8080 to listen. If set to false, default privileged port 80 will be used.
useNonPriviledgedPorts: false

0 comments on commit 6eaa44d

Please sign in to comment.