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

feat: add gitlab provider #22

Closed
wants to merge 61 commits into from

Conversation

omri2001
Copy link
Contributor

Pull Request

Description

Add support for GitLab as a provider

@omri2001 omri2001 requested a review from GoshaDo as a code owner June 18, 2024 18:29
Copy link
Contributor

@GoshaDo GoshaDo left a comment

Choose a reason for hiding this comment

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

I think that personal token, and group token can we chosen for support for now.

  1. write test
  2. add docs
  3. edit values.yaml, give context for new git provider

pkg/git_provider/gitlab_utils.go Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab.go Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab_utils.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab_utils.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab_utils.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
pkg/conf/git_provider.go Outdated Show resolved Hide resolved
@GoshaDo
Copy link
Contributor

GoshaDo commented Nov 10, 2024

add to main.go

gitClient, err := NewGitlabClient(cfg)
if err != nil {
	return nil, err
}
return gitClient, nil

Copy link
Contributor

@GoshaDo GoshaDo left a comment

Choose a reason for hiding this comment

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

need to enable the following setting for local web hooks in the cluster:

admin > network > outbound > Allow requests to the local network from webhooks and integrations

cmd/piper/piper.go Outdated Show resolved Hide resolved
pkg/git_provider/gitlab.go Outdated Show resolved Hide resolved
@omri2001 omri2001 force-pushed the add-gitlab-provider branch from 0d09c44 to 7142da3 Compare November 21, 2024 13:38
Copy link
Contributor

@GoshaDo GoshaDo 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, left some comments

.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
examples/template.values.dev.yaml Outdated Show resolved Hide resolved
.github/workflows/e2e.yaml Show resolved Hide resolved
.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
scripts/setup-gitlab.sh Outdated Show resolved Hide resolved
scripts/setup-gitlab.sh Outdated Show resolved Hide resolved
scripts/setup-gitlab.sh Outdated Show resolved Hide resolved
scripts/setup-gitlab.sh Outdated Show resolved Hide resolved
scripts/setup-gitlab.sh Outdated Show resolved Hide resolved
.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
@omri2001 omri2001 force-pushed the add-gitlab-provider branch from 955313d to 8f57832 Compare December 2, 2024 11:01
@omri2001 omri2001 force-pushed the add-gitlab-provider branch from ab97593 to a01ee2c Compare December 2, 2024 13:08
.github/workflows/e2e.yaml Outdated Show resolved Hide resolved
@@ -5,57 +5,59 @@ The helm chart populates them using [values.yaml](https://github.com/quickube/pi

### Git

* GIT_PROVIDER
Copy link
Contributor

Choose a reason for hiding this comment

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

Please review the changes in this file

@@ -1,6 +1,6 @@
## Installation

You must deploy Piper to a cluster with a pre-existing Argo Workflows deployment.
Copy link
Contributor

Choose a reason for hiding this comment

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

please review this file

@@ -27,6 +27,15 @@ var workflowTranslationToBitbucketMap = map[string]string{
"Error": "STOPPED",
Copy link
Contributor

Choose a reason for hiding this comment

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

@omri2001 agree, can you do it ?

@ssliman
Copy link
Contributor

ssliman commented Dec 24, 2024

Any idea when this is available? Looking to test this out in our environment

@GoshaDo GoshaDo closed this Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants