Skip to content

Commit 5d26e51

Browse files
committed
Add dependentProjects to v1alpha1 spec as well and update conversion
Signed-off-by: Angel Misevski <[email protected]>
1 parent 5a87bde commit 5d26e51

7 files changed

+511
-0
lines changed

crds/workspace.devfile.io_devworkspaces.v1beta1.yaml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,130 @@ spec:
17431743
type: object
17441744
type: object
17451745
type: array
1746+
dependentProjects:
1747+
description: Additional projects related to the main project in
1748+
the devfile, contianing names and sources locations
1749+
items:
1750+
oneOf:
1751+
- required:
1752+
- git
1753+
- required:
1754+
- github
1755+
- required:
1756+
- zip
1757+
- required:
1758+
- custom
1759+
properties:
1760+
clonePath:
1761+
description: Path relative to the root of the projects to
1762+
which this project should be cloned into. This is a unix-style
1763+
relative path (i.e. uses forward slashes). The path is
1764+
invalid if it is absolute or tries to escape the project
1765+
root through the usage of '..'. If not specified, defaults
1766+
to the project name.
1767+
type: string
1768+
custom:
1769+
description: Project's Custom source
1770+
properties:
1771+
embeddedResource:
1772+
type: object
1773+
x-kubernetes-embedded-resource: true
1774+
x-kubernetes-preserve-unknown-fields: true
1775+
projectSourceClass:
1776+
type: string
1777+
required:
1778+
- embeddedResource
1779+
- projectSourceClass
1780+
type: object
1781+
git:
1782+
description: Project's Git source
1783+
properties:
1784+
checkoutFrom:
1785+
description: Defines from what the project should be
1786+
checked out. Required if there are more than one remote
1787+
configured
1788+
properties:
1789+
remote:
1790+
description: The remote name should be used as init.
1791+
Required if there are more than one remote configured
1792+
type: string
1793+
revision:
1794+
description: The revision to checkout from. Should
1795+
be branch name, tag or commit id. Default branch
1796+
is used if missing or specified revision is not
1797+
found.
1798+
type: string
1799+
type: object
1800+
remotes:
1801+
additionalProperties:
1802+
type: string
1803+
description: The remotes map which should be initialized
1804+
in the git project. Must have at least one remote
1805+
configured
1806+
type: object
1807+
sparseCheckoutDir:
1808+
description: Part of project to populate in the working
1809+
directory.
1810+
type: string
1811+
type: object
1812+
github:
1813+
description: Project's GitHub source
1814+
properties:
1815+
checkoutFrom:
1816+
description: Defines from what the project should be
1817+
checked out. Required if there are more than one remote
1818+
configured
1819+
properties:
1820+
remote:
1821+
description: The remote name should be used as init.
1822+
Required if there are more than one remote configured
1823+
type: string
1824+
revision:
1825+
description: The revision to checkout from. Should
1826+
be branch name, tag or commit id. Default branch
1827+
is used if missing or specified revision is not
1828+
found.
1829+
type: string
1830+
type: object
1831+
remotes:
1832+
additionalProperties:
1833+
type: string
1834+
description: The remotes map which should be initialized
1835+
in the git project. Must have at least one remote
1836+
configured
1837+
type: object
1838+
sparseCheckoutDir:
1839+
description: Part of project to populate in the working
1840+
directory.
1841+
type: string
1842+
type: object
1843+
name:
1844+
description: Project name
1845+
type: string
1846+
sourceType:
1847+
description: Type of project source
1848+
enum:
1849+
- Git
1850+
- Github
1851+
- Zip
1852+
- Custom
1853+
type: string
1854+
zip:
1855+
description: Project's Zip source
1856+
properties:
1857+
location:
1858+
description: Zip project's source location address.
1859+
Should be file path of the archive, e.g. file://$FILE_PATH
1860+
type: string
1861+
sparseCheckoutDir:
1862+
description: Part of project to populate in the working
1863+
directory.
1864+
type: string
1865+
type: object
1866+
required:
1867+
- name
1868+
type: object
1869+
type: array
17461870
events:
17471871
description: Bindings of commands to events. Each command is referred-to
17481872
by its name.

