fix
This commit is contained in:
@@ -103,4 +103,4 @@ providers:
|
||||
restapi: true
|
||||
http: true
|
||||
gitea: null
|
||||
tfaddtype: null
|
||||
tfaddtype: true
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
locals {
|
||||
sorted-namespaces = reverse(distinct(sort(var.namespaces)))
|
||||
sorted-namespaces = reverse(distinct(sort(concat(var.namespaces,var.detected.namespaces))))
|
||||
}
|
||||
resource "kubectl_manifest" "okd_sa" {
|
||||
yaml_body = <<-EOF
|
||||
|
||||
7
apps/okd/template.rhai
Normal file
7
apps/okd/template.rhai
Normal file
@@ -0,0 +1,7 @@
|
||||
const DEST=dest;
|
||||
const DOMAIN = config.domain;
|
||||
fn post_template() {
|
||||
save_to_tf(`${global::DEST}/detected.tf`, "detected", #{
|
||||
namespaces: list_namespace().items.filter(|ns| ns.metadata.name.starts_with(`${global::DOMAIN}-`)).map(|ns| ns.metadata.name)+[global::DOMAIN]
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user