Skip to content

Commit f1f9a85

Browse files
committed
Merge branch 'fix-readme-for-helper' into 'release/4.1'
Fix the README file for the pv-pvc-helper script. See merge request weblogic-cloud/weblogic-kubernetes-operator!4338
2 parents 1c17649 + 2e0cb30 commit f1f9a85

File tree

1 file changed

+5
-4
lines changed
  • kubernetes/samples/scripts/domain-lifecycle

1 file changed

+5
-4
lines changed

kubernetes/samples/scripts/domain-lifecycle/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,18 +286,19 @@ $ waitForDomain.sh -n my-namespace -d my-domain -p 0
286286
Use this helper script for examining, changing permissions, or deleting the contents of the persistent volume (such as domain files or logs) for a WebLogic Domain on PV or Model in Image domain.
287287
The script launches a Kubernetes pod named 'pvhelper' using the provided persistent volume claim name and the mount path.
288288
You can run the 'kubectl exec' command to get a shell to the running pod container and run commands to examine or clean up the contents of shared directories on the persistent volume.
289-
Use the 'kubectl delete pvhelper -n <namespace>' command to delete the Pod after it's no longer needed.
289+
Use the 'kubectl delete pod pvhelper -n <namespace>' command to delete the Pod after it's no longer needed.
290290

291291
Use the following command for script usage:
292292

293293
```
294-
$ domain-on-pv-helper.sh -h
294+
$ pv-pvc-helper.sh -h
295295
```
296296

297-
The following is an example command to launch the helper pod with the PVC name `sample-domain1-weblogic-sample-pvc` and mount path `/shared`.
297+
The following is an example command to launch the helper pod with the PVC name `sample-domain1-weblogic-sample-pvc` and mount path `/shared`.
298+
Specifying the `-r` argument allows the script to run as the `root` user.
298299

299300
```
300-
$ domain-on-pv-helper.sh -n sample-domain1-ns -c sample-domain1-weblogic-sample-pvc -m /shared
301+
$ pv-pvc-helper.sh -n sample-domain1-ns -c sample-domain1-weblogic-sample-pvc -m /shared -r
301302
```
302303

303304
After the Pod is created, use the following command to get a shell to the running pod container.

0 commit comments

Comments
 (0)