crds/workspace.devfile.io_devworkspaces.yaml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,130 @@ spec:
17391739
type: object
17401740
type: object
17411741
type: array
1742+
dependentProjects:
1743+
description: Additional projects related to the main project in
1744+
the devfile, contianing names and sources locations
1745+
items:
1746+
oneOf:
1747+
- required:
1748+
- git
1749+
- required:
1750+
- github
1751+
- required:
1752+
- zip
1753+
- required:
1754+
- custom
1755+
properties:
1756+
clonePath:
1757+
description: Path relative to the root of the projects to
1758+
which this project should be cloned into. This is a unix-style
1759+
relative path (i.e. uses forward slashes). The path is
1760+
invalid if it is absolute or tries to escape the project
1761+
root through the usage of '..'. If not specified, defaults
1762+
to the project name.
1763+
type: string
1764+
custom:
1765+
description: Project's Custom source
1766+
properties:
1767+
embeddedResource:
1768+
type: object
1769+
x-kubernetes-embedded-resource: true
1770+
x-kubernetes-preserve-unknown-fields: true
1771+
projectSourceClass:
1772+
type: string
1773+
required:
1774+
- embeddedResource
1775+
- projectSourceClass
1776+
type: object
1777+
git:
1778+
description: Project's Git source
1779+
properties:
1780+
checkoutFrom:
1781+
description: Defines from what the project should be
1782+
checked out. Required if there are more than one remote
1783+
configured
1784+
properties:
1785+
remote:
1786+
description: The remote name should be used as init.
1787+
Required if there are more than one remote configured
1788+
type: string
1789+
revision:
1790+
description: The revision to checkout from. Should
1791+
be branch name, tag or commit id. Default branch
1792+
is used if missing or specified revision is not
1793+
found.
1794+
type: string
1795+
type: object
1796+
remotes:
1797+
additionalProperties:
1798+
type: string
1799+
description: The remotes map which should be initialized
1800+
in the git project. Must have at least one remote
1801+
configured
1802+
type: object
1803+
sparseCheckoutDir:
1804+
description: Part of project to populate in the working
1805+
directory.
1806+
type: string
1807+
type: object
1808+
github:
1809+
description: Project's GitHub source
1810+
properties:
1811+
checkoutFrom:
1812+
description: Defines from what the project should be
1813+
checked out. Required if there are more than one remote
1814+
configured
1815+
properties:
1816+
remote:
1817+
description: The remote name should be used as init.
1818+
Required if there are more than one remote configured
1819+
type: string
1820+
revision:
1821+
description: The revision to checkout from. Should
1822+
be branch name, tag or commit id. Default branch
1823+
is used if missing or specified revision is not
1824+
found.
1825+
type: string
1826+
type: object
1827+
remotes:
1828+
additionalProperties:
1829+
type: string
1830+
description: The remotes map which should be initialized
1831+
in the git project. Must have at least one remote
1832+
configured
1833+
type: object
1834+
sparseCheckoutDir:
1835+
description: Part of project to populate in the working
1836+
directory.
1837+
type: string
1838+
type: object
1839+
name:
1840+
description: Project name
1841+
type: string
1842+
sourceType:
1843+
description: Type of project source
1844+
enum:
1845+
- Git
1846+
- Github
1847+
- Zip
1848+
- Custom
1849+
type: string
1850+
zip:
1851+
description: Project's Zip source
1852+
properties:
1853+
location:
1854+
description: Zip project's source location address.
1855+
Should be file path of the archive, e.g. file://$FILE_PATH
1856+
type: string
1857+
sparseCheckoutDir:
1858+
description: Part of project to populate in the working
1859+
directory.
1860+
type: string
1861+
type: object
1862+
required:
1863+
- name
1864+
type: object
1865+
type: array
17421866
events:
17431867
description: Bindings of commands to events. Each command is referred-to
17441868
by its name.

