Dagger
Search

hydrate-orchestrator

No long description provided.

Installation

dagger install github.com/prefapp/daggerverse/hydrate-orchestrator@faf235fa0e6813b8be70b81b3d34b2c1a7f68e9b

Entrypoint

Return Type
HydrateOrchestrator !
Arguments
NameTypeDefault ValueDescription
repoString !-Github repository name <owner>/<repo>
ghTokenSecret !-GitHub token
appString !-Application name
valuesStateDirDirectory !-State values directory (e.g. state-app-<app>#main)
wetStateDirDirectory !-Wet state directory (e.g. wet-state-app-<app>#<deployment-branch>)
authDirDirectory !-Auth directory
deploymentBranchString "deployment"Deployment branch to hydrate
eventEnum "pr"Event that triggered the workflow
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *HydrateOrchestrator  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
}

Types

HydrateOrchestrator 🔗

repo() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) string  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			Repo(ctx)
}

ghToken() 🔗

Return Type
Secret !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *Secret  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			GhToken()
}

app() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) string  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			App(ctx)
}

valuesStateDir() 🔗

Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *Directory  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			ValuesStateDir()
}

wetStateDir() 🔗

Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *Directory  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			WetStateDir()
}

authDir() 🔗

Return Type
Directory !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *Directory  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			AuthDir()
}

deploymentBranch() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) string  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			DeploymentBranch(ctx)
}

event() 🔗

Return Type
Enum !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory)   {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			Event()
}

runDispatch() 🔗

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
newImagesMatrixString "{\"images\":[]}"No description provided
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory)   {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			RunDispatch(ctx)
}

getHelmAuth() 🔗

Return Type
HydrateOrchestratorHelmAuth !
Example
func (m *myModule) example(repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory) *HydrateOrchestratorHelmAuth  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			GetHelmAuth()
}

needsHelmAuth() 🔗

Return Type
Boolean !
Arguments
NameTypeDefault ValueDescription
authDirDirectory !-No description provided
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, authDir1 *Directory) bool  {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			NeedsHelmAuth(ctx, authDir1)
}

runChanges() 🔗

Hydrate deployments based on the updated deployments

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
updatedDeploymentsString !-Updated deployments in JSON format
idInteger 0Identifier that triggered the render, this could be a PR number or a workflow run id
authorString "author"Author of the PR
Example
func (m *myModule) example(ctx context.Context, repo string, ghToken *Secret, app string, valuesStateDir *Directory, wetStateDir *Directory, authDir *Directory, updatedDeployments string)   {
	return dag.
			HydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir).
			RunChanges(ctx, updatedDeployments)
}

HydrateOrchestratorHelmAuth 🔗

username() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			HydrateOrchestrator().
			GetHelmAuth().
			Username(ctx)
}

password() 🔗

Return Type
Secret !
Example
func (m *myModule) example() *Secret  {
	return dag.
			HydrateOrchestrator().
			GetHelmAuth().
			Password()
}

registry() 🔗

Return Type
String !
Example
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			HydrateOrchestrator().
			GetHelmAuth().
			Registry(ctx)
}

needsAuth() 🔗

Return Type
Boolean !
Example
func (m *myModule) example(ctx context.Context) bool  {
	return dag.
			HydrateOrchestrator().
			GetHelmAuth().
			NeedsAuth(ctx)
}