hydrate-orchestrator
No long description provided.
Installation
dagger install github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650
Entrypoint
Return Type
HydrateOrchestrator !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
repo | String ! | - | Github repository name <owner>/<repo> |
ghToken | Secret ! | - | GitHub token |
app | String ! | - | Application name |
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 |
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH
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)
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dag.HydrateOrchestrator:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
)
@func()
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
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH repo
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> str:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.repo()
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, ): Promise<string> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.repo()
}
ghToken() 🔗
Return Type
Secret !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH gh-token
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dagger.Secret:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.gh_token()
)
@func()
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
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH app
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> str:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.app()
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, ): Promise<string> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.app()
}
valuesStateDir() 🔗
Return Type
Directory !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH values-state-dir
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dagger.Directory:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.values_state_dir()
)
@func()
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
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH wet-state-dir
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dagger.Directory:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.wet_state_dir()
)
@func()
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
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH auth-dir
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dagger.Directory:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.auth_dir()
)
@func()
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
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH deployment-branch
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> str:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.deployment_branch()
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, ): Promise<string> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.deploymentBranch()
}
event() 🔗
Return Type
Enum !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH event
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> :
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.event()
)
@func()
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
Name | Type | Default Value | Description |
---|---|---|---|
newImagesMatrix | String | "{\"images\":[]}" | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH run-dispatch
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> None:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.run_dispatch()
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, ): Promise<void> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.runDispatch()
}
getHelmAuth() 🔗
Return Type
HydrateOrchestratorHelmAuth !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH get-helm-auth
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()
}
@function
def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, ) -> dag.HydrateOrchestratorHelmAuth:
return (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.get_helm_auth()
)
@func()
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
Name | Type | Default Value | Description |
---|---|---|---|
authDir | Directory ! | - | No description provided |
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH needs-helm-auth --auth-dir DIR_PATH
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, auth_dir1: dagger.Directory) -> bool:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.needs_helm_auth(auth_dir1)
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, authDir1: Directory): Promise<boolean> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.needsHelmAuth(authDir1)
}
runChanges() 🔗
Hydrate deployments based on the updated deployments
Return Type
Void !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
updatedDeployments | String ! | - | Updated deployments in JSON format |
id | Integer | 0 | Identifier that triggered the render, this could be a PR number or a workflow run id |
author | String | "author" | Author of the PR |
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
--repo string --gh-token env:MYSECRET --app string --values-state-dir DIR_PATH --wet-state-dir DIR_PATH --auth-dir DIR_PATH run-changes --updated-deployments string
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)
}
@function
async def example(repo: str, gh_token: dagger.Secret, app: str, values_state_dir: dagger.Directory, wet_state_dir: dagger.Directory, auth_dir: dagger.Directory, updated_deployments: str) -> None:
return await (
dag.hydrate_orchestrator(repo, gh_token, app, values_state_dir, wet_state_dir, auth_dir)
.run_changes(updated_deployments)
)
@func()
async example(repo: string, ghToken: Secret, app: string, valuesStateDir: Directory, wetStateDir: Directory, authDir: Directory, updatedDeployments: string): Promise<void> {
return dag
.hydrateOrchestrator(repo, ghToken, app, valuesStateDir, wetStateDir, authDir)
.runChanges(updatedDeployments)
}
HydrateOrchestratorHelmAuth 🔗
username() 🔗
Return Type
String !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
get-helm-auth \
username
func (m *myModule) example(ctx context.Context) string {
return dag.
HydrateOrchestrator().
GetHelmAuth().
Username(ctx)
}
@function
async def example() -> str:
return await (
dag.hydrate_orchestrator()
.get_helm_auth()
.username()
)
@func()
async example(): Promise<string> {
return dag
.hydrateOrchestrator()
.getHelmAuth()
.username()
}
password() 🔗
Return Type
Secret !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
get-helm-auth \
password
func (m *myModule) example() *Secret {
return dag.
HydrateOrchestrator().
GetHelmAuth().
Password()
}
@function
def example() -> dagger.Secret:
return (
dag.hydrate_orchestrator()
.get_helm_auth()
.password()
)
@func()
example(): Secret {
return dag
.hydrateOrchestrator()
.getHelmAuth()
.password()
}
registry() 🔗
Return Type
String !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
get-helm-auth \
registry
func (m *myModule) example(ctx context.Context) string {
return dag.
HydrateOrchestrator().
GetHelmAuth().
Registry(ctx)
}
@function
async def example() -> str:
return await (
dag.hydrate_orchestrator()
.get_helm_auth()
.registry()
)
@func()
async example(): Promise<string> {
return dag
.hydrateOrchestrator()
.getHelmAuth()
.registry()
}
needsAuth() 🔗
Return Type
Boolean !
Example
dagger -m github.com/prefapp/daggerverse/hydrate-orchestrator@595fd5c5a1bd2688087100afb72e4274214b4650 call \
get-helm-auth \
needs-auth
func (m *myModule) example(ctx context.Context) bool {
return dag.
HydrateOrchestrator().
GetHelmAuth().
NeedsAuth(ctx)
}
@function
async def example() -> bool:
return await (
dag.hydrate_orchestrator()
.get_helm_auth()
.needs_auth()
)
@func()
async example(): Promise<boolean> {
return dag
.hydrateOrchestrator()
.getHelmAuth()
.needsAuth()
}