Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include build information in image #518

Merged
merged 6 commits into from
Feb 1, 2022
Merged

Conversation

chrismuellner
Copy link
Collaborator

@chrismuellner chrismuellner commented Jan 31, 2022

  • Update package path from github.com/Dynatrace/dynatrace-operator/version to github.com/Dynatrace/dynatrace-operator/src/version
  • Move -ldflags to build args

Verify by checking for build information in the logs:

❯ kubectl logs deployment/dynatrace-operator
{"level":"info","ts":"2022-01-31T17:46:21.231Z","logger":"dynatrace-operator-version","msg":"dynatrace-operator","version":"latest","gitCommit":"4301342975c97392ca2bc878bd0653e1451c67a7","buildDate":"2022-01-31T17:39:11+00:00","goVersion":"go1.17.6","platform":"linux/amd64"}

@chrismuellner chrismuellner enabled auto-merge (squash) February 1, 2022 08:10
@chrismuellner chrismuellner merged commit 01a91c7 into master Feb 1, 2022
chrismuellner added a commit that referenced this pull request Feb 1, 2022
@chrismuellner chrismuellner deleted the fix/version-flag branch February 2, 2022 11:02
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.

2 participants