-
Notifications
You must be signed in to change notification settings - Fork 218
Disable REST endpoint by default #3958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -365,8 +365,7 @@ void testCreateDeleteCreateOperatorButNotDomain() { | |||
|
|||
//check if the operator can still manage domain1 | |||
int replicaCountDomain1 = 2; | |||
assertTrue(scaleClusterWithRestApi(domain1Uid, clusterName,replicaCountDomain1 - 1, | |||
externalRestHttpsPort,opNamespace, opServiceAccount), | |||
assertTrue(scaleCluster(domain1Uid + "-" + clusterName, domain1Namespace, replicaCountDomain1 - 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the REST api is not used to scale cluster this code can be removed.
createRouteForOKD("external-weblogic-operator-svc", opNamespace); setTlsTerminationForRoute("external-weblogic-operator-svc", opNamespace); int externalRestHttpsPort = getServiceNodePort(opNamespace, "external-weblogic-operator-svc"); assertNotEquals(-1, externalRestHttpsPort, "Could not get the Operator external service node port"); logger.info("externalRestHttpsPort {0}", externalRestHttpsPort);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment
Kudos, SonarCloud Quality Gate passed! |
* Disable REST endpoint by default
* Disable REST endpoint by default
Creating a draft PR so that I can run integration tests. Presently, I expect this to cause failures in existing integration tests.
Disable the operator REST endpoint by default. It can be enabled with a Helm variable.