Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 807badd

Browse files
committed
Remove kubeconfig export.
Signed-off-by: Chris Privitere <[email protected]>
1 parent e8962e9 commit 807badd

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

templates/cluster-template-crs-cni.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ spec:
160160
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
161161
export KUBECONFIG=/etc/kubernetes/admin.conf
162162
mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config
163-
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc
164163
echo "source <(kubectl completion bash)" >> /root/.bashrc
165164
echo "alias k=kubectl" >> /root/.bashrc
166165
echo "complete -o default -F __start_kubectl k" >> /root/.bashrc

templates/cluster-template-kube-vip-crs-cni.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ spec:
153153
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
154154
export KUBECONFIG=/etc/kubernetes/admin.conf
155155
mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config
156-
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc
157156
echo "source <(kubectl completion bash)" >> /root/.bashrc
158157
echo "alias k=kubectl" >> /root/.bashrc
159158
echo "complete -o default -F __start_kubectl k" >> /root/.bashrc

templates/cluster-template-kube-vip.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ spec:
132132
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
133133
export KUBECONFIG=/etc/kubernetes/admin.conf
134134
mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config
135-
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc
136135
echo "source <(kubectl completion bash)" >> /root/.bashrc
137136
echo "alias k=kubectl" >> /root/.bashrc
138137
echo "complete -o default -F __start_kubectl k" >> /root/.bashrc

templates/cluster-template.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ spec:
8585
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
8686
export KUBECONFIG=/etc/kubernetes/admin.conf
8787
mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config
88-
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc
8988
echo "source <(kubectl completion bash)" >> /root/.bashrc
9089
echo "alias k=kubectl" >> /root/.bashrc
9190
echo "complete -o default -F __start_kubectl k" >> /root/.bashrc

templates/experimental-kube-vip/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ patches:
7878
if [ -f "/run/kubeadm/kubeadm.yaml" ]; then
7979
export KUBECONFIG=/etc/kubernetes/admin.conf
8080
mkdir -p /root/.kube && cp -f $${KUBECONFIG} /root/.kube/config
81-
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /root/.bashrc
8281
echo "source <(kubectl completion bash)" >> /root/.bashrc
8382
echo "alias k=kubectl" >> /root/.bashrc
8483
echo "complete -o default -F __start_kubectl k" >> /root/.bashrc

0 commit comments

Comments
 (0)