-
Couldn't load subscription status.
- Fork 98
WIP: OCPBUGS-60903: v2/version: output ocp release version #1266
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
base: main
Are you sure you want to change the base?
Conversation
|
@r4f4: This pull request references Jira Issue OCPBUGS-60903, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: r4f4 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 |
|
/jira refresh |
|
@r4f4: This pull request references Jira Issue OCPBUGS-60903, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
|
@r4f4: This pull request references Jira Issue OCPBUGS-60903, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: 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 openshift-eng/jira-lifecycle-plugin repository. |
Let `main` finish and call `os.Exit`
There is no reason to duplicate this definition given that we already import k8s.io/apimachinery anyway.
a9bcc62 to
b6c723e
Compare
The binary must have one main definition of the release version variable, otherwise the substitution during binary extraction won't work.
This change makes it possible for `oc` to inject the current OCP release version information into the `oc-mirror` binary so that we can report a better version output other than just a commit hash.
b6c723e to
789c29a
Compare
|
@r4f4: The following test failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Description
A commit hash cannot be easily related to an ocp release version.
Github / Jira issue: OCPBUGS-60903
Dependencies
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
ocfrom source including the changes from OCPBUGS-60903: oc adm release extract: add oc-mirror to the tools list oc#2106oc-mirrorfrom the custom payloadExpected Outcome
The
versioncommand output contains the OCP release information whenoc-mirroris extract byocfrom the release payload.