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

snip dependencies in a future library-go package #19750

Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented May 17, 2018

pkg/serviceaccounts/oauthclient is used by the oauthserver and the oauth apiserver. We need to snip the kube and origin links in order to move it to library-go in a shared location.

@openshift/sig-security
/assign @simo5 @enj

@openshift-ci-robot openshift-ci-robot added sig/security approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 17, 2018
@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 17, 2018
}
}
return tokens, nil
}

// IsServiceAccountToken returns true if the secret is a valid api token for the service account
func IsServiceAccountToken(secret *corev1.Secret, sa *corev1.ServiceAccount) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why we need to make this function public ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a reason why we need to make this function public ?

Not at the present time. It is a copy from upstream kube/kube.

@simo5
Copy link
Contributor

simo5 commented May 17, 2018

up to you if you want to keep the function public or private
/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label May 17, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, simo5

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-merge-robot openshift-merge-robot merged commit 2a7574c into openshift:master May 17, 2018
@deads2k deads2k deleted the oauth-07-dependent-lib-snip branch July 3, 2018 17:48
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. sig/security 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.

None yet

5 participants