Browse Source

k8s-fcos: Source bashrc for clusterconfig

During the reshuffling of bash fragments,
we missed sourcing bashrc which contains the
location of kubeconfig.

Fix addition of /srv/magnum/bin to PATH.

story: 2007591
task: 39938

Change-Id: I238f7e2a1cbcb696a51880fb6ea75ea0a7ce6288
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
changes/94/761894/1
Spyros Trigazis 9 months ago
parent
commit
2c93427d49
  1. 3
      magnum/drivers/common/templates/kubernetes/fragments/install-clients.sh
  2. 1
      magnum/drivers/k8s_fedora_coreos_v1/templates/kubecluster.yaml

3
magnum/drivers/common/templates/kubernetes/fragments/install-clients.sh

@ -31,6 +31,7 @@ do
done
echo "INFO Installed kubectl."
echo "PATH=/srv/magnum/bin:\$PATH" >> /etc/bashrc
echo "export PATH=/srv/magnum/bin:\$PATH" >> /etc/bashrc
export PATH=/srv/magnum/bin:$PATH
printf "Finished running ${step}\n"

1
magnum/drivers/k8s_fedora_coreos_v1/templates/kubecluster.yaml

@ -1308,6 +1308,7 @@ resources:
- "\n"
-
- "#!/bin/bash"
- "source /etc/bashrc"
- get_file: ../../common/templates/kubernetes/fragments/kube-apiserver-to-kubelet-role.sh
- get_file: ../../common/templates/kubernetes/fragments/core-dns-service.sh
- if:

Loading…
Cancel
Save