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
Bug 1811898: cmd/machine-config-operator: log RELEASE_VERSION when starting up #1551
Bug 1811898: cmd/machine-config-operator: log RELEASE_VERSION when starting up #1551
Conversation
Other subcomponents are still following the old version logging when Raw and Hash are sufficient for us to debug. This patch just changes the MCO itself to print RELEASE_VERSION at startup. We might want to revisit this for all components and bootstrap commands later but not critical either. Signed-off-by: Antonio Murdaca <runcom@linux.com>
@runcom: This pull request references Bugzilla bug 1811898, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, if I understand this correctly os.Getenv("RELEASE_VERSION") is just getting an environment variable. In this case nothing is setting RELEASE_VERSION no? I logged in to a node and can see that its empty by default. Wouldn't this just be empty?
that env is injected into the MCO pod (not whole node) - you can look at its injection in the MCO manifest itself. When the MCO starts it reads the env and prints it, it's also later used in the code. The version is set by the release payload builder.
it now prints the version (and it does so at bootstrap as well). /retest |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: runcom, yuqi-zhang 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@runcom: All pull requests linked via external trackers have merged: openshift/machine-config-operator#1551. Bugzilla bug 1811898 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Other subcomponents are still following the old version logging when Raw and Hash
are sufficient for us to debug. This patch just changes the MCO itself to print
RELEASE_VERSION at startup. We might want to revisit this for all components and
bootstrap commands later but not critical either.
Signed-off-by: Antonio Murdaca runcom@linux.com