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

fix: change rookout to quickube #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
--set piper.gitProvider.token="${{ secrets.GIT_TOKEN }}" \
--set piper.gitProvider.webhook.url="${{ env.NGROK_URL }}/piper/webhook" \
--set piper.gitProvider.webhook.repoList={piper-e2e-test} \
--set piper.gitProvider.organization.name="rookout" \
--set piper.gitProvider.organization.name="quickube" \
--set image.repository=localhost:5001 \
--set piper.argoWorkflows.server.address="${{ env.NGROK_URL }}/argo" \
--set-string env\[0\].name=GIT_WEBHOOK_AUTO_CLEANUP,env\[0\].value="true" && \
Expand All @@ -93,15 +93,15 @@ jobs:
--timeout=60s
- uses: actions/checkout@v3
with:
repository: 'rookout/piper-e2e-test'
repository: 'quickube/piper-e2e-test'
path: piper-e2e-test
ref: 'main'
- name: inject some changes to piper-e2e-test repo
run: |
cd ./piper-e2e-test
echo "" >> .workflows/triggers.yaml
git config user.name 'e2e-test'
git config user.email 'sonario@rookout.com'
git config user.email 'goshatoo@gmail.com'
git commit -am "trigger e2e test"
- name: Create Pull Request
id: cpr
Expand All @@ -117,7 +117,7 @@ jobs:
with:
token: ${{ secrets.GIT_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
repository: 'rookout/piper-e2e-test'
repository: 'quickube/piper-e2e-test'
comment: Auto-closing pull request
delete-branch: true
- name: Check Result
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: rookout/piper
images: quickube/piper
- name: Build and export
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: rookout/piper:${{ github.ref_name }},latest
tags: quickube/piper:${{ github.ref_name }},latest
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down
158 changes: 79 additions & 79 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ This folder should contain declarations of the templates and main DAG that will
Finally, it will submit the Workflow as a K8s resource in the cluster.
To access more detailed explanations, please navigate to the [Documentation site](https://piper.quickube.com).

https://github.com/Rookout/piper/assets/106976988/09b3a5d8-3428-4bdc-9146-3034d81164bf
https://github.com/quickube/piper/assets/106976988/09b3a5d8-3428-4bdc-9146-3034d81164bf

## Reporting Issues

If you encounter any issues or bugs while using Piper, please help us improve by reporting them. Follow these steps to report an issue:

1. Go to the [Piper Issues](https://github.com/Rookout/Piper/issues) page on GitHub.
1. Go to the [Piper Issues](https://github.com/quickube/Piper/issues) page on GitHub.
2. Click on the "New Issue" button.
3. Provide a descriptive title and detailed description of the issue, including any relevant error messages or steps to reproduce the problem.
4. Add appropriate labels to categorize the issue (e.g., bug, enhancement, question).
Expand Down
14 changes: 7 additions & 7 deletions cmd/piper/piper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package main

import (
rookout "github.com/Rookout/GoSDK"
"github.com/rookout/piper/pkg/clients"
"github.com/rookout/piper/pkg/conf"
"github.com/rookout/piper/pkg/event_handler"
"github.com/rookout/piper/pkg/git_provider"
"github.com/rookout/piper/pkg/server"
"github.com/rookout/piper/pkg/utils"
workflowHandler "github.com/rookout/piper/pkg/workflow_handler"
"github.com/quickube/piper/pkg/clients"
"github.com/quickube/piper/pkg/conf"
"github.com/quickube/piper/pkg/event_handler"
"github.com/quickube/piper/pkg/git_provider"
"github.com/quickube/piper/pkg/server"
"github.com/quickube/piper/pkg/utils"
workflowHandler "github.com/quickube/piper/pkg/workflow_handler"
"golang.org/x/net/context"
"log"
"os/signal"
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ brew install kind
Deployment:
1. make sure docker are running.
2. create tunnel with ngrok using `make ngrok`, save the `Forwarding` address.
3. create `values.dev.yaml` file that contains subset of chart's `value.yaml` file. check [example of values file](https://github.com/Rookout/piper/tree/main/examples/template.values.dev.yaml) rename it to `values.dev.yaml` and put in root directory.
3. create `values.dev.yaml` file that contains subset of chart's `value.yaml` file. check [example of values file](https://github.com/quickube/piper/tree/main/examples/template.values.dev.yaml) rename it to `values.dev.yaml` and put in root directory.
4. use `make deploy`. it will do the following:
* deploy a local registry as container
* deploy a kind cluster as container with configuration
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration/environment_variables.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Environment Variables

The environment variables used by Piper to configure its functionality.
The helm chart populate them using [values.yaml](https://github.com/Rookout/piper/tree/main/helm-chart/values.yaml) file
The helm chart populate them using [values.yaml](https://github.com/quickube/piper/tree/main/helm-chart/values.yaml) file

### Git

Expand Down Expand Up @@ -57,4 +57,4 @@ The helm chart populate them using [values.yaml](https://github.com/Rookout/pipe
* ROOKOUT_LABELS
The labels to label instances at Rookout, default to "service:piper"
* ROOKOUT_REMOTE_ORIGIN
The repo URL for source code fetching, default:"https://github.com/Rookout/piper.git".
The repo URL for source code fetching, default:"https://github.com/quickube/piper.git".
6 changes: 3 additions & 3 deletions docs/getting_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
Piper should be deployed in the cluster with Argo Workflows.
Piper will create a CRD that Argo Workflows will pick, so install or configure Piper to create those CRDs in the right namespace.

Please check out [values.yaml](https://github.com/Rookout/piper/tree/main/helm-chart/values.yaml) file of the helm chart configurations.
Please check out [values.yaml](https://github.com/quickube/piper/tree/main/helm-chart/values.yaml) file of the helm chart configurations.

To add piper helm repo run:
```bash
helm repo add piper https://piper.quickube.com
```

After configuring Piper [values.yaml](https://github.com/Rookout/piper/tree/main/helm-chart/values.yaml), run the following command for installation:
After configuring Piper [values.yaml](https://github.com/quickube/piper/tree/main/helm-chart/values.yaml), run the following command for installation:
```bash
helm upgrade --install piper piper/piper \
-f YOUR_VALUES_FILE.yaml
Expand All @@ -26,7 +26,7 @@ Piper should listen to webhooks from your git provider.
Expose it using ingress or service, then provide the address to `piper.webhook.url` as followed:
`https://PIPER_EXPOESED_URL/webhook`

Checkout [values.yaml](https://github.com/Rookout/piper/tree/main/helm-chart/values.yaml)
Checkout [values.yaml](https://github.com/quickube/piper/tree/main/helm-chart/values.yaml)

### Git

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Introduction

<p align="center">
<img src="https://www.rookout.com/wp-content/uploads/2022/10/ArgoPipeline_1.0_Hero.png.webp?raw=true" />
<img src="https://www.quickube.com/wp-content/uploads/2022/10/ArgoPipeline_1.0_Hero.png.webp?raw=true" />
</p>

Welcome to Piper!
Expand All @@ -11,7 +11,7 @@ Piper is an open source project that aimed at providing multibranch pipeline fun
## General explanation

<p align="center">
<img src="https://raw.githubusercontent.com/Rookout/piper/main/docs/img/flow.svg" />
<img src="https://raw.githubusercontent.com/quickube/piper/main/docs/img/flow.svg" />
</p>

To achieve multibranch pipeline functionality Piper will do the hard works for us.
Expand Down
4 changes: 2 additions & 2 deletions docs/usage/workflows_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Piper can inject configuration for Workflows that Piper creates.
### ConfigMap
Piper will mount a configMap when helm used.
`piper.workflowsConfig` variable in helm chart, will create a configMap that hold set of configuration for Piper.
Here is an [examples](https://github.com/Rookout/piper/tree/main/examples/config.yaml) of such configuration.
Here is an [examples](https://github.com/quickube/piper/tree/main/examples/config.yaml) of such configuration.

### Spec
This will be injected to Workflow spec field. can hold all configuration of the Workflow.
Expand All @@ -16,4 +16,4 @@ This will be injected to Workflow spec field. can hold all configuration of the
### onExit
This is the exit handler for each of the Workflows create by piper.
It configures a DAG that will be executed when the workflow ends.
You can provide the templates to it us in the following [Examples](https://github.com/Rookout/piper/tree/main/examples/config.yaml).
You can provide the templates to it us in the following [Examples](https://github.com/quickube/piper/tree/main/examples/config.yaml).
16 changes: 8 additions & 8 deletions docs/usage/workflows_folder.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## .workflows Folder

Piper will look in each of the target branches for a `.workflows` folder. [example](https://github.com/Rookout/piper/tree/main/examples/.workflows).
Piper will look in each of the target branches for a `.workflows` folder. [example](https://github.com/quickube/piper/tree/main/examples/.workflows).
We will explain each of the files that should be included in the `.workflows` folder.

### triggers.yaml (convention name)
Expand All @@ -17,13 +17,13 @@ Piper will execute each of matching triggers, so configure it wisely.
templates: ["templates.yaml"]
config: "default"
```
Can be found [here](https://github.com/Rookout/piper/tree/main/examples/.workflows/triggers.yaml).
Can be found [here](https://github.com/quickube/piper/tree/main/examples/.workflows/triggers.yaml).
In this example `main.yaml` will be executed as DAG when `push` or `pull_request.synchronize` events will be applied in `main` branch.
`onExit` will be executed `exit.yaml` when finished the workflow as exit handler.


`onExit` can overwrite the default `onExit` configuration from by reference existing DAG tasks as in the [example](https://github.com/Rookout/piper/tree/main/examples/.workflows/exit.yaml).
`onExit` can overwrite the default `onExit` configuration from by reference existing DAG tasks as in the [example](https://github.com/quickube/piper/tree/main/examples/.workflows/exit.yaml).

`config` field used for workflow configuration selection. the default value is `default` configuration.

Expand All @@ -36,7 +36,7 @@ For instance, GitHub pull_request event have few action, one of them is synchron
For which branch that trigger will be executed.

#### onStart
This [file](https://github.com/Rookout/piper/tree/main/examples/.workflows/main.yaml) can be named as you wish and will be referenced in `triggers.yaml` file. It will define an entrypoint DAG that the Workflow will execute.
This [file](https://github.com/quickube/piper/tree/main/examples/.workflows/main.yaml) can be named as you wish and will be referenced in `triggers.yaml` file. It will define an entrypoint DAG that the Workflow will execute.

As a best practice, this file should contain the dependencies logic and parametrization of each of referenced templates. It should not implement new templates, for this, use template.yaml file.

Expand All @@ -45,15 +45,15 @@ This field used to pass verbose exitHandler to the triggered workflow.
It will override the default onExit from the provided `config` or the default `config`.

In the provided `exit.yaml` describes a DAG that will overwrite the default `onExit` configuration.
[Example](https://github.com/Rookout/piper/tree/main/examples/.workflows/exit.yaml)
[Example](https://github.com/quickube/piper/tree/main/examples/.workflows/exit.yaml)

#### templates
This field will have additional templates that will be injected to the workflows.
The purpose of this field is to create repository scope templates that can be referenced from the DAGs templates at `onStart` or `onExit`.
[Example](https://github.com/Rookout/piper/tree/main/examples/.workflows/templates.yaml)
[Example](https://github.com/quickube/piper/tree/main/examples/.workflows/templates.yaml)

As a best practice, use this field for template implementation and reference them from executed.
[Example](https://github.com/Rookout/piper/tree/main/examples/.workflows/main.yaml).
[Example](https://github.com/quickube/piper/tree/main/examples/.workflows/main.yaml).

### config
configured by `piper-workflows-config` [configMap](workflows_config.md).
Expand All @@ -63,4 +63,4 @@ Can be passed explicitly, or will use `deafault` configuration.
Will hold a list of global parameters of the Workflow.
can be referenced from any template with `{{ workflow.parameters.___ }}.`

[Example](https://github.com/Rookout/piper/tree/main/examples/.workflows/parameters.yaml)
[Example](https://github.com/quickube/piper/tree/main/examples/.workflows/parameters.yaml)
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/rookout/piper
module github.com/quickube/piper

go 1.20

Expand Down
4 changes: 2 additions & 2 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Default values for Piper.
# For more information head to https:/github.com/rookout/piper
# For more information head to https:/github.com/quickube/piper

# Map of Piper configurations.
piper:
Expand Down Expand Up @@ -97,7 +97,7 @@ image:
# -- Piper image name
name: piper
# -- Piper public dockerhub repo
repository: rookout
repository: quickube
# -- Piper image pull policy
pullPolicy: IfNotPresent
# -- Piper image tag
Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ site_name: Piper - Multibranch Pipeline for ArgoWorkflows
site_description: 'Piper project for multibranch pipeline in Argo Workflows'
site_author: 'George Dozoretz'
docs_dir: docs/
repo_url: https://github.com/rookout/piper
repo_name: rookout/piper
repo_url: https://github.com/quickube/piper
repo_name: quickube/piper
theme:
name: material
icon:
Expand Down
4 changes: 2 additions & 2 deletions pkg/clients/types.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package clients

import (
"github.com/rookout/piper/pkg/git_provider"
"github.com/rookout/piper/pkg/workflow_handler"
"github.com/quickube/piper/pkg/git_provider"
"github.com/quickube/piper/pkg/workflow_handler"
)

type Clients struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package common

import (
"github.com/rookout/piper/pkg/git_provider"
"github.com/quickube/piper/pkg/git_provider"
)

type WorkflowsBatch struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/conf/rookout.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
type RookoutConfig struct {
Token string `envconfig:"ROOKOUT_TOKEN" default:""`
Labels string `envconfig:"ROOKOUT_LABELS" default:"service:piper"`
RemoteOrigin string `envconfig:"ROOKOUT_REMOTE_ORIGIN" default:"https://github.com/Rookout/piper.git"`
RemoteOrigin string `envconfig:"ROOKOUT_REMOTE_ORIGIN" default:"https://github.com/quickube/piper.git"`
}

func (cfg *RookoutConfig) RookoutConfLoad() error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/conf/workflows_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"

"github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/rookout/piper/pkg/utils"
"github.com/quickube/piper/pkg/utils"
)

type WorkflowsConfig struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/event_handler/github_event_notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/rookout/piper/pkg/clients"
"github.com/rookout/piper/pkg/conf"
"github.com/rookout/piper/pkg/utils"
"github.com/quickube/piper/pkg/clients"
"github.com/quickube/piper/pkg/conf"
"github.com/quickube/piper/pkg/utils"
)

var workflowTranslationToGithubMap = map[string]string{
Expand Down
6 changes: 3 additions & 3 deletions pkg/event_handler/github_event_notifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package event_handler
import (
"context"
"errors"
"github.com/rookout/piper/pkg/git_provider"
"github.com/quickube/piper/pkg/git_provider"
assertion "github.com/stretchr/testify/assert"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"net/http"
"testing"

"github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/rookout/piper/pkg/clients"
"github.com/rookout/piper/pkg/conf"
"github.com/quickube/piper/pkg/clients"
"github.com/quickube/piper/pkg/conf"
)

type mockGitProvider struct{}
Expand Down
4 changes: 2 additions & 2 deletions pkg/event_handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package event_handler

import (
"context"
"github.com/rookout/piper/pkg/clients"
"github.com/rookout/piper/pkg/conf"
"github.com/quickube/piper/pkg/clients"
"github.com/quickube/piper/pkg/conf"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"log"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/event_handler/workflow_event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package event_handler
import (
"fmt"
"github.com/argoproj/argo-workflows/v3/pkg/apis/workflow/v1alpha1"
"github.com/rookout/piper/pkg/clients"
"github.com/quickube/piper/pkg/clients"
"golang.org/x/net/context"
"k8s.io/apimachinery/pkg/watch"
"log"
Expand Down
4 changes: 2 additions & 2 deletions pkg/git_provider/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"encoding/json"
"fmt"
"github.com/ktrysmt/go-bitbucket"
"github.com/rookout/piper/pkg/conf"
"github.com/rookout/piper/pkg/utils"
"github.com/quickube/piper/pkg/conf"
"github.com/quickube/piper/pkg/utils"
"github.com/tidwall/gjson"
"golang.org/x/net/context"
"io"
Expand Down
4 changes: 2 additions & 2 deletions pkg/git_provider/bitbucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"fmt"
"github.com/ktrysmt/go-bitbucket"
"github.com/rookout/piper/pkg/conf"
"github.com/rookout/piper/pkg/utils"
"github.com/quickube/piper/pkg/conf"
"github.com/quickube/piper/pkg/utils"
assertion "github.com/stretchr/testify/assert"
"golang.org/x/net/context"
"net/http"
Expand Down
4 changes: 2 additions & 2 deletions pkg/git_provider/bitbucket_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package git_provider
import (
"fmt"
bitbucket "github.com/ktrysmt/go-bitbucket"
"github.com/rookout/piper/pkg/conf"
"github.com/rookout/piper/pkg/utils"
"github.com/quickube/piper/pkg/conf"
"github.com/quickube/piper/pkg/utils"
"log"
"net/http"
"strings"
Expand Down
Loading