-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug-Fix: Discovery policy placement & scope updated (#69)
* policy scope bug fix
- Loading branch information
1 parent
0834572
commit 6321522
Showing
6 changed files
with
56 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,35 @@ | ||
locals { | ||
cmd_1_helm_repo_add = "helm repo add oci-onm https://oracle-quickstart.github.io/oci-kubernetes-monitoring" | ||
cmd_2_helm_repo_update = "helm repo update" | ||
|
||
helm_install_opt_entity_id = var.oke_cluster_entity_ocid == "DEFAULT" ? "" : "--set oci-onm-logan.ociLAClusterEntityID=${var.oke_cluster_entity_ocid}" | ||
|
||
cmd_3_helm_install = join(" ", [ | ||
"helm install oci-kubernetes-monitoring oci-onm/oci-onm", | ||
"--set global.namespace=${local.k8s_namespace}", | ||
"--set global.kubernetesClusterID=${var.oke_cluster_ocid}", | ||
"--set global.kubernetesClusterName=${var.oke_cluster_name}", | ||
"--set oci-onm-logan.ociLALogGroupID=${var.oci_la_logGroup_id}", | ||
"--set oci-onm-logan.ociLANamespace=${var.oci_la_namespace}", | ||
local.helm_install_opt_entity_id, | ||
"--set oci-onm-mgmt-agent.deployMetricServer=${var.opt_deploy_metric_server}", | ||
"--set oci-onm-mgmt-agent.mgmtagent.installKeyFileContent=${var.mgmt_agent_install_key_content}" | ||
]) | ||
} | ||
|
||
# Helm release artifacts for local testing and validation. | ||
output "helm_template" { | ||
value = var.generate_helm_template ? data.helm_template.oci-kubernetes-monitoring[0].manifest : null | ||
} | ||
|
||
output "cmd_1_helm_repo_add" { | ||
value = local.cmd_1_helm_repo_add | ||
} | ||
|
||
output "cmd_2_helm_repo_update" { | ||
value = local.cmd_2_helm_repo_update | ||
} | ||
|
||
output "cmd_3_helm_install" { | ||
value = local.cmd_3_helm_install | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters