Convert env to a map of interfaces (#101)

Signed-off-by: Mauro Morales <contact@mauromorales.com>
This commit is contained in:
Mauro Morales
2024-04-18 09:06:21 +02:00
committed by GitHub
parent 0c39922927
commit b7420201f1

View File

@@ -62,7 +62,7 @@ func (P2PNetworkExtended) JSONSchemaOneOf() []interface{} {
// VPN represents the vpn block in the Kairos configuration.
type VPN struct {
Create bool `json:"vpn,omitempty" default:"true"`
Use bool `json:"use,omitempty" default:"true"`
Envs interface{} `json:"env,omitempty"`
Create bool `json:"vpn,omitempty" default:"true"`
Use bool `json:"use,omitempty" default:"true"`
Envs map[string]interface{} `json:"env,omitempty"`
}