-
Notifications
You must be signed in to change notification settings - Fork 150
Add Goflag option to define branding at build time #126
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
Conversation
|
@spadgett @benjaminapetersen - Created a build time solution using the goflags var and using tags. |
|
@spadgett @benjaminapetersen - Simplified the flag situation to only have one -ocp flag. The docker rhel file uses that flag otherwise everything defaults to okd. |
spadgett
left a comment
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.
@benjaminapetersen do you know how these scripts get updated in the different repos? wondering if we will lose the change here if we ever update the hack scripts
|
/retest |
|
/test e2e-aws |
| package configmap | ||
|
|
||
| const ( | ||
| BRAND = "ocp" |
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.
for ref, this BRAND will be the fallback for getBrand() from:
https://github.com/openshift/console-operator/pull/134/files#diff-bc08d2d514ac5156db922f45487af976R46
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.
Are you sure this is resolved? I would have expected to see an update to configmap.go in this PR.
| package configmap | ||
|
|
||
| const ( | ||
| BRAND = "okd" |
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 |
|
/test e2e-aws |
1 similar comment
|
/test e2e-aws |
|
flake |
|
/retest |
|
@zherman0 this will need a rebase. There is a small conflict now, its likely just updating the |
| package configmap | ||
|
|
||
| const ( | ||
| BRAND = "ocp" |
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.
Got me curious about the default docs URL as well... if that should be toggled for ocp vs okd. Currently in configmap.go its just "https://docs.okd.io/4.0/".
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.
@ahardin-rh helped dig up this alternative URL: https://docs.openshift.com/container-platform/4.0/welcome/index.html
I don't know yet if we should use or not (it is also password protected). Fishing around for this.
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.
@zherman0 yes, I believe this is the correct URL to use. It is password protected for now as it is under active dev. It will not be later.
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen, zherman0 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
bam, merged. |
Add Goflag option to define branding at build time. Docker rhel file has been updated to provide ocp branding.
Usage: ADDITIONAL_GOTAGS="ocp" make WHAT="cmd/console"
$ console version
ConsoleOperator v0.0.1
Git Commit: 6cf4377
Build Date: 2019-02-05T20:08:03Z
Current Brand Setting: ocp
Tag option: ocp
This solution uses tags in the build process.
Additionally, updated the console version helper tool to show current Git Commit value, build date, and the brand setting.