Skip to content

Commit

Permalink
Merge pull request #3 from e-breuninger/outputs
Browse files Browse the repository at this point in the history
Add outputs
  • Loading branch information
torvitas authored Jan 8, 2024
2 parents b476427 + f94cff4 commit 3f89b19
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pre-commit
on:
push:
branches: ["*"]
branches: ["**"]
jobs:
pre-commit:
permissions: read-all
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ It creates kustomization resources from a kustomization data source.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <a name="output_p0"></a> [p0](#output\_p0) | Kustomization resources applied with priority 0 |
| <a name="output_p1"></a> [p1](#output\_p1) | Kustomization resources applied with priority 1 |
| <a name="output_p2"></a> [p2](#output\_p2) | Kustomization resources applied with priority 2 |
<!-- END_TF_DOCS -->
15 changes: 15 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,18 @@ resource "kustomization_resource" "p2" {

depends_on = [kustomization_resource.p1]
}

output "p0" {
value = kustomization_resource.p0
description = "Kustomization resources applied with priority 0"
}

output "p1" {
value = kustomization_resource.p1
description = "Kustomization resources applied with priority 1"
}

output "p2" {
value = kustomization_resource.p2
description = "Kustomization resources applied with priority 2"
}

0 comments on commit 3f89b19

Please sign in to comment.