1
0
mirror of https://github.com/kairos-io/provider-k3s.git synced 2025-05-15 19:30:39 +00:00
Commit Graph

165 Commits

Author SHA1 Message Date
Nianyu Shen
701adfd4a4
PE-6055 fix: use string slice instead of string for k3s args ()
* fix: use string slice instead of string for k3s args

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix: test

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2025-01-30 19:54:25 -08:00
Nianyu Shen
965a113cbd
fix: add disk swap disable stage ()
Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2025-01-29 12:20:37 -08:00
Nianyu Shen
153d95162a
fix: add log rotation and version in logging ()
* fix: add log rotation and version in logging

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* ci: use 22.04 ubuntu runner

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2025-01-27 21:43:30 -08:00
Vivek-Joshi-99
36a500d332
Fix filter Agent config () 2025-01-27 15:08:37 -08:00
Vivek-Joshi-99
2dea81b509
PE-5814: K3S provider does not support agent-specific options ()
* PE-5814: Filtering out agent specific options in server config

* Added all flags

* Revised structs

* Filtering out agent specific options for server config

* Added unit test

Signed-off-by: Vivek-Joshi-99 <viveksanjayjoshi1999@gmail.com>

---------

Signed-off-by: Vivek-Joshi-99 <viveksanjayjoshi1999@gmail.com>
2025-01-27 14:38:46 -08:00
Santhosh
030ab68b4c
Update golang image ()
Signed-off-by: Santhosh S <santhosh@spectrocloud.com>
2024-11-29 11:48:52 +05:30
Zulfihar Ali Ahamed
7627e89965
Update release.yaml 2024-10-03 12:44:10 +05:30
Nianyu Shen
010e27781a
Update release.yaml 2024-10-01 23:58:56 -07:00
Nianyu Shen
984d830928
Update release.yaml 2024-10-01 23:17:53 -07:00
Nianyu Shen
c6fda858c4
switch to us-docker.pkg.dev image repo ()
* switch to us-docker.pkg.dev

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* add dispatch event for testing

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-10-01 23:15:07 -07:00
Piyush Kumar
7788945ebd
chmod +x scripts ()
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2024-10-01 23:10:41 -07:00
Nianyu Shen
4fcff11e7e
PE-5115 add cluster reset event ()
* add cluster reset event

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* bump go to 1.23

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix uninstall script name

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-09-29 18:28:26 -07:00
Nianyu Shen
1426d16933
ci: fix push ()
Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-09-23 21:57:39 -07:00
Nianyu Shen
effac6b5aa
ci: update gcr push token ()
Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-09-23 21:40:33 -07:00
renovate[bot]
8f997480e4
chore(deps): update actions/checkout action to v4 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 21:17:40 -07:00
Nianyu Shen
11bb0a01e1
PE-5119 Support cluster root path ()
* bump kairos sdk to v0.4.2

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* create bind mounts for k3s data,conf dir if cluste root path is provided and is not root

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix version

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix version

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>

* fix workflow

* fix: merge conflict

* add precommit config

* fix lint

---------

