Skip to content

Commit 42fba60

Browse files
committed
conditionally validate domain PVC
1 parent 806287e commit 42fba60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubernetes/samples/scripts/common/utility.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
2+
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
33
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
44

55
#
@@ -463,7 +463,7 @@ function createDomain {
463463
validateDomainSecret
464464

465465
# Validate the domain's persistent volume claim
466-
if [ "$doValidation" == true ]; then
466+
if [ "${doValidation}" == true ] && [ "${domainHomeInImage}" == false -o "${logHomeOnPV}" == true ]; then
467467
validateDomainPVC
468468
fi
469469

0 commit comments

Comments
 (0)