Skip to content

Commit 9e19443

Browse files
author
Francisco de Borja Aranda Castillejo
authored
Merge pull request #299 from iranzo/onlymasters
fix(odfdeploy): apply labels only to master nodes
2 parents f913ab2 + f52936c commit 9e19443

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deploy-odf/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ if ! ./verify.sh; then
159159
echo ">>>> Labeling nodes for ODF"
160160
echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>"
161161
counter=0
162-
for node in $(oc --kubeconfig=${EDGE_KUBECONFIG} get node -o name); do
162+
for node in $(oc --kubeconfig=${EDGE_KUBECONFIG} get node -o name -l node-role.kubernetes.io/master); do
163163
oc --kubeconfig=${EDGE_KUBECONFIG} label $node cluster.ocs.openshift.io/openshift-storage='' --overwrite=true
164164
oc --kubeconfig=${EDGE_KUBECONFIG} label $node topology.rook.io/rack=rack${counter} --overwrite=true
165165
let "counter+=1"

0 commit comments

Comments
 (0)