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

Add github enterprise support #275

Merged
merged 3 commits into from
Jun 30, 2021
Merged

Conversation

vinamra28
Copy link
Member

@vinamra28 vinamra28 commented Jun 9, 2021

Changes

API

  • Read enterprise url from env and if not provided default to github.com
  • Configure oauth2 on the basis of github host
  • Create enterprise client in case of enterprise auth else normal github client
  • generate raw url of the resource on the basis web url provided
  • update the deployment manifests

UI

  • update the deployment manifests
  • read enterprise url from env
  • use react-ghe-login in place of react-github-login

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

@tekton-robot tekton-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 9, 2021
@vinamra28 vinamra28 force-pushed the add-ghe-support branch 2 times, most recently from 28c2bdf to bf57dff Compare June 9, 2021 14:09
@vinamra28
Copy link
Member Author

/retest

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 10, 2021
api/pkg/app/app.go Outdated Show resolved Hide resolved
api/pkg/service/auth/auth.go Outdated Show resolved Hide resolved
api/pkg/service/auth/auth.go Outdated Show resolved Hide resolved
api/pkg/service/auth/auth.go Outdated Show resolved Hide resolved
@vinamra28 vinamra28 force-pushed the add-ghe-support branch 2 times, most recently from c6e713a to e87bb75 Compare June 15, 2021 13:52
api/pkg/app/app.go Outdated Show resolved Hide resolved
api/pkg/app/app.go Outdated Show resolved Hide resolved
api/pkg/app/app.go Outdated Show resolved Hide resolved
api/pkg/app/app.go Outdated Show resolved Hide resolved
Copy link
Member

@PuneetPunamiya PuneetPunamiya left a comment

Choose a reason for hiding this comment

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

Thanks for the patch 🤙🏻
A couple of comments to address else the pr looks fine to me

api/pkg/app/app.go Outdated Show resolved Hide resolved
@pratap0007
Copy link
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2021
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 16, 2021
Copy link
Member

@PuneetPunamiya PuneetPunamiya left a comment

Choose a reason for hiding this comment

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

One nit check else looks fine to me

@PuneetPunamiya
Copy link
Member

Thanks for the patch 🤙🏻
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2021
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2021
@vinamra28 vinamra28 force-pushed the add-ghe-support branch 5 times, most recently from 0375ad9 to 1959882 Compare June 25, 2021 06:13
- Read enterprise url from env and if not provided default to github.com
- Configure oauth2 on the basis of github host
- Create enterprise client in case of enterprise auth else normal github client
- generate raw url of the resource on the basis web url provided
- update the deployment manifests

Signed-off-by: vinamra28 <[email protected]>
- update the deployment manifests
- read enterprise url from env
- use `react-ghe-login` in place of `react-github-login`

Signed-off-by: vinamra28 <[email protected]>
@sm43
Copy link
Member

sm43 commented Jun 29, 2021

/approve
/meow

@tekton-robot
Copy link

@sm43: cat image

In response to this:

/approve
/meow

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.

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sm43

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 29, 2021
@PuneetPunamiya
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 30, 2021
@tekton-robot tekton-robot merged commit 9efe95c into tektoncd:main Jun 30, 2021
@vinamra28 vinamra28 deleted the add-ghe-support branch June 30, 2021 14:36
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants