-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add support for install deps #867
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
Changes from 13 commits
e881082
9e40a6f
733a0a7
647d147
ce8cf9e
c94e876
b0c4803
c8f9b34
6d4f942
ba81ae2
612138b
9b40676
bb310b0
f577343
febc4c3
05221ac
54d5a4a
072276b
94438e6
6970512
f7a4f4c
68d9001
f859afd
0ca3be5
a5bffb0
9b8e3b6
b2700c1
9617423
16cd543
55efa37
d8ad15a
5cf6740
c04417a
5cca92d
02912da
546c18a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| +1 −2 | .github/CODEOWNERS | |
| +0 −10 | .secrets.baseline | |
| +2 −2 | module-assets/.pre-commit-config.yaml | |
| +20 −2 | module-assets/ci/.typos.toml | |
| +0 −82 | module-assets/ci/cra-tf-validate-ignore-goals.json | |
| +37 −34 | module-assets/ci/install-deps.sh | |
| +0 −158 | module-assets/ci/run-cra-scc-v2.sh | |
| +0 −118 | module-assets/ci/run-cra.sh | |
| +1 −3 | module-assets/ci/run-tests.sh | |
| +1 −1 | scripts/update-source/README.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,18 @@ | ||
| resource "null_resource" "install_dependencies" { | ||
| count = var.install_dependencies ? 1 : 0 | ||
| # change trigger to run every time | ||
| triggers = { | ||
| build_number = timestamp() | ||
|
||
| } | ||
| provisioner "local-exec" { | ||
| command = "${path.module}/scripts/install-deps.sh" | ||
| interpreter = ["/bin/bash", "-c"] | ||
| environment = { | ||
| DISABLE_EXTERNAL_DOWNLOADS = var.disable_external_binary_download | ||
| } | ||
| } | ||
| } | ||
|
|
||
| data "ibm_container_cluster_config" "cluster_config" { | ||
| cluster_name_id = var.cluster_id | ||
| config_dir = "${path.module}/kubeconfig" | ||
|
|
@@ -19,6 +34,7 @@ locals { | |
| } | ||
|
|
||
| resource "null_resource" "set_audit_log_policy" { | ||
| depends_on = [null_resource.install_dependencies] | ||
| triggers = { | ||
| audit_log_policy = var.audit_log_policy | ||
| } | ||
|
|
@@ -40,7 +56,7 @@ locals { | |
| } | ||
|
|
||
| resource "helm_release" "kube_audit" { | ||
| depends_on = [null_resource.set_audit_log_policy, data.ibm_container_vpc_cluster.cluster] | ||
| depends_on = [null_resource.install_dependencies, null_resource.set_audit_log_policy, data.ibm_container_vpc_cluster.cluster] | ||
| name = var.audit_deployment_name | ||
| chart = local.kube_audit_chart_location | ||
| timeout = 1200 | ||
|
|
@@ -96,7 +112,7 @@ locals { | |
| # } | ||
|
|
||
| resource "null_resource" "set_audit_webhook" { | ||
| depends_on = [time_sleep.wait_for_kube_audit] | ||
| depends_on = [time_sleep.wait_for_kube_audit, null_resource.install_dependencies] | ||
| triggers = { | ||
| audit_log_policy = var.audit_log_policy | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.