From 8fd4eaac6e402b42856613ad63e56fb0eb541121 Mon Sep 17 00:00:00 2001 From: Andrew Peabody Date: Mon, 23 Sep 2024 15:13:58 -0700 Subject: [PATCH] fix(anthos-attached-cluster): document modules (#714) --- .../attached-install-manifest/README.md | 30 +++++++++++++ .../modules/attached-install-mesh/README.md | 42 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 anthos-attached-clusters/modules/attached-install-manifest/README.md create mode 100644 anthos-attached-clusters/modules/attached-install-mesh/README.md diff --git a/anthos-attached-clusters/modules/attached-install-manifest/README.md b/anthos-attached-clusters/modules/attached-install-manifest/README.md new file mode 100644 index 00000000..f3305733 --- /dev/null +++ b/anthos-attached-clusters/modules/attached-install-manifest/README.md @@ -0,0 +1,30 @@ +# Attached Install Manifest + +## Example usage + +``` +module "attached_install_manifest" { + source = "./attached-install-manifest" + attached_cluster_name = CUSTER NAME + attached_cluster_fleet_project = PROJECT ID + gcp_location = LOCATION + platform_version = VERSION +} +``` + + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| attached\_cluster\_fleet\_project | GCP fleet project ID where the cluster will be attached | `string` | n/a | yes | +| attached\_cluster\_name | Name for the attached cluster resource | `string` | n/a | yes | +| gcp\_location | GCP location to create the attached resource in | `string` | `"us-west1"` | no | +| platform\_version | Platform version of the attached cluster resource | `string` | `"1.28.8-gke.3"` | no | +| temp\_dir | Directory name to temporarily write out the helm chart for bootstrapping the attach process | `string` | `""` | no | + +## Outputs + +No outputs. + + diff --git a/anthos-attached-clusters/modules/attached-install-mesh/README.md b/anthos-attached-clusters/modules/attached-install-mesh/README.md new file mode 100644 index 00000000..1bb4bf12 --- /dev/null +++ b/anthos-attached-clusters/modules/attached-install-mesh/README.md @@ -0,0 +1,42 @@ +# Attached Install Mesh + +Sample module to install [Google Cloud Service Mesh](https://cloud.google.com/products/service-mesh) on [GKE Attached Clusters](https://cloud.google.com/kubernetes-engine/multi-cloud/docs/attached). + +## Example usage + +``` +module "install-mesh" { + source = "./attached-install-mesh" + + kubeconfig = kind_cluster.cluster.kubeconfig_path + context = local.cluster_context + fleet_id = data.google_project.project.project_id +} +``` + + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| activate\_service\_account | Set to false to skip running `gcloud auth activate-service-account`. Optional. | `bool` | `true` | no | +| asmcli\_download\_url | Custom asmcli download url. Optional. | `string` | `null` | no | +| asmcli\_version | The asmcli version to download. Optional. | `string` | `"1.22"` | no | +| context | The cluster contex. | `string` | n/a | yes | +| fleet\_id | The fleet\_id. | `string` | n/a | yes | +| gcloud\_download\_url | Custom gcloud download url. Optional. | `string` | `null` | no | +| gcloud\_sdk\_version | The gcloud sdk version to download. Optional. | `string` | `"491.0.0"` | no | +| jq\_download\_url | Custom jq download url. Optional. | `string` | `null` | no | +| jq\_version | The jq version to download. Optional. | `string` | `"1.6"` | no | +| kubeconfig | The kubeconfig path. | `string` | n/a | yes | +| platform | Platform asmcli will run on. Valid values: linux [default], darwin. Optional. | `string` | `"linux"` | no | +| service\_account\_key\_file | Path to service account key file to run `gcloud auth activate-service-account` with. Optional. | `string` | `""` | no | +| use\_tf\_google\_credentials\_env\_var | Use `GOOGLE_CREDENTIALS` environment variable to run `gcloud auth activate-service-account` with. Optional. | `bool` | `false` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| wait | An output to use when you want to depend on cmd finishing | + +