mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-30 12:03:12 +00:00
Add provider-c3os bundle
This commit is contained in:
parent
ee012463dc
commit
08e4ee5d25
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
|
Loading…
Reference in New Issue
Block a user