Skip to content

Commit

Permalink
feat: add cone option to content.git
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Dec 19, 2024
1 parent 0330347 commit 3f7ea29
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 161 deletions.
2 changes: 2 additions & 0 deletions api/testworkflows/v1/content_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type ContentGit struct {
AuthType testsv3.GitAuthType `json:"authType,omitempty" expr:"template"`
// where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
MountPath string `json:"mountPath,omitempty" expr:"template"`
// enable cone mode for sparse checkout with paths
Cone bool `json:"cone,omitempty" expr:"ignore"`
// paths to fetch for the sparse checkout
Paths []string `json:"paths,omitempty" expr:"template"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ spec:
description: test workflow execution id
type: string
executionPath:
description: all test workflow execution ids starting
from the root
description: all test workflow execution ids starting from the root
type: string
name:
description: actor name
Expand Down Expand Up @@ -103,7 +102,7 @@ spec:
- internal
type: string
required:
- type
- type
type: object
required:
- actor
Expand Down Expand Up @@ -365,14 +364,13 @@ spec:
description: test workflow execution id
type: string
executionPath:
description: all test workflow execution ids starting
from the root
description: all test workflow execution ids starting from the root
type: string
name:
description: actor name
type: string
type:
description: supported actors for test workflow running context'
description: supported actors for test workflow running context
enum:
- cron
- testtrigger
Expand Down
24 changes: 24 additions & 0 deletions config/crd/bases/testworkflows.testkube.io_testworkflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -2148,6 +2151,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -3655,6 +3661,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -4441,6 +4450,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -5852,6 +5864,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -7602,6 +7617,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -9068,6 +9086,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down Expand Up @@ -10818,6 +10839,9 @@ spec:
- basic
- header
type: string
cone:
description: enable cone mode for sparse checkout with paths
type: boolean
mountPath:
description: where to mount the fetched repository contents (defaults to "repo" directory in the data volume)
type: string
Expand Down
Loading

0 comments on commit 3f7ea29

Please sign in to comment.