-
Notifications
You must be signed in to change notification settings - Fork 13
/
outputs.tf
51 lines (41 loc) · 1.97 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright (c) CloudBees, Inc.
output "merged_helm_config" {
description = "(merged) Helm configuration for CloudBees CI."
value = helm_release.cloudbees_ci
}
output "cbci_namespace" {
description = "Namespace for the CloudBees CI add-on."
value = helm_release.cloudbees_ci.namespace
}
output "cbci_oc_url" {
description = "Operations center URL for the CloudBees CI add-on using a subdomain and certificates."
value = "https://cjoc.${var.hosted_zone}"
}
output "cbci_domain_name" {
description = "Amazon Route 53 domain name to host CloudBees CI services."
value = var.hosted_zone
}
output "cbci_oc_pod" {
description = "Operations center pod for the CloudBees CI add-on."
value = "kubectl get pod -n ${helm_release.cloudbees_ci.namespace} cjoc-0"
}
output "cbci_oc_ing" {
description = "Operations center Ingress for the CloudBees CI add-on."
value = "kubectl get ing -n ${helm_release.cloudbees_ci.namespace} cjoc"
}
output "cbci_liveness_probe_int" {
description = "Operations center service internal liveness probe for the CloudBees CI add-on."
value = "kubectl exec -n ${helm_release.cloudbees_ci.namespace} -ti cjoc-0 --container jenkins -- curl -sSf localhost:8080/whoAmI/api/json?tree=authenticated > /dev/null"
}
output "cbci_liveness_probe_ext" {
description = "Operations center service external liveness probe for the CloudBees CI add-on."
value = "curl -sSf https://cjoc.${var.hosted_zone}/whoAmI/api/json?tree=authenticated > /dev/null"
}
output "cbci_sec_casc" {
description = "Optional. Kubernetes secrets name for CloudBees CI Casc."
value = local.create_secret_casc ? kubernetes_secret.cbci_sec_casc[0].metadata[0].name : "No secrets created"
}
output "cbci_sec_registry" {
description = "Optional. Kubernetes secrets name for CloudBees CI agents to authenticate the registry."
value = local.create_secret_reg ? kubernetes_secret.cbci_sec_reg[0].metadata[0].name : "No secrets created"
}