Skip to content

Semantic version in metrics.builder label is always off by 1 #5612

@adambkaplan

Description

@adambkaplan

Bug Report

When generating the bundle.Dockerfile and annotations.yml file, the version reported in the operators.operatorframework.io.metrics.builder label does not match the version of operator-sdk.

What did you do?

Run make bundle based on the standard operator-sdk scaffolding. (ultimately calls operator-sdk generate bundle)

What did you expect to see?

Version number in operators.operatorframework.io.metrics.builder matches the version of operator-sdk that generated the bundle

What did you see instead? Under which circumstances?

Version reported is one minor version behind, plus a +git extension:

LABEL operators.operatorframework.io.metrics.builder: operator-sdk-v1.16.0+git

Environment

Operator type:

/language go

Kubernetes cluster type:

"vanilla"

$ operator-sdk version

operator-sdk version: "v1.17.0", commit: "704b02a9ba86e85f43edb1b20457859e9eedc6e6", kubernetes version: "1.21", go version: "go1.17.6", GOOS: "linux", GOARCH: "amd64"

$ go version (if language is Go)

1.17.7

Possible Solution

Additional context

Metadata

Metadata

Labels

kind/bugCategorizes issue or PR as related to a bug.language/goIssue is related to a Go operator project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions