fix
This commit is contained in:
@@ -6,6 +6,9 @@ fn check_domain() {
|
||||
fn pre_check() {
|
||||
check_domain();
|
||||
}
|
||||
fn have_taiga() {
|
||||
have_namespace(`${global::DOMAIN}-ci`) && have_install(`${global::DOMAIN}-ci`, "taiga") && have_service(`${global::DOMAIN}-ci`, "taiga-taiga") && have_secret(`${global::DOMAIN}-ci`, "taiga-taiga")
|
||||
}
|
||||
fn conditions() {
|
||||
let org = global::NAME;
|
||||
org.replace("org-","");
|
||||
@@ -22,6 +25,7 @@ fn conditions() {
|
||||
log_info(`Found ${repos.len} repos`);
|
||||
}
|
||||
json_encode(#{
|
||||
repos: repos
|
||||
repos: repos,
|
||||
have_taiga: have_taiga()
|
||||
})
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
resource "kubectl_manifest" "post_install_job_taiga" {
|
||||
count = var.conditions.have_taiga ? 1:0
|
||||
yaml_body = <<-EOF
|
||||
force_new = true
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
@@ -12,7 +13,7 @@ resource "kubectl_manifest" "post_install_job_taiga" {
|
||||
spec:
|
||||
restartPolicy: OnFailure
|
||||
initContainers:
|
||||
- name: wait-for-sonar
|
||||
- name: wait-for-taiga
|
||||
image: "${var.images.kubectl.registry}/${var.images.kubectl.repository}:${var.images.kubectl.tag}"
|
||||
imagePullPolicy: ${var.images.kubectl.pull_policy}
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user