We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4627af + 41fe227 commit 1993775Copy full SHA for 1993775
pkg/manager/types.go
@@ -2,6 +2,7 @@ package manager
2
3
import (
4
"fmt"
5
+ "strings"
6
7
"github.com/rancher/csp-adapter/pkg/clients/k8s"
8
)
@@ -47,5 +48,7 @@ func GetDefaultSupportConfig(client k8s.Client) CSPSupportConfig {
47
48
}
49
50
func createProductString(rancherVersion string) string {
- return fmt.Sprintf("cpe:/o:suse:rancher:%s", rancherVersion)
51
+ // rancher version that comes from k8s is prefixed with a v, but suse lists the product version without a v
52
+ productVersion := strings.TrimPrefix(rancherVersion, "v")
53
+ return fmt.Sprintf("cpe:/o:suse:rancher:%s", productVersion)
54
0 commit comments