Skip to content

Commit 6c976f0

Browse files
authored
Use --dry-run=client (#3135)
1 parent 15e07d0 commit 6c976f0

File tree

7 files changed

+6
-7
lines changed

7 files changed

+6
-7
lines changed

documentation/3.4/content/samples/azure-kubernetes-service/domain-on-pv.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ You need to set up the domain configuration for the WebLogic domain.
259259
Checking to see if the secret domain1-weblogic-credentials exists in namespace default
260260
Checking if the persistent volume claim wls-azurefile in NameSpace default exists
261261
The persistent volume claim wls-azurefile already exists in NameSpace default
262-
Wwls 07:15:52.866794 53745 helpers.go:535] --dry-run is deprecated and can be replaced with --dry-run=client.
263262
configmap/domain1-create-weblogic-sample-domain-job-cm created
264263
Checking the configmap domain1-create-weblogic-sample-domain-job-cm was created
265264
configmap/domain1-create-weblogic-sample-domain-job-cm labeled

integration-tests/src/test/resources/bash-scripts/create-secret.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ elif [ "$DRY_RUN" = "yaml" ]; then
119119
\
120120
create secret generic \
121121
$SECRET_NAME $LITERALS $FILENAMES \
122-
--dry-run -o yaml \
122+
--dry-run=client -o yaml \
123123
\
124124
| sed -e '/ name:/a\
125125
labels:' \

kubernetes/samples/scripts/create-fmw-infrastructure-domain/domain-home-on-pv/create-domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function createDomainConfigmap {
185185

186186
# create the configmap and label it properly
187187
local cmName=${domainUID}-create-fmw-infra-sample-domain-job-cm
188-
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run -o yaml | kubectl apply -f -
188+
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run=client -o yaml | kubectl apply -f -
189189

190190
echo Checking the configmap $cmName was created
191191
local num=`kubectl get cm -n $namespace | grep ${cmName} | wc | awk ' { print $1; } '`

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function createDomainConfigmap {
176176

177177
# create the configmap and label it properly
178178
local cmName=${domainUID}-create-weblogic-sample-domain-job-cm
179-
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run -o yaml | kubectl apply -f -
179+
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run=client -o yaml | kubectl apply -f -
180180

181181
echo Checking the configmap $cmName was created
182182
local num=`kubectl get cm -n $namespace | grep ${cmName} | wc | awk ' { print $1; } '`

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/update-domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function createDomainConfigmap {
173173

174174
# create the configmap and label it properly
175175
local cmName=${domainUID}-update-weblogic-sample-domain-job-cm
176-
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run -o yaml | kubectl apply -f -
176+
kubectl create configmap ${cmName} -n $namespace --from-file $externalFilesTmpDir --dry-run=client -o yaml | kubectl apply -f -
177177

178178
echo Checking the configmap $cmName was created
179179
local num=`kubectl get cm -n $namespace | grep ${cmName} | wc | awk ' { print $1; } '`

kubernetes/samples/scripts/create-weblogic-domain/model-in-image/utils/create-configmap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ elif [ "$DRY_RUN" = "yaml" ]; then
9898
# (we use an ancient form of sed append to stay compatible with old bash on mac)
9999
kubectl -n $DOMAIN_NAMESPACE \
100100
create configmap $CONFIGMAP_NAME $FILENAMES \
101-
--dry-run -o yaml \
101+
--dry-run=client -o yaml \
102102
\
103103
| sed -e '/ name:/a\
104104
labels:' \

kubernetes/samples/scripts/create-weblogic-domain/model-in-image/utils/create-secret.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ EOF
100100
function kubectlDryRunCreate() {
101101
local moredry=""
102102
if [ "$DRY_RUN" = "yaml" ]; then
103-
local moredry="--dry-run -o yaml"
103+
local moredry="--dry-run=client -o yaml"
104104
fi
105105
cat << EOF
106106
dryrun:kubectl -n $NAMESPACE create secret generic \\

0 commit comments

Comments
 (0)