Skip to content

Commit 99ce448

Browse files
doxiaorussgold
authored andcommitted
Better support for optional imagePullSecretName
Signed-off-by: doxiao <[email protected]>
1 parent d40e9c2 commit 99ce448

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ function createYamlFiles {
381381
cp ${dcrInput} ${dcrOutput}
382382
sed -i -e "s:%NAMESPACE%:$namespace:g" ${dcrOutput}
383383
sed -i -e "s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName}:g" ${dcrOutput}
384+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${imagePullSecretPrefix}:g" ${dcrOutput}
384385
sed -i -e "s:%DOMAIN_UID%:${domainUID}:g" ${dcrOutput}
385386
sed -i -e "s:%DOMAIN_NAME%:${domainName}:g" ${dcrOutput}
386387
sed -i -e "s:%DOMAIN_HOME%:${domainHome}:g" ${dcrOutput}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ spec:
3030
# imagePullPolicy defaults to "Always" if image version is :latest
3131
imagePullPolicy: "%WEBLOGIC_IMAGE_PULL_POLICY%"
3232
# Identify which Secret contains the credentials for pulling an image
33-
imagePullSecrets:
34-
- name: %WEBLOGIC_IMAGE_PULL_SECRET_NAME%
33+
%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%imagePullSecrets:
34+
%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%- name: %WEBLOGIC_IMAGE_PULL_SECRET_NAME%
3535
# Identify which Secret contains the WebLogic Admin credentials (note that there is an example of
3636
# how to create that Secret at the end of this file)
3737
adminSecret:

0 commit comments

Comments
 (0)