Skip to content

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

Merged
merged 13 commits into from
Feb 16, 2023
Merged

Disable REST endpoint by default #3958

merged 13 commits into from
Feb 16, 2023

Conversation

rjeberhard
Copy link
Member

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.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 10, 2023
@@ -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),
Copy link
Member

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);

Copy link
Member

@sankarpn sankarpn left a 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

@rjeberhard rjeberhard marked this pull request as ready for review February 16, 2023 10:43
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

85.7% 85.7% Coverage
0.0% 0.0% Duplication

@rjeberhard rjeberhard merged commit d56285e into main Feb 16, 2023
@rjeberhard rjeberhard deleted the disable-rest branch February 16, 2023 20:53
rjeberhard added a commit to rjeberhard/weblogic-kubernetes-operator that referenced this pull request Apr 14, 2023
* Disable REST endpoint by default
robertpatrick pushed a commit that referenced this pull request Apr 26, 2023
* Disable REST endpoint by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants