crossplane-configuration
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/crossplane-configuration@v1.40.0Entrypoint
Return Type
CrossplaneConfiguration Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
func (m *MyModule) Example() *dagger.CrossplaneConfiguration {
return dag.
CrossplaneConfiguration()
}@function
def example() -> dagger.CrossplaneConfiguration:
return (
dag.crossplane_configuration()
)@func()
example(): CrossplaneConfiguration {
return dag
.crossplaneConfiguration()
}Types
CrossplaneConfiguration 🔗
create() 🔗
Return Type
Directory !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| defaultsFile | File | - | No description provided |
| variablesFile | File | - | No description provided |
| variables | String | - | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
create --name stringfunc (m *MyModule) Example(name string) *dagger.Directory {
return dag.
CrossplaneConfiguration().
Create(name)
}@function
def example(name: str) -> dagger.Directory:
return (
dag.crossplane_configuration()
.create(name)
)@func()
example(name: string): Directory {
return dag
.crossplaneConfiguration()
.create(name)
}addCluster() 🔗
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| module | String | "ghcr.io/stuttgart-things/xplane-cluster-resources:0.2.1" | No description provided |
| crossplaneNamespace | String | "crossplane-system" | No description provided |
| providers | String | "kubernetes,helm" | No description provided |
| clusterName | String ! | - | No description provided |
| parametersFile | File | - | No description provided |
| kubeconfigCluster | Secret ! | - | Kubeconfig secret to create secret from |
| kubeconfigCrossplaneCluster | Secret | - | Kubeconfig secret crossplane cluster |
| useClusterProviderConfig | Boolean | "true" | No description provided |
| deployToCluster | Boolean | "true" | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
add-cluster --cluster-name string --kubeconfig-cluster env:MYSECRETfunc (m *MyModule) Example(clusterName string, kubeconfigCluster *dagger.Secret) *dagger.File {
return dag.
CrossplaneConfiguration().
AddCluster(clusterName, kubeconfigCluster)
}@function
def example(cluster_name: str, kubeconfig_cluster: dagger.Secret) -> dagger.File:
return (
dag.crossplane_configuration()
.add_cluster(cluster_name, kubeconfig_cluster)
)@func()
example(clusterName: string, kubeconfigCluster: Secret): File {
return dag
.crossplaneConfiguration()
.addCluster(clusterName, kubeconfigCluster)
}renderKubeconfigSecret() 🔗
RenderKubeconfigSecret renders a Kubernetes Secret manifest with encoded kubeconfig Input: kubeconfig file Parameters: secretName, secretNamespace, secretKey Output: rendered secret file
Return Type
File !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| kubeconfigFile | Secret ! | - | No description provided |
| secretName | String ! | - | No description provided |
| secretNamespace | String ! | - | No description provided |
| secretKey | String ! | - | No description provided |
Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
render-kubeconfig-secret --kubeconfig-file env:MYSECRET --secret-name string --secret-namespace string --secret-key stringfunc (m *MyModule) Example(kubeconfigFile *dagger.Secret, secretName string, secretNamespace string, secretKey string) *dagger.File {
return dag.
CrossplaneConfiguration().
RenderKubeconfigSecret(kubeconfigFile, secretName, secretNamespace, secretKey)
}@function
def example(kubeconfig_file: dagger.Secret, secret_name: str, secret_namespace: str, secret_key: str) -> dagger.File:
return (
dag.crossplane_configuration()
.render_kubeconfig_secret(kubeconfig_file, secret_name, secret_namespace, secret_key)
)@func()
example(kubeconfigFile: Secret, secretName: string, secretNamespace: string, secretKey: string): File {
return dag
.crossplaneConfiguration()
.renderKubeconfigSecret(kubeconfigFile, secretName, secretNamespace, secretKey)
}