File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator/utils
operator/src/main/java/oracle/kubernetes/operator Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ private void generateInputYaml() throws Exception {
230
230
// write certificates
231
231
ExecCommand .exec (
232
232
BaseTest .getProjectRoot ()
233
- + "/kubernetes/samples/scripts/generate-external-rest-identity.sh "
233
+ + "/kubernetes/samples/scripts/rest/ generate-external-rest-identity.sh "
234
234
+ "DNS:"
235
235
+ TestUtils .getHostName ()
236
236
+ " >> "
Original file line number Diff line number Diff line change @@ -735,7 +735,8 @@ public static void createRBACPoliciesForWLDFScaling() throws Exception {
735
735
public static void deleteWeblogicDomainResources (String domainUid ) throws Exception {
736
736
StringBuilder cmd =
737
737
new StringBuilder (BaseTest .getProjectRoot ())
738
- .append ("/kubernetes/samples/scripts/delete-weblogic-domain-resources.sh " )
738
+ .append (
739
+ "/kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh " )
739
740
.append ("-d " )
740
741
.append (domainUid );
741
742
logger .info ("Running " + cmd );
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ protected V1ServiceSpec createServiceSpec() {
117
117
118
118
protected List <V1ServicePort > createServicePorts () {
119
119
List <V1ServicePort > ports = new ArrayList <>();
120
- if (scan != null ) {
120
+ if (scan != null && scan . getNetworkAccessPoints () != null ) {
121
121
for (NetworkAccessPoint nap : scan .getNetworkAccessPoints ()) {
122
122
V1ServicePort port =
123
123
new V1ServicePort ()
@@ -869,7 +869,7 @@ private int searchAdminChannelPort(String channel) {
869
869
return serverConfig .getSslListenPort ();
870
870
} /*else if("adminSecure".equals(channel) && serverConfig.isAdminPortEnabled()){
871
871
return serverConfig.getAdminPort();
872
- }*/ else {
872
+ }*/ else if ( serverConfig . getNetworkAccessPoints () != null ) {
873
873
for (NetworkAccessPoint nap : serverConfig .getNetworkAccessPoints ()) {
874
874
if (nap .getName ().equals (channel )) {
875
875
return nap .getListenPort ();
Original file line number Diff line number Diff line change @@ -67,11 +67,13 @@ public static Collection<NetworkAccessPoint> adminChannelsToCreate(
67
67
// Pick out externalized channels from the server channels list
68
68
for (String incomingChannel : dom .getExportedNetworkAccessPointNames ()) {
69
69
boolean missingChannel = true ;
70
- for (NetworkAccessPoint nap : naps ) {
71
- if (nap .getName ().equalsIgnoreCase (incomingChannel )) {
72
- missingChannel = false ;
73
- channels .add (nap );
74
- break ;
70
+ if (naps != null ) {
71
+ for (NetworkAccessPoint nap : naps ) {
72
+ if (nap .getName ().equalsIgnoreCase (incomingChannel )) {
73
+ missingChannel = false ;
74
+ channels .add (nap );
75
+ break ;
76
+ }
75
77
}
76
78
}
77
79
if (missingChannel ) {
You can’t perform that action at this time.
0 commit comments