Skip to content

Conversation

@zherman0
Copy link
Member

@zherman0 zherman0 commented Feb 5, 2019

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.

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 5, 2019
@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 5, 2019
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 5, 2019
@zherman0
Copy link
Member Author

zherman0 commented Feb 5, 2019

@spadgett @benjaminapetersen - Created a build time solution using the goflags var and using tags.

@zherman0
Copy link
Member Author

zherman0 commented Feb 5, 2019

@spadgett @benjaminapetersen - Simplified the flag situation to only have one -ocp flag. The docker rhel file uses that flag otherwise everything defaults to okd.

Copy link
Member

@spadgett spadgett left a 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

@openshift-bot
Copy link
Contributor

/retest

@zherman0
Copy link
Member Author

/test e2e-aws

package configmap

const (
BRAND = "ocp"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benjaminapetersen
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 13, 2019
@zherman0
Copy link
Member Author

/test e2e-aws

1 similar comment
@zherman0
Copy link
Member Author

/test e2e-aws

@zherman0
Copy link
Member Author

flake
/test e2e-aws

@benjaminapetersen
Copy link
Contributor

/retest

@benjaminapetersen
Copy link
Contributor

@zherman0 this will need a rebase. There is a small conflict now, its likely just updating the getBrand() func, to return your new BRAND const instead of defaultBrand.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2019
package configmap

const (
BRAND = "ocp"
Copy link
Contributor

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/".

Copy link
Contributor

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.

Copy link
Contributor

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.

@zherman0
Copy link
Member Author

/retest

@benjaminapetersen
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2019
@openshift-ci-robot
Copy link
Contributor

[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

Details 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-merge-robot openshift-merge-robot merged commit 636eb08 into openshift:master Feb 14, 2019
@benjaminapetersen
Copy link
Contributor

bam, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants