Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/stretchr/testify v1.11.1
github.com/tidwall/gjson v1.19.0
github.com/werf/nelm v1.25.0
github.com/werf/nelm v1.25.2
google.golang.org/protobuf v1.36.11
gopkg.in/yaml.v3 v3.0.1
helm.sh/helm/v3 v3.17.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ github.com/werf/lockgate v0.1.1 h1:S400JFYjtWfE4i4LY9FA8zx0fMdfui9DPrBiTciCrx4=
github.com/werf/lockgate v0.1.1/go.mod h1:0yIFSLq9ausy6ejNxF5uUBf/Ib6daMAfXuCaTMZJzIE=
github.com/werf/logboek v0.6.1 h1:oEe6FkmlKg0z0n80oZjLplj6sXcBeLleCkjfOOZEL2g=
github.com/werf/logboek v0.6.1/go.mod h1:Gez5J4bxekyr6MxTmIJyId1F61rpO+0/V4vjCIEIZmk=
github.com/werf/nelm v1.25.0 h1:Wpty5IThQrNp1yf0xyrHHs0oiepajtndJXthESZZowc=
github.com/werf/nelm v1.25.0/go.mod h1:D3uU5e1dSBc0l0oo/iB6SjM2sLaXICqRDSWXAYF+vpk=
github.com/werf/nelm v1.25.2 h1:P7U5V7/8O4qFmCEqhpXkjaNuBQDDHg+iHYktUfD9O7k=
github.com/werf/nelm v1.25.2/go.mod h1:D3uU5e1dSBc0l0oo/iB6SjM2sLaXICqRDSWXAYF+vpk=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
Expand Down
14 changes: 14 additions & 0 deletions pkg/helm/nelm/nelm.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ func (c *NelmClient) UpgradeRelease(releaseName, modulePath string, valuesPaths
slog.String(pkg.LogKeyChart, modulePath),
slog.String(pkg.LogKeyNamespace, namespace))

file, err := os.ReadFile(installGraphPath)
if err != nil {
logger.Error("failed to read install graph file", slog.String("path", installGraphPath), log.Err(err))
} else {
logger.Debug("nelm graph file", slog.Any("graph", string(file)))
}
Comment on lines +402 to +407

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be wrapped in if os.Getenv(nelmDependencyGraphEnabled) == "true"


return nil
}

Expand Down Expand Up @@ -499,6 +506,13 @@ func (c *NelmClient) DeleteRelease(releaseName string) error {

c.logger.Debug("nelm release deleted", slog.String(pkg.LogKeyRelease, releaseName))

file, err := os.ReadFile(installGraphPath)
if err != nil {
c.logger.Error("failed to read install graph file", slog.String("path", installGraphPath), log.Err(err))
} else {
c.logger.Debug("nelm graph file", slog.Any("graph", string(file)))
}
Comment on lines +509 to +514

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be wrapped in if os.Getenv(nelmDependencyGraphEnabled) == "true"


return nil
}

Expand Down
Loading