-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
44 lines (36 loc) · 1.33 KB
/
outputs.tf
File metadata and controls
44 lines (36 loc) · 1.33 KB
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
output "namespace" {
description = "Namespace where ArgoCD is deployed"
value = var.namespace
}
output "release_name" {
description = "Helm release name"
value = helm_release.argocd.name
}
output "release_status" {
description = "Status of the Helm release"
value = helm_release.argocd.status
}
output "chart_version" {
description = "ArgoCD chart version deployed"
value = helm_release.argocd.version
}
output "admin_password_command" {
description = "Command to retrieve ArgoCD admin password"
value = "kubectl -n ${var.namespace} get secret argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d"
}
output "service_info_command" {
description = "Command to get ArgoCD server service information"
value = "kubectl -n ${var.namespace} get svc ${var.release_name}-server"
}
output "server_url" {
description = "ArgoCD server URL (domain-based)"
value = var.insecure_mode ? "http://${var.domain}" : "https://${var.domain}"
}
output "bootstrap_applicationset_enabled" {
description = "Whether bootstrap ApplicationSet is enabled"
value = var.bootstrap_applicationset_enabled
}
output "bootstrap_repo_url" {
description = "Git repository URL for bootstrap ApplicationSet"
value = var.bootstrap_applicationset_enabled ? var.bootstrap_repo_url : null
}