Skip to content

Commit

Permalink
Set gardener-metrics-exporter image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharbach committed Mar 31, 2023
1 parent f1c93a0 commit d5d57bf
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/releaser/importer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package releaser

import (
"context"
"github.com/Masterminds/semver/v3"
"gopkg.in/yaml.v3"
"os"
"os/exec"
"regexp"
"strings"

"github.com/Masterminds/semver/v3"
"gopkg.in/yaml.v3"

"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing"
"github.com/google/go-github/v36/github"
Expand Down Expand Up @@ -169,6 +170,11 @@ func ensureChart(c *chart.Chart, cfg SrcConfiguration) {
if err != nil {
logrus.Error(err)
}
case "gardener-metrics-exporter":
err := rootNode.Put("global.image.tag", cfg.Version)
if err != nil {
logrus.Error(err)
}
}
valuesSerialized, err := yaml.Marshal(rootNode.OriginalValue)
if err != nil {
Expand Down

0 comments on commit d5d57bf

Please sign in to comment.