Skip to content

Commit 6265aff

Browse files
committed
Replace "named object list" with hyphenated object list in examples, remove description
1 parent 6900072 commit 6265aff

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

documentation/2.0/content/userguide/tools/kubernetes.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,20 @@ kubernetes:
5858
spec:
5959
image: 'my.repo/my-image:2.0'
6060
imagePullSecrets:
61-
WEBLOGIC_IMAGE_PULL_SECRET_NAME:
61+
- name: WEBLOGIC_IMAGE_PULL_SECRET_NAME
6262
webLogicCredentialsSecret:
6363
name: '@@PROP:mySecret@@'
6464
configuration:
6565
model:
6666
domainType: 'WLS'
67-
secrets: [
68-
'secret1',
69-
'secret2'
70-
]
67+
secrets:
68+
- secret1
69+
- secret2
7170
serverPod:
7271
env:
73-
USER_MEM_ARGS:
72+
- name: USER_MEM_ARGS
7473
value: '-XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom'
75-
JAVA_OPTIONS:
74+
- name: JAVA_OPTIONS
7675
value: '-Dmydir=/home/me'
7776
```
7877
This example uses `@@PROP:mySecret@@` to pull the value for `webLogicCredentialsSecret` from the variables file specified on the command line. This can be done with any of the values in the `kubernetes` section of the model. More details about using model variables can be found [here]({{< relref "/concepts/model#simple-example" >}}).
@@ -110,8 +109,6 @@ spec:
110109
replicas: 4
111110
```
112111

113-
The syntax of the `spec/serverPod/env` and other list sections in the WDT model are different from the syntax in the target file. The WDT tools do not recognize the hyphenated list syntax, so these elements are specified in a similar manner to other model lists.
114-
115112
If clusters are specified in the `kubernetes/spec` section of the model, those clusters will be configured in the domain resource file, and clusters from the `topology` section will be disregarded.
116113

117114
If the WDT model has a value of `Never` for `spec/imagePullPolicy`, the `imagePullSecrets` default value will not be added.

0 commit comments

Comments
 (0)