kubernetes-deployment
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/stuttgart-things/blueprints/kubernetes-deployment@v1.44.0Entrypoint
Return Type
KubernetesDeployment Example
dagger -m github.com/stuttgart-things/blueprints/kubernetes-deployment@0a4e0169449a8ca818f36402e8d15d2ec445d9f8 call \
func (m *MyModule) Example() *dagger.KubernetesDeployment {
return dag.
KubernetesDeployment()
}@function
def example() -> dagger.KubernetesDeployment:
return (
dag.kubernetes_deployment()
)@func()
example(): KubernetesDeployment {
return dag
.kubernetesDeployment()
}Types
KubernetesDeployment 🔗
deployMicroservices() 🔗
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| helmfileRefs | String | "helmfile.yaml" | No description provided |
| operation | String | "apply" | No description provided |
| registrySecret | Secret | - | No description provided |
| kubeConfig | Secret | - | No description provided |
| vaultAppRoleId | Secret | - | No description provided |
| vaultSecretId | Secret | - | No description provided |
| vaultUrl | Secret | - | No description provided |
| secretPathKubeconfig | String | - | No description provided |
| vaultAuthMethod | String | "approle" | No description provided |
| stateValues | String | - | Comma-separated key=value pairs for --state-values-set (e.g., "issuerName=cluster-issuer-approle,domain=demo.example.com") |
Example
dagger -m github.com/stuttgart-things/blueprints/kubernetes-deployment@0a4e0169449a8ca818f36402e8d15d2ec445d9f8 call \
deploy-microservicesfunc (m *MyModule) Example(ctx context.Context) {
return dag.
KubernetesDeployment().
DeployMicroservices(ctx)
}@function
async def example() -> None:
return await (
dag.kubernetes_deployment()
.deploy_microservices()
)@func()
async example(): Promise<void> {
return dag
.kubernetesDeployment()
.deployMicroservices()
}deployHelmfile() 🔗
Return Type
Void !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory | - | No description provided |
| helmfileRef | String | "helmfile.yaml" | No description provided |
| operation | String | "apply" | No description provided |
| registrySecret | Secret | - | No description provided |
| kubeConfig | Secret | - | No description provided |
| vaultAppRoleId | Secret | - | No description provided |
| vaultSecretId | Secret | - | No description provided |
| vaultUrl | Secret | - | No description provided |
| secretPathKubeconfig | String | - | No description provided |
| vaultAuthMethod | String | "approle" | No description provided |
| stateValues | String | - | Comma-separated key=value pairs for --state-values-set (e.g., "issuerName=cluster-issuer-approle,domain=demo.example.com") |
Example
dagger -m github.com/stuttgart-things/blueprints/kubernetes-deployment@0a4e0169449a8ca818f36402e8d15d2ec445d9f8 call \
deploy-helmfilefunc (m *MyModule) Example(ctx context.Context) {
return dag.
KubernetesDeployment().
DeployHelmfile(ctx)
}@function
async def example() -> None:
return await (
dag.kubernetes_deployment()
.deploy_helmfile()
)@func()
async example(): Promise<void> {
return dag
.kubernetesDeployment()
.deployHelmfile()
}applyManifests() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| manifestPattern | String | "*.yaml" | No description provided |
| sourceFiles | String | - | No description provided |
| sourceUrls | String | "" | No description provided |
| operation | String | "apply" | No description provided |
| kubeConfig | Secret | - | No description provided |
| namespace | String | "default" | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/kubernetes-deployment@0a4e0169449a8ca818f36402e8d15d2ec445d9f8 call \
apply-manifestsfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
KubernetesDeployment().
ApplyManifests(ctx)
}@function
async def example() -> str:
return await (
dag.kubernetes_deployment()
.apply_manifests()
)@func()
async example(): Promise<string> {
return dag
.kubernetesDeployment()
.applyManifests()
}installCustomResourceDefinitions() 🔗
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| kustomizeSources | String | - | No description provided |
| sourceUrls | String | "" | No description provided |
| operation | String | "apply" | No description provided |
| serverSide | Boolean | true | Use server-side apply (only valid with apply operation) |
| kubeConfig | Secret | - | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/kubernetes-deployment@0a4e0169449a8ca818f36402e8d15d2ec445d9f8 call \
install-custom-resource-definitionsfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
KubernetesDeployment().
InstallCustomResourceDefinitions(ctx)
}@function
async def example() -> str:
return await (
dag.kubernetes_deployment()
.install_custom_resource_definitions()
)@func()
async example(): Promise<string> {
return dag
.kubernetesDeployment()
.installCustomResourceDefinitions()
}