Skip to content

Commit b2e0205

Browse files
committed
Set domainHomeInImage to false and add labels to domain custom resource
Signed-off-by: doxiao <[email protected]>
1 parent 4a48c01 commit b2e0205

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/domain-custom-resource-template.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Copyright 2017, 2018, Oracle Corporation and/or its affiliates. All rights reserved.
2+
23
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
34
#
45
# This is an example of how to define a Domain Custom Resource.
@@ -8,6 +9,10 @@ kind: Domain
89
metadata:
910
name: %DOMAIN_UID%
1011
namespace: %NAMESPACE%
12+
labels:
13+
weblogic.resourceVersion: domain-v2
14+
weblogic.domainUID: %DOMAIN_UID%
15+
weblogic.domainName: %DOMAIN_NAME%
1116
spec:
1217
# The domainUID must be unique across the entire Kubernetes Cluster. Each WebLogic Domain must
1318
# have its own unique domainUID. This does not have to be the same as the Domain Name. It is allowed
@@ -18,6 +23,8 @@ spec:
1823
domainName: %DOMAIN_NAME%
1924
# The WebLogic Domain Home
2025
domainHome: %DOMAIN_HOME%
26+
# If the domain home is in the image
27+
domainHomeInImage: false
2128
# The Operator currently does not support other images
2229
image: "%WEBLOGIC_IMAGE%"
2330
# imagePullPolicy defaults to "Always" if image version is :latest

0 commit comments

Comments
 (0)