@@ -29,12 +29,12 @@ type PackageConfig struct {
2929 // the package and optionally overwritten by the user at installation. Any long-form flags accepted
3030 // by k3s server without the leading "--" can be used as keys to Flags along with their cooresponding values.
3131 // A list can be provided for the value to signal specifying the flag multiple times.
32- ServerConfig map [string ]string `json:"serverConfig,omitempty" yaml:"serverConfig,omitempty"`
32+ ServerConfig map [string ]interface {} `json:"serverConfig,omitempty" yaml:"serverConfig,omitempty"`
3333 // AgentConfig represents configurations to apply to k3s agent nodes. They can be bundled into
3434 // the package and optionally overwritten by the user at installation. Any long-form flags accepted
3535 // by k3s agent without the leading "--" can be used as keys to Flags along with their cooresponding values.
3636 // A list can be provided for the value to signal specifying the flag multiple times.
37- AgentConfig map [string ]string `json:"agentConfig,omitempty" yaml:"agentConfig,omitempty"`
37+ AgentConfig map [string ]interface {} `json:"agentConfig,omitempty" yaml:"agentConfig,omitempty"`
3838 // HelmValues is a map of chart names to either a list of filenames containing values for that chart, or a single
3939 // map of inline value declarations.
4040 HelmValues map [string ]interface {} `json:"helmValues,omitempty" yaml:"helmValues,omitempty"`
@@ -282,8 +282,8 @@ func flagKeyExists(fields []string, key string) bool {
282282func (p * PackageConfig ) DeepCopy () * PackageConfig {
283283 out := & PackageConfig {
284284 Variables : make ([]PackageVariable , len (p .Variables )),
285- ServerConfig : make (map [string ]string ),
286- AgentConfig : make (map [string ]string ),
285+ ServerConfig : make (map [string ]interface {} ),
286+ AgentConfig : make (map [string ]interface {} ),
287287 HelmValues : make (map [string ]interface {}),
288288 Raw : make ([]byte , len (p .Raw )),
289289 }
0 commit comments