Skip to content

Commit

Permalink
Merge pull request #417 from jenkins-x/replace_chart
Browse files Browse the repository at this point in the history
feat: support replacement of chart in version stream
  • Loading branch information
jenkins-x-bot authored May 1, 2024
2 parents 5475006 + e65a9bf commit 6ecc0d5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkg/versionstream/version_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ package versionstream

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"sort"
"strings"

"github.com/blang/semver"
"github.com/jenkins-x/jx-helpers/v3/pkg/files"
Expand All @@ -11,12 +16,6 @@ import (
"github.com/jenkins-x/jx-logging/v3/pkg/log"
"github.com/pkg/errors"
"sigs.k8s.io/yaml"

"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
)

// Callback a callback function for processing version information. Return true to continue processing
Expand Down Expand Up @@ -60,6 +59,11 @@ var (

// StableVersion stores the stable version information
type StableVersion struct {
// Indicates that this chart is deprecated and should be replaced with ReplacementChart
ReplacementChart string `json:"replacementChart,omitempty"`
// ReplacementChartPrefix can hold a replacement chart prefix in case ReplacementChart is set
ReplacementChartPrefix string `json:"replacementChartPrefix,omitempty"`

// Version the default version to use
Version string `json:"version,omitempty"`
// VersionUpperLimit represents the upper limit which indicates a version which is too new.
Expand Down

0 comments on commit 6ecc0d5

Please sign in to comment.