Skip to content

Commit

Permalink
set service ports appProtocol
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Nov 18, 2024
1 parent 44b1a55 commit 4230dd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/cryostat/templates/cryostat_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ spec:
targetPort: 4180
protocol: TCP
name: http
appProtocol: http
{{- if (.Values.authentication.openshift).enabled }}
- port: 443
targetPort: 8443
protocol: TCP
name: https
appProtocol: https
{{- end }}
selector:
{{- include "cryostat.selectorLabels" $ | nindent 4 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/cryostat/tests/cryostat_service_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ tests:
- equal:
path: spec.ports[0].name
value: http
- equal:
path: spec.ports[0].appProtocol
value: http
- equal:
path: metadata.labels
value:
Expand Down Expand Up @@ -82,6 +85,9 @@ tests:
- equal:
path: spec.ports[1].name
value: https
- equal:
path: spec.ports[1].appProtocol
value: https
- equal:
path: spec.selector
value:
Expand Down

0 comments on commit 4230dd7

Please sign in to comment.