Skip to content

Commit

Permalink
Merge branch 'master' into sruffilli/ncc-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
sruffilli authored Jul 25, 2024
2 parents c415ff7 + 52b56aa commit 0556709
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion blueprints/gke/patterns/autopilot-cluster/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ output "created_resources" {
vpc_id = module.vpc[0].id
},
!var.registry_create ? {} : {
registry = module.registry[0].docker_image_path
registry = module.registry[0].url
},
!local.cluster_create ? {} : {
cluster = module.cluster[0].id
Expand Down
8 changes: 4 additions & 4 deletions modules/artifact-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ module "registry-docker" {

| name | description | sensitive |
|---|---|:---:|
| [docker_image_path](outputs.tf#L17) | Repository path for Docker images. | |
| [id](outputs.tf#L27) | Fully qualified repository id. | |
| [name](outputs.tf#L32) | Repository name. | |
| [repository](outputs.tf#L37) | Repository object. | |
| [id](outputs.tf#L17) | Fully qualified repository id. | |
| [name](outputs.tf#L22) | Repository name. | |
| [repository](outputs.tf#L27) | Repository object. | |
| [url](outputs.tf#L32) | Repository URL. | |
<!-- END TFDOC -->
20 changes: 10 additions & 10 deletions modules/artifact-registry/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
* limitations under the License.
*/

output "docker_image_path" {
description = "Repository path for Docker images."
value = join("/", [
"${var.location}-${local.format_string}.pkg.dev",
var.project_id,
var.name
])
depends_on = [google_artifact_registry_repository.registry]
}

output "id" {
description = "Fully qualified repository id."
value = google_artifact_registry_repository.registry.id
Expand All @@ -38,3 +28,13 @@ output "repository" {
description = "Repository object."
value = google_artifact_registry_repository.registry
}

output "url" {
description = "Repository URL."
value = join("/", [
"${var.location}-${local.format_string}.pkg.dev",
var.project_id,
var.name
])
depends_on = [google_artifact_registry_repository.registry]
}

0 comments on commit 0556709

Please sign in to comment.