Signed-off-by: Nianyu Shen <xiaoyu9964@gmail.com>
2024-09-23 13:46:31 -07:00
renovate[bot]
aedb950b76
fix(deps): update module sigs.k8s.io/yaml to v1.4.0 ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-15 23:31:01 -07:00
renovate[bot]
9d8bf7149c
Add renovate.json ()
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-15 23:19:59 -07:00
Chinmay Gabel
efc5c0895e
Merge pull request from kairos-io/fix-reset
bump kairos sdk to v0.4.3
2024-09-15 15:57:59 -07:00
gabelchinmay
035f32a0ae use kairos 0.4.2
Signed-off-by: gabelchinmay <chinmay.gabel@spectrocloud.com>
2024-09-15 15:52:47 -07:00
gabelchinmay
c9e4b4cab9 bump kairos sdk
Signed-off-by: gabelchinmay <chinmay.gabel@spectrocloud.com>
2024-09-15 15:52:47 -07:00
Nianyu Shen
c705440475
Merge pull request from kairos-io/PE-4726
PE-4726 Add k3s agent kill script
2024-08-21 23:14:33 -07:00
Kiran Kilingar Nadumane
1b7cf2acf4 add k3s agent kill script 2024-08-22 06:12:14 +00:00
Rishi Anand
8546d70d1b
Merge pull request from kairos-io/PE-4726
WIP PE-4726: Edge-Std: Edge host reset flow for K3S
2024-08-21 22:32:10 -07:00
Kiran Kilingar Nadumane
63585337ed add a check 2024-08-21 21:17:10 +00:00
Kiran Kilingar Nadumane
400b5fcfac PE-4726: Edge-Std: Edge host reset flow for K3S 2024-08-21 21:14:28 +00:00
Tyler Gillson
6a9fad59f9
fix: set 'cluster-init: false' when explicitly disabled via ProviderOptions ()
* fix: set 'cluster-init: false' when explicitly disabled via ProviderOptions
* ci: run unit tests
---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
2024-07-08 07:15:09 -06:00
Santhosh
98e4940855
Merge pull request from kairos-io/cluster-init-tag
added omitempty tag to cluster init for worker nodes
2024-06-28 21:54:13 +05:30
Piyush Kumar
db6a275968 added omitempty tag to cluster init for worker nodes
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2024-06-28 17:25:44 +05:30
Tyler Gillson
e0c5ebeade
Support ProviderOptions from the Kairos SDK; export constants for yip stage names ()
* conditionally disable ClusterInit to use sqlite for two node clusters
* expose boot.before stage names as constants
* support kairos SDK ProviderOptions; add datastore config
---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Co-authored-by: Arun Sharma <dev.arun2302@gmail.com>
Co-authored-by: Oz Tiram <oz.tiram@gmail.com>
2024-06-11 14:44:34 -06:00
Piyush Kumar
bd434c0bc6
Merge pull request from kairos-io/remove-flannel-agent
remove flannel backend from agent
2024-05-07 09:57:05 +05:30
Santhosh
5a33ed222b remove flannel backend from agent
Signed-off-by: Santhosh <santhosh@spectrocloud.com>
2024-05-07 09:26:26 +05:30
Piyush Kumar
f2c26e1484
Merge pull request from nianyush/fix-arm
bump golang version 1.22 and luet to 0.35.1
2024-04-18 01:14:29 +05:30
Nianyu Shen
635fcfb515
bump golang version 1.22 and luet to 0.35.1 2024-04-16 15:43:50 -07:00
Tyler Gillson
1df2543eb5
Merge pull request from kairos-io/add-license
* chore: add apache 2.0 license
* chore: bump golangci-lint version
---------

Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
2024-01-25 13:27:18 -07:00
Tyler Gillson
95528b618c
chore: bump golangci-lint version
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
2024-01-25 13:07:49 -07:00
Tyler Gillson
837c55dd19
chore: add apache 2.0 license
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
2024-01-25 12:45:43 -07:00
Santhosh
83f438cc57
Merge pull request from kairos-io/sync-release-4.1
Sync release 4.1
2023-12-01 13:52:31 +05:30
Piyush Kumar
fd75d972e4 using manual command for k3s service restarts
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2023-12-01 13:05:29 +05:30
Piyush Kumar
8081d98bb9 added logs
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2023-12-01 13:05:29 +05:30
Piyush Kumar
fd78d5f2ce removed no-flannel flag for agent config
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
2023-12-01 13:05:29 +05:30
Arun Sharma
91a391ce98 build with script
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
2023-12-01 13:05:29 +05:30
Arun Sharma
476699af88 Image change to debian
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
2023-12-01 13:05:29 +05:30
Arun Sharma
83bdbf1fb2 Image change to debian
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
2023-12-01 13:05:29 +05:30
Arun Sharma
00723d31b7 Image change to debian
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
2023-12-01 13:05:29 +05:30
Santhosh
96671ffa61
Merge pull request from nianyush/flannel-backend
PE-3058 add flannel-backend in agent config
2023-11-28 19:57:38 +05:30
Nianyu Shen
7f33d900bc
add flannel-backend in agent config
Signed-off-by: Nianyu Shen <nianyu@spectrocloud.com>
2023-11-17 17:45:22 -08:00
Oz Tiram
955d716f7d
Merge pull request from kairos-io/expose-datastore-config
Allow API consumers to override the default SQLite datastore
2023-10-17 12:34:09 +02:00
Oz Tiram
5e9c798a56
Allow users to override the default SQLite datastore
k3s supports multiple datastores via Kine. If one chooses not
to use etcd (the default) by passing `ClusterInit=false` they
can also specify a different datastore overriding the default location
at `/var/lib/rancher/k3s/server/db/state.db`.
For example:

  datastore-endpoint: "sqlite:///etc/kubernetes/state.sqlite3"

or:

 datastore-endpoint: "postgres://blueelephant:pgrulz@localhost:port/kine

See here for more information: https://docs.k3s.io/datastore

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2023-10-17 11:41:45 +02:00
Santhosh
02f6ba2d6d
Merge pull request from kairos-io/agent-config
added k3s agent config fields
2023-10-12 02:27:45 -07:00