Skip to content

Conversation

@stlaz
Copy link
Contributor

@stlaz stlaz commented Feb 28, 2019

When either or both the OAuth and Authentication objects is not found,
don't fail and assume the defaults.


The operator's config itself is handled in #65

When either or both the OAuth and Authentication objects is not found,
don't fail and assume the defaults.
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stlaz

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-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 28, 2019
@enj
Copy link
Contributor

enj commented Feb 28, 2019

/hold

Let me update #65 so the approach I want to take here will become more clear.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 28, 2019
return nil, err
}
// did not find the object, use default
auth = defaultAuthenticationConfig()
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to create the default object (before attempting to update it's status 🙂 )

return nil, nil, nil, err
}
// did not find the object, use default
oauthConfig = defaultOAuthConfig()
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment.

},
Spec: configv1.OAuthSpec{
TokenConfig: configv1.TokenConfig{
AccessTokenMaxAgeSeconds: 86400,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: make a const, add comment about how long this is.

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 2, 2019
@openshift-ci-robot
Copy link
Contributor

@stlaz: PR needs rebase.

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.

@enj
Copy link
Contributor

enj commented Apr 24, 2019

#108

@enj enj closed this Apr 24, 2019
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. 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.

4 participants