mirror of
https://github.com/kairos-io/packages.git
synced 2025-09-04 00:45:41 +00:00
Generate profile config instead of having a static file (#988)
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "kairos-overlay-files"
|
- name: "kairos-overlay-files"
|
||||||
category: "static"
|
category: "static"
|
||||||
version: "1.1.42"
|
version: "1.1.43"
|
||||||
|
@@ -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
|
|
@@ -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
|
Reference in New Issue
Block a user