Skip to content

Commit

Permalink
Merge pull request #23 from gardener-community/add-gardener-metrics-e…
Browse files Browse the repository at this point in the history
…xporter

Set gardener-metrics-exporter image tag
  • Loading branch information
lotharbach authored Mar 31, 2023
2 parents f1c93a0 + d5d57bf commit 8c39984
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 8c39984

Please sign in to comment.