crds/workspace.devfile.io_devworkspacetemplates.v1beta1.yaml

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,123 @@ spec:
16711671
type: object
16721672
type: object
16731673
type: array
1674+
dependentProjects:
1675+
description: Additional projects related to the main project in the
1676+
devfile, contianing names and sources locations
1677+
items:
1678+
oneOf:
1679+
- required:
1680+
- git
1681+
- required:
1682+
- github
1683+
- required:
1684+
- zip
1685+
- required:
1686+
- custom
1687+
properties:
1688+
clonePath:
1689+
description: Path relative to the root of the projects to which
1690+
this project should be cloned into. This is a unix-style relative
1691+
path (i.e. uses forward slashes). The path is invalid if it
1692+
is absolute or tries to escape the project root through the
1693+
usage of '..'. If not specified, defaults to the project name.
1694+
type: string
1695+
custom:
1696+
description: Project's Custom source
1697+
properties:
1698+
embeddedResource:
1699+
type: object
1700+
x-kubernetes-embedded-resource: true
1701+
x-kubernetes-preserve-unknown-fields: true
1702+
projectSourceClass:
1703+
type: string
1704+
required:
1705+
- embeddedResource
1706+
- projectSourceClass
1707+
type: object
1708+
git:
1709+
description: Project's Git source
1710+
properties:
1711+
checkoutFrom:
1712+
description: Defines from what the project should be checked
1713+
out. Required if there are more than one remote configured
1714+
properties:
1715+
remote:
1716+
description: The remote name should be used as init.
1717+
Required if there are more than one remote configured
1718+
type: string
1719+
revision:
1720+
description: The revision to checkout from. Should be
1721+
branch name, tag or commit id. Default branch is used
1722+
if missing or specified revision is not found.
1723+
type: string
1724+
type: object
1725+
remotes:
1726+
additionalProperties:
1727+
type: string
1728+
description: The remotes map which should be initialized
1729+
in the git project. Must have at least one remote configured
1730+
type: object
1731+
sparseCheckoutDir:
1732+
description: Part of project to populate in the working
1733+
directory.
1734+
type: string
1735+
type: object
1736+
github:
1737+
description: Project's GitHub source
1738+
properties:
1739+
checkoutFrom:
1740+
description: Defines from what the project should be checked
1741+
out. Required if there are more than one remote configured
1742+
properties:
1743+
remote:
1744+
description: The remote name should be used as init.
1745+
Required if there are more than one remote configured
1746+
type: string
1747+
revision:
1748+
description: The revision to checkout from. Should be
1749+
branch name, tag or commit id. Default branch is used
1750+
if missing or specified revision is not found.
1751+
type: string
1752+
type: object
1753+
remotes:
1754+
additionalProperties:
1755+
type: string
1756+
description: The remotes map which should be initialized
1757+
in the git project. Must have at least one remote configured
1758+
type: object
1759+
sparseCheckoutDir:
1760+
description: Part of project to populate in the working
1761+
directory.
1762+
type: string
1763+
type: object
1764+
name:
1765+
description: Project name
1766+
type: string
1767+
sourceType:
1768+
description: Type of project source
1769+
enum:
1770+
- Git
1771+
- Github
1772+
- Zip
1773+
- Custom
1774+
type: string
1775+
zip:
1776+
description: Project's Zip source
1777+
properties:
1778+
location:
1779+
description: Zip project's source location address. Should
1780+
be file path of the archive, e.g. file://$FILE_PATH
1781+
type: string
1782+
sparseCheckoutDir:
1783+
description: Part of project to populate in the working
1784+
directory.
1785+
type: string
1786+
type: object
1787+
required:
1788+
- name
1789+
type: object
1790+
type: array
16741791
events:
16751792
description: Bindings of commands to events. Each command is referred-to
16761793
by its name.

0 commit comments

Comments
 (0)