Skip to content
Open
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
16 changes: 16 additions & 0 deletions config/crd/bases/infra.nephio.org_repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,22 @@ spec:
spec:
description: RepositorySpec defines the desired state of Repository
properties:
org:
description: Org is the organization/owner name for the repository
type: string
provider:
default: gitea
description: Provider specifies the git provider type (gitea, github,
gitlab)
enum:
- gitea
- github
- gitlab
type: string
url:
description: URL is the base URL for the git provider API (required
for gitea, optional for github/gitlab)
type: string
defaultBranch:
description: DefaultBranch of the repository (used when initializes
and in template)
Expand Down
11 changes: 11 additions & 0 deletions infra/v1alpha1/repository_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ const (

// RepositorySpec defines the desired state of Repository
type RepositorySpec struct {
// Provider specifies the git provider type (gitea, github, gitlab)
// +optional
// +kubebuilder:validation:Enum=gitea;github;gitlab
// +kubebuilder:default=gitea
Provider *string `json:"provider,omitempty" yaml:"provider,omitempty"`
// URL is the base URL for the git provider API (required for gitea, optional for github/gitlab)
// +optional
URL *string `json:"url,omitempty" yaml:"url,omitempty"`
// Org is the organization/owner name for the repository
// +optional
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
// Lifecycle determines the deletion lifecycle policies the resource
// will follow
Lifecycle commonv1alpha1.Lifecycle `json:"lifecycle,omitempty"`
Expand Down