Skip to content

Commit 6a4e3f8

Browse files
committed
Merge branch 'master' of https://github.com/oracle/weblogic-kubernetes-operator into prepare-doc-for-release
2 parents 79568e2 + 78391cb commit 6a4e3f8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

site/shutdown-domain.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
To shut down a domain, issue the following command:
44

55
```
6-
kubectl delete domain DOMAINUID
6+
kubectl delete domain DOMAINUID -n NAMESPACE
77
```
88

9-
Replace `DOMAINUID` with the UID of the target domain.
9+
Replace `DOMAINUID` with the UID of the target domain and `NAMESPACE` with the namespace it is running in.
1010

1111
This command will remove the domain custom resource for the target domain. The operator will be notified that the custom resource has been removed, and it will initiate the following actions:
1212

@@ -15,3 +15,15 @@ This command will remove the domain custom resource for the target domain. The
1515
* Remove any services associated with the domain.
1616

1717
The operator will not delete any of the content on the persistent volume. This command simply shuts down the domain; it does not remove it.
18+
19+
If the load balancer option was selected, there may also be one or more load balancer deployments in the namespace that can be removed. For example, if there was one cluster in the domain, a command similar to this would be used to remove the load balancer for that cluster:
20+
21+
```
22+
kubectl delete deployment domain1-cluster-1-traefik -n domain1
23+
```
24+
25+
If there is only one domain in the namespace, then just deleting the namespace might be a faster option:
26+
27+
```
28+
kubectl delete namespace NAMESPACE
29+
```

src/main/java/oracle/kubernetes/operator/helpers/HealthCheckHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public HealthCheckHelper(ClientHolder client, String operatorNamespace, Collecti
147147
namespaceAccessChecks.put(AuthorizationProxy.Resource.ingresses, ingressOperations);
148148
namespaceAccessChecks.put(AuthorizationProxy.Resource.networkpolicies, networkPoliciesOperations);
149149
clusterAccessChecks.put(AuthorizationProxy.Resource.customresourcedefinitions, crudOperations);
150-
150+
151151
clusterAccessChecks.put(AuthorizationProxy.Resource.domains, domainOperations);
152152

153153
// Readonly resources
@@ -248,7 +248,9 @@ private void verifyK8sVersion() throws ApiException {
248248
// git version is of the form v1.7.5
249249
// Check the 3rd part of the version.
250250
String[] splitVersion = gitVersion.split("\\.");
251-
if (Integer.parseInt(splitVersion[2]) < 5) {
251+
// issue-36: gitVersion can be not just "v1.7.9" but also values like "v1.7.9+coreos.0"
252+
splitVersion = splitVersion[2].split("\\+");
253+
if (Integer.parseInt(splitVersion[0]) < 5) {
252254
k8sMinVersion = false;
253255
}
254256
}

0 commit comments

Comments
 (0)