Skip to content

Commit f1c8739

Browse files
committed
Use *.tpl as user kustomization template file glob-filter
1 parent 3eef9fd commit f1c8739

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ In `kube.tf`, specify the folders in `user_kustomizations`.
451451
### Example: ArgoCD with Post-install actions
452452
453453
See examples from `examples/kustomization_user_deploy/helm-chart`, place the chart-files along with Kustomization.yaml.tpl into folder `argocd`.
454-
The specify additional project-helms in `argocd-projects`.
454+
Then specify additional project-helms in `argocd-projects`.
455455
456456
```
457457
user_kustomizations = {

modules/user_kustomization_set/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
source_folder_files = try(fileset(var.source_folder, "**/*.yaml.tpl"), toset([]))
2+
source_folder_files = try(fileset(var.source_folder, "**/*.tpl"), toset([]))
33
source_files_sha = join("", [
44
for file_path in local.source_folder_files :
55
filesha1("${var.source_folder}/${file_path}")

modules/user_kustomization_set/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ resource "null_resource" "user_kustomization_template_files" {
6565

6666
provisioner "file" {
6767
content = templatefile("${var.source_folder}/${each.key}", var.template_parameters)
68-
destination = replace("${var.destination_folder}/${each.key}", ".yaml.tpl", ".yaml")
68+
destination = replace("${var.destination_folder}/${each.key}", ".tpl", "")
6969
}
7070

7171
depends_on = [null_resource.create_target_directory]

0 commit comments

Comments
 (0)