fix
This commit is contained in:
@@ -335,7 +335,7 @@ resource "kubectl_manifest" "dashboards-workload" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubectl_manifest" "pvc-autoresizer" {
|
resource "kubectl_manifest" "pvc-autoresizer" {
|
||||||
count = var.pvc-autoresizer.enable ? 1 : 0
|
count = var.pvc-autoresizer.enable && ! var.conditions.only_localpath ? 1 : 0
|
||||||
yaml_body = <<-EOF
|
yaml_body = <<-EOF
|
||||||
apiVersion: "vynil.solidite.fr/v1"
|
apiVersion: "vynil.solidite.fr/v1"
|
||||||
kind: "Install"
|
kind: "Install"
|
||||||
|
|||||||
8
meta/domain-monitor/template.rhai
Normal file
8
meta/domain-monitor/template.rhai
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
const DEST=dest;
|
||||||
|
fn post_template() {
|
||||||
|
let scs = list_storage_class()["items"];
|
||||||
|
save_to_tf(`${global::DEST}/conditions.tf`, "conditions", #{
|
||||||
|
have_servicemonitors: have_crd("servicemonitors.monitoring.coreos.com"),
|
||||||
|
only_localpath: scs.some(|sc| sc["metadata"]["name"]=="local-path") && scs.len == 1
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user