Skip to content

Commit

Permalink
PMM-9374 fix supervisord for external VM.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Aug 30, 2023
1 parent a38645d commit 2f8fc85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion managed/services/supervisord/supervisord.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func (s *Service) UpdateConfiguration(settings *models.Settings, ssoDetails *mod
}

for _, tmpl := range templates.Templates() {
if tmpl.Name() == "" {
if tmpl.Name() == "" || (tmpl.Name() == "victoriametrics" && s.vmParams.ExternalVM()) {
continue
}

Expand Down
6 changes: 6 additions & 0 deletions managed/utils/envvars/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ func ParseEnvVars(envs []string) (envSettings *models.ChangeSettingsParams, errs
case "PMM_PUBLIC_ADDRESS":
envSettings.PMMPublicAddress = v

case "PMM_VM_URL":
_, err := url.Parse(v)
if err != nil {
err = fmt.Errorf("invalid value %q for environment variable %q", v, k)

Check failure on line 163 in managed/utils/envvars/parser.go

View workflow job for this annotation

GitHub Actions / Checks

ineffectual assignment to err (ineffassign)
}

case "NO_PROXY", "HTTP_PROXY", "HTTPS_PROXY":
continue

Expand Down

0 comments on commit 2f8fc85

Please sign in to comment.