hydrate-orchestrator
No long description provided.
Installation
dagger install github.com/prefapp/daggerverse/hydrate-orchestrator@a40b4f903d7a695fb866b6356ae91d1f60dadc6e
Entrypoint
Return Type
HydrateOrchestrator !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repository name <owner>/<repo> |
ghToken | Secret ! | - | GitHub token |
valuesStateDir | Directory ! | - | State values directory (e.g. state-app-<app>#main) |
wetStateDir | Directory ! | - | Wet state directory (e.g. wet-state-app-<app>#<deployment-branch>) |
authDir | Directory ! | - | Auth directory |
deploymentBranch | String | "deployment" | Deployment branch to hydrate |
event | Enum | "pr" | Event that triggered the workflow |
dotFirestartr | Directory ! | - | .firestartr directory. It contains de org global configurations. |
ghCliVersion | String | "v2.66.1" | Gh CLI Version |
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *HydrateOrchestrator {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr)
}
Types
HydrateOrchestrator 🔗
repo() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) string {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
Repo(ctx)
}
ghToken() 🔗
Return Type
Secret !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *Secret {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
GhToken()
}
app() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) string {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
App(ctx)
}
valuesStateDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *Directory {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
ValuesStateDir()
}
wetStateDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *Directory {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
WetStateDir()
}
authDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *Directory {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
AuthDir()
}
deploymentBranch() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) string {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
DeploymentBranch(ctx)
}
event() 🔗
Return Type
Enum !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
Event()
}
dotFirestartr() 🔗
Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) *Directory {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
DotFirestartr()
}
ghCliVersion() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) string {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
GhCliVersion(ctx)
}
automergeFileExists() 🔗
Return Type
Boolean !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
globPattern | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory, globPattern string) bool {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
AutomergeFileExists(ctx, globPattern)
}
mergePullRequest() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
prLink | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory, prLink string) {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
MergePullRequest(ctx, prLink)
}
runDispatch() 🔗
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
newImagesMatrix | String | "{\"images\":[]}" | No description provided |
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory) {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
RunDispatch(ctx)
}
generateDeployment() 🔗
Hydrate deployments based on the updated deployments
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
id | String | "0" | Identifier that triggered the render, this could be a PR number or a workflow run id |
author | String | "author" | Author of the PR |
globPattern | String ! | - | Glob Pattern |
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory, globPattern string) *File {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
GenerateDeployment(globPattern)
}
validateChanges() 🔗
Hydrate deployments based on the updated deployments
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
updatedDeployments | String ! | - | Updated deployments in JSON format |
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory, updatedDeployments string) {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
ValidateChanges(ctx, updatedDeployments)
}
deploymentSummaryToFile() 🔗
Function that creates a dagger.File object from a DeploymentSummary object
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
deploymentSummary | HydrateOrchestratorDeploymentSummary ! | - | No description provided |
Example
func (m *myModule) example(repo string, ghToken *Secret, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, dotFirestartr *Directory, deploymentSummary *HydrateOrchestratorDeploymentSummary) *File {
return dag.
HydrateOrchestrator(repo, ghToken, valuesStateDir, wetStateDir, authDir, dotFirestartr).
DeploymentSummaryToFile(deploymentSummary)
}
HydrateOrchestratorDeploymentSummary 🔗
items() 🔗
Return Type
[HydrateOrchestratorDeploymentSummaryRow ! ] !
Example
Function HydrateOrchestratorDeploymentSummary.items is not accessible from the hydrate-orchestrator module
deploymentSummaryToMarkdownTable() 🔗
Function that converts a DeploymentSummary object to a markdown table
Return Type
String !
Example
Function HydrateOrchestratorDeploymentSummary.deploymentSummaryToMarkdownTable is not accessible from the hydrate-orchestrator module
HydrateOrchestratorDeploymentSummaryRow 🔗
deploymentPath() 🔗
Deployment path
Return Type
String !
Example
Function HydrateOrchestratorDeploymentSummaryRow.deploymentPath is not accessible from the hydrate-orchestrator module
status() 🔗
Status of the deployment
Return Type
String !
Example
Function HydrateOrchestratorDeploymentSummaryRow.status is not accessible from the hydrate-orchestrator module