hydrate-kubernetes
No long description provided.
Installation
dagger install github.com/prefapp/daggerverse/hydrate-kubernetes@5a9308b49001d49377e785a3dec8bf67653d6643
Entrypoint
Return Type
HydrateKubernetes !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
valuesDir | Directory ! | - | The path to the values directory, where the helm values are stored |
wetRepoDir | Directory ! | - | The path to the wet repo directory, where the wet manifests are stored |
helmfile | File | - | The path to the helmfile.yaml file |
valuesGoTmpl | File | - | The path to the values.go.tmpl file |
helmRegistryLoginNeeded | Boolean | false | No description provided |
helmRegistry | String | - | No description provided |
helmRegistryUser | String | - | No description provided |
helmRegistryPassword | Secret | - | No description provided |
renderType | String | "apps" | Type of the render, it can be apps or sys-apps |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *HydrateKubernetes {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir)
}
Types
HydrateKubernetes 🔗
container() 🔗
Return Type
Container !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *Container {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
Container()
}
valuesDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
ValuesDir()
}
wetRepoDir() 🔗
Return Type
Directory !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
WetRepoDir()
}
helmfile() 🔗
Return Type
File !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *File {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
Helmfile()
}
valuesGoTmpl() 🔗
Return Type
File !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *File {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
ValuesGoTmpl()
}
helmRegistryLoginNeeded() 🔗
Return Type
Boolean !
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory) bool {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
HelmRegistryLoginNeeded(ctx)
}
helmRegistry() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
HelmRegistry(ctx)
}
helmRegistryUser() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
HelmRegistryUser(ctx)
}
helmRegistryPassword() 🔗
Return Type
Secret !
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory) *Secret {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
HelmRegistryPassword()
}
renderType() 🔗
Return Type
String !
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
RenderType(ctx)
}
buildNewImages() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
matrix | String ! | - | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, matrix string) *File {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
BuildNewImages(matrix)
}
splitRenderInFiles() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
renderFile | File ! | - | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, renderFile *File) *Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
SplitRenderInFiles(renderFile)
}
dumpSysAppRenderToWetDir() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
app | String ! | - | No description provided |
cluster | String ! | - | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, app string, cluster string) *Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
DumpSysAppRenderToWetDir(app, cluster)
}
dumpAppRenderToWetDir() 🔗
Return Type
Directory !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
app | String ! | - | No description provided |
cluster | String ! | - | No description provided |
tenant | String ! | - | No description provided |
env | String ! | - | No description provided |
newImagesMatrix | String | "{\"images\":[]}" | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, app string, cluster string, tenant string, env string) *Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
DumpAppRenderToWetDir(app, cluster, tenant, env)
}
buildPreviousImagesApp() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cluster | String ! | - | No description provided |
tenant | String ! | - | No description provided |
env | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory, cluster string, tenant string, env string) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
BuildPreviousImagesApp(ctx, cluster, tenant, env)
}
renderApp() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
env | String ! | - | No description provided |
app | String ! | - | No description provided |
cluster | String ! | - | No description provided |
tenant | String ! | - | No description provided |
newImagesMatrix | String | "{\"images\":[]}" | No description provided |
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory, env string, app string, cluster string, tenant string) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
RenderApp(ctx, env, app, cluster, tenant)
}
getImagesFile() 🔗
Return Type
File !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cluster | String ! | - | No description provided |
tenant | String ! | - | No description provided |
env | String ! | - | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, cluster string, tenant string, env string) *File {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
GetImagesFile(cluster, tenant, env)
}
renderSysService() 🔗
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
cluster | String ! | - | No description provided |
app | String ! | - | No description provided |
Example
func (m *myModule) example(ctx context.Context, valuesDir *Directory, wetRepoDir *Directory, cluster string, app string) string {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
RenderSysService(ctx, cluster, app)
}
render() 🔗
This function renders the apps or sys-apps based on the render type It returns the wet directory where the rendered files are stored
Return Type
[Directory ! ] !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
app | String ! | - | No description provided |
cluster | String ! | - | No description provided |
tenant | String | "" | No description provided |
env | String | "" | No description provided |
newImagesMatrix | String | "{\"images\":[]}" | No description provided |
Example
func (m *myModule) example(valuesDir *Directory, wetRepoDir *Directory, app string, cluster string) []*Directory {
return dag.
HydrateKubernetes(valuesDir, wetRepoDir).
Render(app, cluster)
}