mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-31 22:17:00 +00:00
Add provider-c3os bundle
This commit is contained in:
26
packages/bundles/provider-c3os/build.yaml
Normal file
26
packages/bundles/provider-c3os/build.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
{{ if eq .Values.init "systemd" }}
|
||||||
|
image: golang:1.18
|
||||||
|
prelude:
|
||||||
|
- apt-get update
|
||||||
|
- apt-get install -y git curl systemd
|
||||||
|
{{ else }}
|
||||||
|
image: golang:1.18-alpine
|
||||||
|
prelude:
|
||||||
|
- apk add git curl openrc
|
||||||
|
{{ end }}
|
||||||
|
- git clone https://github.com/c3os-io/provider-c3os
|
||||||
|
- cd provider-c3os && git checkout {{.Values.tag}}
|
||||||
|
- curl -sfL https://get.k3s.io > installer.sh
|
||||||
|
steps:
|
||||||
|
- cd provider-c3os && go build -o agent-provider-c3os ./
|
||||||
|
- mv provider-c3os/agent-provider-c3os /usr/local/bin
|
||||||
|
- bash installer.sh
|
||||||
|
- bash installer.sh agent
|
||||||
|
{{ if ne .Values.init "systemd" }}
|
||||||
|
- rm -rf /etc/rancher/k3s/k3s.env /etc/rancher/k3s/k3s-agent.env && touch /etc/rancher/k3s/.keep
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
env:
|
||||||
|
- INSTALL_K3S_VERSION={{.Values.k3s_version}}
|
||||||
|
- INSTALL_K3S_SKIP_START="true"
|
||||||
|
- INSTALL_K3S_SKIP_ENABLE="true"
|
7
packages/bundles/provider-c3os/collection.yaml
Normal file
7
packages/bundles/provider-c3os/collection.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
packages:
|
||||||
|
- name: "provider-c3os"
|
||||||
|
category: "bundles"
|
||||||
|
k3s_version: "v1.21.14+k3s1"
|
||||||
|
version: "0.0.1-alpha2+k3s1.21.14"
|
||||||
|
tag: "v0.0.1-alpha2"
|
||||||
|
init: systemd
|
Reference in New Issue
Block a user