File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 18
18
- name : samba
19
19
# Pointing to locally built image,
20
20
# change here to use a registry.
21
- image : samba-ad-container:latest
21
+ image : samba-ad-container:$IMG_TAG
22
22
# Need imagePullPolicy Never for working with local images.
23
23
# Otherwise we get "ErrImagePull".
24
24
imagePullPolicy : Never
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ metadata:
74
74
spec :
75
75
shareProcessNamespace : true
76
76
containers :
77
- - image : samba-container:latest
77
+ - image : samba-container:$IMG_TAG
78
78
# Need imagePullPolicy Never for working with local images.
79
79
# Otherwise we get "ErrImagePull".
80
80
imagePullPolicy : Never
@@ -109,7 +109,7 @@ spec:
109
109
name : samba-state-dir
110
110
- mountPath : " /run/samba/winbindd"
111
111
name : samba-sockets-dir
112
- - image : quay.io/samba.org/samba-server:latest
112
+ - image : quay.io/samba.org/samba-server:$IMG_TAG
113
113
name : winbind
114
114
command :
115
115
- " samba-container"
@@ -134,7 +134,7 @@ spec:
134
134
- mountPath : " /run/samba/winbindd"
135
135
name : samba-sockets-dir
136
136
initContainers :
137
- - image : quay.io/samba.org/samba-server:latest
137
+ - image : quay.io/samba.org/samba-server:$IMG_TAG
138
138
name : init
139
139
args :
140
140
- " init"
@@ -154,7 +154,7 @@ spec:
154
154
name : samba-container-config
155
155
- mountPath : " /var/lib/samba"
156
156
name : samba-state-dir
157
- - image : quay.io/samba.org/samba-server:latest
157
+ - image : quay.io/samba.org/samba-server:$IMG_TAG
158
158
name : must-join
159
159
args :
160
160
- " must-join"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
SCRIPT_DIR=" $( cd " $( dirname " ${0} " ) " && pwd) "
4
+ IMG_TAG=${IMG_TAG:- " latest" }
4
5
5
6
source " ${SCRIPT_DIR} /common.sh"
6
7
7
8
echo " Creating ad member pod..."
8
- ERROR_MSG=$( kubectl create -f " ${MEMBER_POD_YAML} " 2>&1 1> /dev/null)
9
+ ERROR_MSG=$( IMG_TAG= ${IMG_TAG} envsubst < " ${MEMBER_POD_YAML} " | kubectl create -f - 2>&1 1> /dev/null)
9
10
if [ $? -ne 0 ] ; then
10
11
if [[ " ${ERROR_MSG} " =~ " AlreadyExists" ]] ; then
11
12
echo " pod exists already. Continuing."
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
SCRIPT_DIR=" $( cd " $( dirname " ${0} " ) " && pwd) "
4
+ IMG_TAG=${IMG_TAG:- " latest" }
4
5
5
6
source " ${SCRIPT_DIR} /common.sh"
6
7
7
8
echo " Creating ad server deployment..."
8
- ERROR_MSG=$( kubectl create -f " ${AD_DEPLOYMENT_YAML} " 2>&1 1> /dev/null)
9
+ ERROR_MSG=$( IMG_TAG= ${IMG_TAG} envsubst < " ${AD_DEPLOYMENT_YAML} " | kubectl create -f - 2>&1 1> /dev/null)
9
10
if [ $? -ne 0 ] ; then
10
11
if [[ " ${ERROR_MSG} " =~ " AlreadyExists" ]] ; then
11
12
echo " Deployment exists already. Continuing."
You can’t perform that action at this time.
0 commit comments