adding platform agument
This commit is contained in:
parent
7a0a54b60b
commit
de990cdfb3
|
|
@ -1221,7 +1221,7 @@ resource "null_resource" "argocd_ready" {
|
||||||
namespace = var.argocd.namespace
|
namespace = var.argocd.namespace
|
||||||
version = var.argocd.version
|
version = var.argocd.version
|
||||||
node_selector = jsonencode(local.argocd_node_selector)
|
node_selector = jsonencode(local.argocd_node_selector)
|
||||||
readiness_check = "6"
|
readiness_check = "7"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "local-exec" {
|
provisioner "local-exec" {
|
||||||
|
|
@ -1262,22 +1262,9 @@ wait_for_argocd_component() {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Waiting for Argo CD $target pods with selector $selector..."
|
echo "Waiting for Argo CD $target rollout..."
|
||||||
for _ in $(seq 1 120); do
|
if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" rollout status "$target" --timeout=600s; then
|
||||||
pod_count="$(kubectl --kubeconfig "$kubeconfig" -n "$namespace" get pods -l "$selector" -o name 2>/dev/null | wc -l | tr -d ' ')"
|
echo "Timed out waiting for Argo CD $target rollout." >&2
|
||||||
if [ "$pod_count" -gt 0 ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 5
|
|
||||||
done
|
|
||||||
if [ "$pod_count" -eq 0 ]; then
|
|
||||||
echo "Timed out waiting for pods for Argo CD $target." >&2
|
|
||||||
dump_argocd_readiness_debug "$target" "$selector"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! kubectl --kubeconfig "$kubeconfig" -n "$namespace" wait --for=condition=Ready pod -l "$selector" --timeout=600s; then
|
|
||||||
echo "Timed out waiting for ready pods for Argo CD $target." >&2
|
|
||||||
dump_argocd_readiness_debug "$target" "$selector"
|
dump_argocd_readiness_debug "$target" "$selector"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
15
jeannie
15
jeannie
|
|
@ -5077,6 +5077,12 @@ apps() {
|
||||||
echo "Application deployment successfully completed."
|
echo "Application deployment successfully completed."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
platform_apply() {
|
||||||
|
require_debian_server "platform"
|
||||||
|
|
||||||
|
run_tofu_stack "bootstrap/platform"
|
||||||
|
}
|
||||||
|
|
||||||
edge_apply() {
|
edge_apply() {
|
||||||
require_debian_server "edge"
|
require_debian_server "edge"
|
||||||
|
|
||||||
|
|
@ -7853,6 +7859,7 @@ Operator View And Reports
|
||||||
Observability And GitOps
|
Observability And GitOps
|
||||||
grafana-dashboards {list|apply} List or apply repo-managed Grafana dashboards.
|
grafana-dashboards {list|apply} List or apply repo-managed Grafana dashboards.
|
||||||
gitops-status Print focused Argo CD health and sync status.
|
gitops-status Print focused Argo CD health and sync status.
|
||||||
|
platform Deploy platform stack only.
|
||||||
edge Deploy/check the OCI edge stack only.
|
edge Deploy/check the OCI edge stack only.
|
||||||
promote {plan|validate|rollback APP} Run canary promotion gates and rollback plan.
|
promote {plan|validate|rollback APP} Run canary promotion gates and rollback plan.
|
||||||
cert-check Check public DNS, TLS, and edge URL health.
|
cert-check Check public DNS, TLS, and edge URL health.
|
||||||
|
|
@ -7975,6 +7982,14 @@ case "${1:-}" in
|
||||||
gitops-status)
|
gitops-status)
|
||||||
gitops_status
|
gitops_status
|
||||||
;;
|
;;
|
||||||
|
platform)
|
||||||
|
record_change_journal "platform" "$@"
|
||||||
|
require_debian_server "platform"
|
||||||
|
jeannie_log_start "platform"
|
||||||
|
jeannie_step_plan 1
|
||||||
|
run_step "Platform OpenTofu apply" platform_apply
|
||||||
|
echo "Log: ${JEANNIE_LOG_FILE}"
|
||||||
|
;;
|
||||||
edge)
|
edge)
|
||||||
record_change_journal "edge" "$@"
|
record_change_journal "edge" "$@"
|
||||||
edge_apply
|
edge_apply
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue