Skip to content

Conversation

jonathan-innis
Copy link
Member

Fixes #N/A

Description

This PR enables version to be specified and injected during the binary build to log the version and add the version to the userAgent that is stored in the metadata information when Karpenter makes calls to the apiserver.

You can inject the version when you build the binary by running the following:

go build cmd/controller/main.go GOFLAGS="-ldflags=-X=github.com/aws/karpenter-core/pkg/operator.Version=$(shell git describe --tags --always)"

How was this change tested?

make apply

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jonathan-innis jonathan-innis requested a review from a team as a code owner October 19, 2023 06:58
@jonathan-innis jonathan-innis requested a review from tzneal October 19, 2023 06:58
@jonathan-innis jonathan-innis force-pushed the enable-version-in-useragent branch from c1418a8 to 206af5e Compare October 19, 2023 06:59
@jonathan-innis jonathan-innis enabled auto-merge (squash) October 19, 2023 06:59
@coveralls
Copy link

coveralls commented Oct 19, 2023

Pull Request Test Coverage Report for Build 6570988105

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.321%

Totals Coverage Status
Change from base Build 6570607328: 0.0%
Covered Lines: 9187
Relevant Lines: 11160

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants