-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(project): splits schema out into multiple files (#68)
- Loading branch information
Showing
11 changed files
with
586 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package schema | ||
|
||
// Deployment contains the configuration for the deployment of the project. | ||
type Deployment struct { | ||
// Environment contains the environment to deploy the module to. | ||
Environment string `json:"environment"` | ||
|
||
// Modules contains the configuration for the deployment modules for the project. | ||
// +optional | ||
Modules *DeploymentModules `json:"modules"` | ||
} | ||
|
||
// Deployment contains the configuration for the deployment of the project. | ||
type DeploymentModules struct { | ||
// Main contains the configuration for the main deployment module. | ||
Main Module `json:"main"` | ||
|
||
// Support contains the configuration for the support deployment modules. | ||
// +optional | ||
Support map[string]Module `json:"support"` | ||
} | ||
|
||
// Module contains the configuration for a deployment module. | ||
type Module struct { | ||
// Container contains the name of the container holding the deployment code. | ||
// Defaults to <module_name>-deployment). For the main module, <module_name> is the project name. | ||
// +optional | ||
Container *string `json:"container"` | ||
|
||
// Namespace contains the namespace to deploy the module to. | ||
Namespace string `json:"namespace"` | ||
|
||
// Values contains the values to pass to the deployment module. | ||
Values any `json:"values"` | ||
|
||
// Version contains the version of the deployment module. | ||
Version string `json:"version"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Code generated by cue get go. DO NOT EDIT. | ||
|
||
//cue:generate cue get go github.com/input-output-hk/catalyst-forge/lib/project/schema | ||
|
||
package schema | ||
|
||
// Deployment contains the configuration for the deployment of the project. | ||
#Deployment: { | ||
// Environment contains the environment to deploy the module to. | ||
environment: string @go(Environment) | ||
|
||
// Modules contains the configuration for the deployment modules for the project. | ||
// +optional | ||
modules?: null | #DeploymentModules @go(Modules,*DeploymentModules) | ||
} | ||
|
||
// Deployment contains the configuration for the deployment of the project. | ||
#DeploymentModules: { | ||
// Main contains the configuration for the main deployment module. | ||
main: #Module @go(Main) | ||
|
||
// Support contains the configuration for the support deployment modules. | ||
// +optional | ||
support?: {[string]: #Module} @go(Support,map[string]Module) | ||
} | ||
|
||
// Module contains the configuration for a deployment module. | ||
#Module: { | ||
// Container contains the name of the container holding the deployment code. | ||
// Defaults to <module_name>-deployment). For the main module, <module_name> is the project name. | ||
// +optional | ||
container?: null | string @go(Container,*string) | ||
|
||
// Namespace contains the namespace to deploy the module to. | ||
namespace: string @go(Namespace) | ||
|
||
// Values contains the values to pass to the deployment module. | ||
values: _ @go(Values,any) | ||
|
||
// Version contains the version of the deployment module. | ||
version: string @go(Version) | ||
} |
Oops, something went wrong.