Commit Graph

7 Commits

Author SHA1 Message Date
Nianyu Shen
701adfd4a4 PE-6055 fix: use string slice instead of string for k3s args (#106)
* 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
Vivek-Joshi-99
2dea81b509 PE-5814: K3S provider does not support agent-specific options (#101)
* 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
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 (#65)
* 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
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
Rishi
1058fe1bb0 addressed review comments 2022-10-18 10:25:13 -07:00
Rishi
fbf2814170 filtering k3s agent config from cluster options 2022-10-18 09:50:18 -07:00