Add provider-c3os bundle

This commit is contained in:
Ettore Di Giacinto 2022-08-20 22:54:31 +00:00
parent ee012463dc
commit 08e4ee5d25
2 changed files with 33 additions and 0 deletions

View 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"

View 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