Dagger
Search

crossplane-configuration

This module has been generated via dagger init and serves as a reference to
basic 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.0

Entrypoint

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
NameTypeDefault ValueDescription
nameString !-No description provided
defaultsFileFile -No description provided
variablesFileFile -No description provided
variablesString -No description provided
Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
 create --name string
func (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
NameTypeDefault ValueDescription
moduleString "ghcr.io/stuttgart-things/xplane-cluster-resources:0.2.1"No description provided
crossplaneNamespaceString "crossplane-system"No description provided
providersString "kubernetes,helm"No description provided
clusterNameString !-No description provided
parametersFileFile -No description provided
kubeconfigClusterSecret !-Kubeconfig secret to create secret from
kubeconfigCrossplaneClusterSecret -Kubeconfig secret crossplane cluster
useClusterProviderConfigBoolean "true"No description provided
deployToClusterBoolean "true"No description provided
Example
dagger -m github.com/stuttgart-things/blueprints/crossplane-configuration@0f74736064f03c94448391543357ababe454fafa call \
 add-cluster --cluster-name string --kubeconfig-cluster env:MYSECRET
func (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
NameTypeDefault ValueDescription
kubeconfigFileSecret !-No description provided
secretNameString !-No description provided
secretNamespaceString !-No description provided
secretKeyString !-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 string
func (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)
}