Skip to content

Commit

Permalink
rename sparseCheckoutDir from StarterProject (#129)
Browse files Browse the repository at this point in the history
* SparseCheckoutDirs for project and SubDir for StarterProject

this also changes SparseCheckoutDirs to list to allow specifing mulitple
directories

* update generated schemas
  • Loading branch information
kadel authored Oct 20, 2020
1 parent f42d9a0 commit 77074ba
Show file tree
Hide file tree
Showing 17 changed files with 330 additions and 826 deletions.
83 changes: 19 additions & 64 deletions crds/workspace.devfile.io_devworkspaces.v1beta1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3114,10 +3114,6 @@ spec:
in the git project. Must have at least one remote
configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
github:
description: Project's GitHub source
Expand Down Expand Up @@ -3146,10 +3142,6 @@ spec:
in the git project. Must have at least one remote
configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
name:
description: Project name
Expand All @@ -3161,17 +3153,19 @@ spec:
- Github
- Zip
type: string
sparseCheckoutDirs:
description: Populate the project sparsely with selected
directories.
items:
type: string
type: array
zip:
description: Project's Zip source
properties:
location:
description: Zip project's source location address.
Should be file path of the archive, e.g. file://$FILE_PATH
type: string
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
required:
- name
Expand All @@ -3192,14 +3186,6 @@ spec:
- required:
- zip
properties:
clonePath:
description: Path relative to the root of the projects
to which this project should be cloned into. This is
a unix-style relative path (i.e. uses forward slashes).
The path is invalid if it is absolute or tries to escape
the project root through the usage of '..'. If not specified,
defaults to the project name.
type: string
description:
description: Description of a starter project
type: string
Expand Down Expand Up @@ -3230,10 +3216,6 @@ spec:
in the git project. Must have at least one remote
configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
github:
description: Project's GitHub source
Expand Down Expand Up @@ -3262,10 +3244,6 @@ spec:
in the git project. Must have at least one remote
configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
name:
description: Project name
Expand All @@ -3277,17 +3255,17 @@ spec:
- Github
- Zip
type: string
subDir:
description: Sub-directory from a starter project to be
used as root for starter project.
type: string
zip:
description: Project's Zip source
properties:
location:
description: Zip project's source location address.
Should be file path of the archive, e.g. file://$FILE_PATH
type: string
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
required:
- name
Expand Down Expand Up @@ -3356,10 +3334,6 @@ spec:
description: The remotes map which should be initialized
in the git project. Must have at least one remote configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
required:
- remotes
type: object
Expand Down Expand Up @@ -3387,10 +3361,6 @@ spec:
description: The remotes map which should be initialized
in the git project. Must have at least one remote configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
required:
- remotes
type: object
Expand All @@ -3405,17 +3375,18 @@ spec:
- Zip
- Custom
type: string
sparseCheckoutDirs:
description: Populate the project sparsely with selected directories.
items:
type: string
type: array
zip:
description: Project's Zip source
properties:
location:
description: Zip project's source location address. Should
be file path of the archive, e.g. file://$FILE_PATH
type: string
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
required:
- name
Expand All @@ -3435,14 +3406,6 @@ spec:
- required:
- custom
properties:
clonePath:
description: Path relative to the root of the projects to
which this project should be cloned into. This is a unix-style
relative path (i.e. uses forward slashes). The path is invalid
if it is absolute or tries to escape the project root through
the usage of '..'. If not specified, defaults to the project
name.
type: string
custom:
description: Project's Custom source
properties:
Expand Down Expand Up @@ -3483,10 +3446,6 @@ spec:
description: The remotes map which should be initialized
in the git project. Must have at least one remote configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
required:
- remotes
type: object
Expand Down Expand Up @@ -3514,10 +3473,6 @@ spec:
description: The remotes map which should be initialized
in the git project. Must have at least one remote configured
type: object
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
required:
- remotes
type: object
Expand All @@ -3532,17 +3487,17 @@ spec:
- Zip
- Custom
type: string
subDir:
description: Sub-directory from a starter project to be used
as root for starter project.
type: string
zip:
description: Project's Zip source
properties:
location:
description: Zip project's source location address. Should
be file path of the archive, e.g. file://$FILE_PATH
type: string
sparseCheckoutDir:
description: Part of project to populate in the working
directory.
type: string
type: object
required:
- name
Expand Down
Loading

0 comments on commit 77074ba

Please sign in to comment.