helm : fichiers multiples + variable
This commit is contained in:
@@ -20,8 +20,8 @@ type HelmChart struct {
|
||||
|
||||
Workspace string
|
||||
Opts string
|
||||
Values string
|
||||
FileValues string
|
||||
Values map[string]string
|
||||
FileValues []string
|
||||
}
|
||||
|
||||
type installInfoOutput struct {
|
||||
@@ -66,8 +66,12 @@ func (this HelmCommand) ChartInstall(data HelmChart) (string, error) {
|
||||
msg = fmt.Sprintf("%s --version %s", msg, data.Version)
|
||||
}
|
||||
|
||||
if data.FileValues != "" {
|
||||
fic := filepath.Join(data.Workspace, data.FileValues)
|
||||
for key, value := range data.Values {
|
||||
msg = fmt.Sprintf("%s --set %s=%s", msg, key, value)
|
||||
}
|
||||
|
||||
for _, valuefilename := range data.FileValues {
|
||||
fic := filepath.Join(data.Workspace, valuefilename)
|
||||
if _, err := os.Stat(fic); err != nil {
|
||||
log.Log().Warn().Msg(fic)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user