-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Arun Sharma <[email protected]> Signed-off-by: Oz Tiram <[email protected]> Co-authored-by: Arun Sharma <[email protected]> Co-authored-by: Oz Tiram <[email protected]>
- Loading branch information
1 parent
bd434c0
commit e0c5ebe
Showing
6 changed files
with
102 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package api | ||
|
||
type K3sServerConfig struct { | ||
ClusterInit bool `yaml:"cluster-init,omitempty"` | ||
Token string `yaml:"token,omitempty"` | ||
Server string `yaml:"server,omitempty"` | ||
TLSSan []string `yaml:"tls-san,omitempty"` | ||
DatastoreEndpoint string `yaml:"datastore-endpoint,omitempty"` | ||
// ClusterInit must not have an omitempty tag, otherwise it is elided by JSON/YAML encoders when false. | ||
ClusterInit bool `yaml:"cluster-init" json:"cluster-init"` | ||
Token string `yaml:"token,omitempty" json:"token,omitempty"` | ||
Server string `yaml:"server,omitempty" json:"server,omitempty"` | ||
TLSSan []string `yaml:"tls-san,omitempty" json:"tls-san,omitempty"` | ||
DatastoreEndpoint string `yaml:"datastore-endpoint,omitempty" json:"datastore-endpoint,omitempty"` | ||
DatastoreCaFile string `yaml:"datastore-cafile,omitempty" json:"datastore-cafile,omitempty"` | ||
DatastoreCertFile string `yaml:"datastore-certfile,omitempty" json:"datastore-certfile,omitempty"` | ||
DatastoreKeyFile string `yaml:"datastore-keyfile,omitempty" json:"datastore-keyfile,omitempty"` | ||
BindAddress string `yaml:"bind-address,omitempty" json:"bind-address,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.