Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 0011ba3

Browse files
authored
add commit template to Repository type (#31)
1 parent 4782ae3 commit 0011ba3

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

apis/mpas/v1alpha1/repository_types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ type RepositorySpec struct {
5858
//+kubebuilder:default:=adopt
5959
//+kubebuilder:validation:Enum=adopt;fail
6060
ExistingRepositoryPolicy ExistingRepositoryPolicy `json:"existingRepositoryPolicy,omitempty"`
61+
//+optional
62+
CommitTemplate *CommitTemplate `json:"commitTemplate,omitempty"`
63+
}
64+
65+
// CommitTemplate defines the commit template to use when automated commits are made.
66+
type CommitTemplate struct {
67+
Email string `json:"email"`
68+
Message string `json:"message"`
69+
Name string `json:"name"`
6170
}
6271

6372
// RepositoryStatus defines the observed state of Repository

apis/mpas/v1alpha1/zz_generated.deepcopy.go

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/mpas.ocm.software_repositories.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ spec:
3535
spec:
3636
description: RepositorySpec defines the desired state of Repository
3737
properties:
38+
commitTemplate:
39+
description: CommitTemplate defines the commit template to use when
40+
automated commits are made.
41+
properties:
42+
email:
43+
type: string
44+
message:
45+
type: string
46+
name:
47+
type: string
48+
required:
49+
- email
50+
- message
51+
- name
52+
type: object
3853
credentials:
3954
description: Credentials contains ways of authenticating the creation
4055
of a repository.

0 commit comments

Comments
 (0)