Skip to content
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 2026860: ocp provider: don't fail client creation if oauth-server cert is not present #238

Merged
merged 1 commit into from
Jan 19, 2022

Conversation

stlaz
Copy link

@stlaz stlaz commented Jan 6, 2022

Newer oauth-proxy versions can be used in older clusters where
the oauth-server certificate is not present. We should not fail
client creation in those cases.

/assign @s-urbaniak
/cc @openshift/openshift-team-multi-cluster-maintainers

…present

Newer oauth-proxy versions can be used in older clusters where
the oauth-server certificate is not present. We should not fail
client creation in those cases.
@openshift-ci openshift-ci bot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Jan 6, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jan 6, 2022

@stlaz: This pull request references Bugzilla bug 2026860, 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
  • bug is open, matching expected state (open)
  • bug target release (4.10.0) matches configured target release for branch (4.10.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact:
/cc @xingxingxia

In response to this:

Bug 2026860: ocp provider: don't fail client creation if oauth-server cert is not present

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.

@openshift-ci openshift-ci bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Jan 6, 2022
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 6, 2022
@stlaz
Copy link
Author

stlaz commented Jan 6, 2022

/test unit

@openshift-ci
Copy link

openshift-ci bot commented Jan 6, 2022

@stlaz: all tests passed!

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

Copy link

@ibihim ibihim left a comment

Choose a reason for hiding this comment

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

/lgtm

@@ -157,12 +158,16 @@ func (p *OpenShiftProvider) newOpenShiftClient() (*http.Client, error) {
return nil, err
}

cachedKey := metadataHash
Copy link

Choose a reason for hiding this comment

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

nit: I appreciate the copying of data before mutation, but it is not necessary anymore.

if ok := pool.AppendCertsFromPEM([]byte(oauthServerCert.Data["ca-bundle.crt"])); !ok {
log.Println("failed to add the oauth-server certificate to the OpenShift client CA bundle")
if oauthServerCert != nil {
if ok := pool.AppendCertsFromPEM([]byte(oauthServerCert.Data["ca-bundle.crt"])); !ok {
Copy link

Choose a reason for hiding this comment

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

nit: "ca-bundle.crt" should be a const.

@openshift-ci
Copy link

openshift-ci bot commented Jan 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ibihim, stlaz

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 19, 2022
@openshift-merge-robot openshift-merge-robot merged commit 799d414 into openshift:master Jan 19, 2022
@openshift-ci
Copy link

openshift-ci bot commented Jan 19, 2022

@stlaz: All pull requests linked via external trackers have merged:

Bugzilla bug 2026860 has been moved to the MODIFIED state.

In response to this:

Bug 2026860: ocp provider: don't fail client creation if oauth-server cert is not present

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.

@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build golang-github-openshift-oauth-proxy-container-v4.10.0-202305011254.p0.g799d414.assembly.stream for distgit golang-github-openshift-oauth-proxy.
All builds following this will include this PR.

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. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants