fix(clustertool): correct bug where Chart.yaml was writhen with indentation
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
minHelmVersion = "3.14"
|
minHelmVersion = "3.14"
|
||||||
maxHelmVersion = "3.16"
|
maxHelmVersion = "3.17"
|
||||||
kubeVersion = ">=1.24.0-0"
|
kubeVersion = ">=1.24.0-0"
|
||||||
apiVersion = "v2"
|
apiVersion = "v2"
|
||||||
chartType = "application"
|
chartType = "application"
|
||||||
@@ -26,7 +26,7 @@ const (
|
|||||||
defaultAppVersion = "unknown"
|
defaultAppVersion = "unknown"
|
||||||
defaultDescription = "No description provided."
|
defaultDescription = "No description provided."
|
||||||
defaultHome = "https://truecharts.org"
|
defaultHome = "https://truecharts.org"
|
||||||
defaultIcon = "https://github.com/truecharts/website/blob/main/static/svg/logo.svg"
|
defaultIcon = "https://github.com/truecharts/public/blob/main/website/static/svg/logo.svg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var validate *validator.Validate
|
var validate *validator.Validate
|
||||||
|
|||||||
@@ -6,6 +6,5 @@ import (
|
|||||||
|
|
||||||
func MarshalYaml(buf *bytes.Buffer, v interface{}) error {
|
func MarshalYaml(buf *bytes.Buffer, v interface{}) error {
|
||||||
enc := YamlNewEncoder(buf)
|
enc := YamlNewEncoder(buf)
|
||||||
enc.SetIndent(2)
|
|
||||||
return enc.Encode(v)
|
return enc.Encode(v)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user