Skip to content

Commit 2279719

Browse files
authored
Describe service ports with appProtocol (#2957)
* Describe service ports with appProtocol
1 parent e09c591 commit 2279719

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-external-svc.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ spec:
1919
{{- if .externalRestEnabled }}
2020
- name: "rest"
2121
port: 8081
22+
appProtocol: https
2223
nodePort: {{ .externalRestHttpsPort }}
2324
{{- end }}
2425
{{- if .remoteDebugNodePortEnabled }}
2526
- name: "debug"
2627
port: {{ .internalDebugHttpPort }}
28+
appProtocol: http
2729
nodePort: {{ .externalDebugHttpPort }}
2830
{{- end }}
2931
{{- end }}

kubernetes/charts/weblogic-operator/templates/_operator-internal-svc.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
ports:
1818
- port: 8082
1919
name: "rest"
20+
appProtocol: https
2021
---
2122
apiVersion: "v1"
2223
kind: "Service"
@@ -32,4 +33,5 @@ spec:
3233
ports:
3334
- port: 8084
3435
name: "restwebhook"
36+
appProtocol: https
3537
{{- end }}

kubernetes/src/test/java/oracle/kubernetes/operator/create/CreateOperatorGeneratedFilesTestBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,15 @@ V1Service getExpectedExternalWeblogicOperatorService(
325325
newServicePort()
326326
.name("rest")
327327
.port(8081)
328+
.appProtocol("https")
328329
.nodePort(Integer.parseInt(getInputs().getExternalRestHttpsPort())));
329330
}
330331
if (debuggingEnabled) {
331332
spec.addPortsItem(
332333
newServicePort()
333334
.name("debug")
334335
.port(Integer.parseInt(getInputs().getInternalDebugHttpPort()))
336+
.appProtocol("http")
335337
.nodePort(Integer.parseInt(getInputs().getExternalDebugHttpPort())));
336338
}
337339
return newService()
@@ -365,7 +367,7 @@ private V1Service getExpectedInternalWeblogicOperatorService() {
365367
newServiceSpec()
366368
.type(V1ServiceSpec.TypeEnum.CLUSTERIP)
367369
.putSelectorItem(APP_LABEL, "weblogic-operator")
368-
.addPortsItem(newServicePort().name("rest").port(8082)));
370+
.addPortsItem(newServicePort().name("rest").appProtocol("https").port(8082)));
369371
}
370372

371373
@Test

0 commit comments

Comments
 (0)