🐛 Fix <len .Values.tap.namespaces>: error calling len: len of nil pointer Helm install error

This commit is contained in:
M. Mert Yildiran 2023-06-20 22:14:06 +03:00
parent 8814e08871
commit bada6dae68
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
2 changed files with 3 additions and 2 deletions

View File

@ -90,6 +90,7 @@ func tap() {
rel, err := helm.NewHelmDefault().Install()
if err != nil {
log.Error().Err(err).Send()
return
} else {
log.Info().Msgf("Installed the Helm release: %s", rel.Name)
}

View File

@ -81,7 +81,7 @@ type ResourcesConfig struct {
}
type AuthConfig struct {
ApprovedDomains []string `yaml:"approvedDomains" json:"approvedDomains"`
ApprovedDomains []string `yaml:"approvedDomains" json:"approvedDomains" default:"[]"`
}
type IngressConfig struct {
@ -96,7 +96,7 @@ type TapConfig struct {
Docker DockerConfig `yaml:"docker" json:"docker"`
Proxy ProxyConfig `yaml:"proxy" json:"proxy"`
PodRegexStr string `yaml:"regex" json:"regex" default:".*"`
Namespaces []string `yaml:"namespaces" json:"namespaces"`
Namespaces []string `yaml:"namespaces" json:"namespaces" default:"[]"`
SelfNamespace string `yaml:"selfnamespace" json:"selfnamespace" default:"kubeshark"`
PersistentStorage bool `yaml:"persistentstorage" json:"persistentstorage" default:"false"`
StorageLimit string `yaml:"storagelimit" json:"storagelimit" default:"200Mi"`