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

create apiservice controller #275

Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Dec 9, 2019

Separate the apiservices into a different control loop so we can re-use it for the oauth-apiserver

/assign @p0lyn0mial @sanchezl @sohankunkerkar

@openshift-ci-robot
Copy link

@deads2k: GitHub didn't allow me to assign the following users: sohankunkerkar.

Note that only openshift members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

Separate the apiservices into a different control loop so we can re-use it for the oauth-apiserver

/assign @p0lyn0mial @sanchezl @sohankunkerkar

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-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 9, 2019
@deads2k deads2k force-pushed the apiservice-controller branch 2 times, most recently from 31d2010 to 3cccf75 Compare December 17, 2019 15:08
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 17, 2019
@deads2k
Copy link
Contributor Author

deads2k commented Dec 19, 2019

/retest

Copy link
Member

@stlaz stlaz left a comment

Choose a reason for hiding this comment

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

looks good, only found two minor issues


for _, condition := range apiService.Status.Conditions {
if condition.Type == apiregistrationv1.Available {
if condition.Status == apiregistrationv1.ConditionFalse {
Copy link
Member

Choose a reason for hiding this comment

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

it could still be ConditionUnknown, shall we check for != ConditionTrue instead?


// if the apiservices themselves check out ok, try to actually hit the discovery endpoints. We have a history in clusterup
// of something delaying them. This isn't perfect because of round-robining, but let's see if we get an improvement
if len(availableConditionMessages) == 0 && c.kubeClient.Discovery().RESTClient() != nil {
Copy link
Member

Choose a reason for hiding this comment

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

availableConditionMessages will always be of len 0 here

}
}
if !exists {
coordinates = append(coordinates)
Copy link
Member

Choose a reason for hiding this comment

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

append(coordinates, curr)?

@stlaz
Copy link
Member

stlaz commented Jan 3, 2020

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, 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-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 3, 2020
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Jan 3, 2020
@openshift-merge-robot openshift-merge-robot merged commit 94fa8c2 into openshift:master Jan 3, 2020
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/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants