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

NETOBSERV-107 Add version information #51

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

jotak
Copy link
Member

@jotak jotak commented Feb 4, 2022

JIRA https://issues.redhat.com/browse/NETOBSERV-107

version information is added in several places:

  • via kustomize, as label on the operator (manager) itself
  • through build ldflags, to the main package, logged for information
    (both in "make build" and "make image-build")
  • in deployed components (goflow-kube and console plugin) as k8s label
    (note that the version here is taken from the images defined in CR, which can
    be different from the operator version)
  • lastly, I updated the helper target make create-sample so that it can use a custom version from env

Use the VERSION env in make targets to set a specific version
(e.g. VERSION="0.1.0-test" IMAGE_TAG_BASE="quay.io/jotak/network-observability-operator" make image-build image-push deploy)

version information is added in several places:
- via kustomize, as label on the operator (manager) itself
- through build ldflags, to the main package, logged for information
  (both in "make build" and "make image-build")
- in deployed components (goflow-kube and console plugin) as k8s label
  (note that the version here is taken from the images defined in CR, which can
be different from the operator version)

Use the VERSION env in make targets to set a specific version
(e.g. VERSION="0.1.0-test" IMAGE_TAG_BASE="quay.io/jotak/network-observability-operator" make image-build image-push deploy)
@jotak jotak added the no-qe This PR doesn't necessitate QE approval label Feb 4, 2022
@jotak
Copy link
Member Author

jotak commented Feb 4, 2022

FYI I had to upgrade kustomize but it seems that we need to manually remove it from our go bin path and ./bin/kustomize to make it work

This PR is only a part of the changes needed for NETOBSERV-107. More work is needed on CI side. Potentially also in goflow-kube / console plugin

@jotak
Copy link
Member Author

jotak commented Feb 7, 2022

/approve

@openshift-ci
Copy link

openshift-ci bot commented Feb 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Feb 7, 2022
@openshift-merge-robot openshift-merge-robot merged commit 173e88d into netobserv:main Feb 7, 2022
@jotak jotak deleted the add-version-info branch April 1, 2022 07:08
KalmanMeth pushed a commit to KalmanMeth/network-observability-operator that referenced this pull request Feb 13, 2023
improve the code ...adding packets and SequenceNum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm no-qe This PR doesn't necessitate QE approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants