Skip to content

Conversation

@ravidbro
Copy link

@ravidbro ravidbro commented Dec 2, 2020

This PR adds the ability to pass CLUSTER_PROFILE as env var to the installer which will be propagated as env var to the CVO rendering.

Following the enhancements:
openshift/enhancements#200
openshift/enhancements#543

Signed-off-by: Ravid Brown [email protected]

Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

The enhancement linked deals with how the CVO gets the cluster profile. Is there an enhancement discussing how the installer figures out the cluster profile to use? Historically, the use of environment variables to direct installer behavior has been discouraged.

@ravidbro
Copy link
Author

ravidbro commented Dec 2, 2020

The enhancement linked deals with how the CVO gets the cluster profile. Is there an enhancement discussing how the installer figures out the cluster profile to use? Historically, the use of environment variables to direct installer behavior has been discouraged.

It was discussed in the internal slack if it should be added to the installer API (install-config) and it was recommended to start with the environment variable to avoid changing API.

@ravidbro ravidbro force-pushed the add_cluster_profile branch 2 times, most recently from 11053b7 to c71d76b Compare December 2, 2020 20:30
@romfreiman
Copy link

@ravidbro
Copy link
Author

ravidbro commented Dec 2, 2020

@staebler I updated the enhancement in the PR description and fixed all code comments

@staebler
Copy link
Contributor

staebler commented Dec 2, 2020

openshift/enhancements#543 @staebler

Thanks. I commented on the enhancement.

By the way, if we do end up sticking with using an environment variable, it should have a more specific name, like OPENSHIFT_INSTALL_CLUSTER_PROFILE_OVERRIDE.

@ravidbro ravidbro force-pushed the add_cluster_profile branch from c71d76b to 2be57b9 Compare December 2, 2020 21:59
@ravidbro
Copy link
Author

ravidbro commented Dec 2, 2020

updated the environment variable name and added a warning

@romfreiman
Copy link

/retest

Copy link
Contributor

Choose a reason for hiding this comment

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

Superfluous newline.

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is still somewhat experimental, let's omit the environment variable in the CVO pod unless the user has set the cluster profile.

Copy link
Author

Choose a reason for hiding this comment

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

changed

@ravidbro ravidbro force-pushed the add_cluster_profile branch from 2be57b9 to bec31ee Compare December 3, 2020 19:01
Copy link
Member

Choose a reason for hiding this comment

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

Probably want to include %q for cp in this message with:

logrus.Warnf("Found override for Cluster Profile: %q", cp)

No need for Please be warned; it's already a warning-level log, and logrus will set level=warning or whatever.

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@romfreiman
Copy link

/retest

Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

I like Trevor's suggestions for fixing up the warning log event. Other than that, it looks good.

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 3, 2020
@ravidbro ravidbro force-pushed the add_cluster_profile branch from bec31ee to 102c615 Compare December 3, 2020 20:54
Copy link
Contributor

@staebler staebler left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 3, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: staebler

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

@romfreiman
Copy link

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@romfreiman
Copy link

/retest

1 similar comment
@ravidbro
Copy link
Author

ravidbro commented Dec 4, 2020

/retest

@openshift-merge-robot
Copy link
Contributor

openshift-merge-robot commented Dec 4, 2020

@ravidbro: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-crc 102c615 link /test e2e-crc

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@ravidbro
Copy link
Author

ravidbro commented Dec 4, 2020

/skip

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants