Skip to content

Commit

Permalink
Add openstack-control-plane label to all hosts labeled control-plane (#…
Browse files Browse the repository at this point in the history
…1804)

fixes setups where prefix is set

Signed-off-by: Eike Waldt <[email protected]>
  • Loading branch information
yeoldegrove authored Oct 18, 2023
1 parent b2d43f1 commit 57d3c9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/deploy/000-manager-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ if [[ $MANAGER_VERSION == "latest" ]]; then

# NOTE: The following lines will be moved to an osism.services.clusterapi role
export KUBECONFIG=$HOME/.kube/config
kubectl label node testbed-manager openstack-control-plane=enabled
# kubectl label node testbed-node-0 openstack-control-plane=enabled
# kubectl label node testbed-node-1 openstack-control-plane=enabled
# kubectl label node testbed-node-2 openstack-control-plane=enabled
# add openstack-control-plane label to all hosts labeled control-plane
OS_CONTROL_PLANE_NODES=$(kubectl get nodes | grep control-plane | awk '{print $1}')
for NODE in $OS_CONTROL_PLANE_NODES; do
kubectl label node "${NODE}" openstack-control-plane=enabled
done
sudo curl -Lo /usr/local/bin/clusterctl https://github.com/kubernetes-sigs/cluster-api/releases/download/${CAPI_VERSION}/clusterctl-linux-amd64
sudo chmod +x /usr/local/bin/clusterctl
export EXP_CLUSTER_RESOURCE_SET=true
Expand Down

0 comments on commit 57d3c9c

Please sign in to comment.