Generate profile config instead of having a static file (#988)

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2024-07-31 10:26:53 +02:00
committed by GitHub
parent a04c3ecc03
commit 32ecd2b767
3 changed files with 16 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
packages:
- name: "kairos-overlay-files"
category: "static"
version: "1.1.42"
version: "1.1.43"

View File

@@ -1,5 +0,0 @@
if [ -z "$KUBECONFIG" ]; then
if [ -e /etc/rancher/k3s/k3s.yaml ]; then
export KUBECONFIG="/etc/rancher/k3s/k3s.yaml"
fi
fi

View File

@@ -0,0 +1,15 @@
name: "Profile extensions"
stages:
initramfs:
- name: "Set KUBECONFIG to access k9s and kubectl"
files:
- path: /etc/profile.d/kairos.sh
permissions: 0644
owner: 0
group: 0
content: |
if [ -z "$KUBECONFIG" ]; then
if [ -e /etc/rancher/k3s/k3s.yaml ]; then
export KUBECONFIG="/etc/rancher/k3s/k3s.yaml"
fi
fi