-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated tiltfile and added github repositroy support
- Loading branch information
Showing
9 changed files
with
196 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ local_resource( | |
"main.go", | ||
"go.mod", | ||
"go.sum", | ||
"api", | ||
"apis", | ||
"controllers", | ||
"pkg", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Open Component Model contributors. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
const ( | ||
// RepositoryCreateFailedReason is used when we fail to create a Repository. | ||
RepositoryCreateFailedReason = "RepositoryCreateFailed" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: mpas.ocm.software/v1alpha1 | ||
kind: Repository | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: repository | ||
app.kubernetes.io/instance: repository-sample | ||
app.kubernetes.io/part-of: git-controller | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: git-controller | ||
name: repository-sample | ||
spec: | ||
# TODO(user): Add fields here | ||
credentials: | ||
secretRef: | ||
name: github-creds | ||
interval: 10m | ||
owner: Skarlso | ||
provider: github | ||
repositoryName: new-repository-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
package providers | ||
|
||
import "context" | ||
import ( | ||
"context" | ||
|
||
mpasv1alpha1 "github.com/open-component-model/git-controller/apis/mpas/v1alpha1" | ||
) | ||
|
||
// Provider adds the ability to create repositories and pull requests. | ||
type Provider interface { | ||
CreateRepository(ctx context.Context, owner, repo string) error | ||
CreateRepository(ctx context.Context, spec mpasv1alpha1.Repository) error | ||
CreatePullRequest(ctx context.Context, owner, repo, title, branch, description string) error | ||
} |