Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outputs #3

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}