# Cluster Deletion Confirmation Form
# Generated: {{ now_iso }}
# Purpose: Confirm destructive cluster deletion operation

[meta]
allow_cancel = true
description = "This action will permanently delete the entire cluster and all associated resources"
title = "Cluster Deletion Confirmation"

# ============================================================================
# CRITICAL WARNING SECTION
# ============================================================================

[items.critical_warning]
display_only = true
prompt = "🔴 CRITICAL: Cluster Deletion is Irreversible"
type = "text"

[items.warning_details]
display_only = true
help = """
• Permanently delete all nodes in the cluster
• Destroy all persistent volumes and data
• Terminate all running applications and services
• Remove all persistent configurations
• Make cluster inaccessible - cannot be recovered"""
prompt = "Cluster Deletion will:"
type = "text"

# ============================================================================
# CLUSTER INFORMATION
# ============================================================================

[items.cluster_info_header]
display_only = true
prompt = "Cluster to Delete"
type = "text"

[items.cluster_name]
default = "{{ cluster_name | default('unknown') }}"
display_only = true
prompt = "Cluster Name"
type = "text"

[items.cluster_type]
default = "{{ cluster_type | default('unknown') }}"
display_only = true
prompt = "Cluster Type"
type = "text"

[items.node_count]
default = "{{ node_count | default('unknown') }}"
display_only = true
prompt = "Number of Nodes"
type = "text"

[items.total_resources]
default = "{{ total_resources | default('unknown') }}"
display_only = true
help = "Approximate total CPU and memory that will be freed"
prompt = "Total Resources"
type = "text"

# ============================================================================
# DEPENDENT RESOURCES
# ============================================================================

[items.dependents_header]
display_only = true
prompt = "Resources That Will Be Deleted"
type = "text"

[items.deployments_count]
default = "{{ deployments_count | default('0') }}"
display_only = true
prompt = "Deployments"
type = "text"

[items.services_count]
default = "{{ services_count | default('0') }}"
display_only = true
prompt = "Services"
type = "text"

[items.volumes_count]
default = "{{ volumes_count | default('0') }}"
display_only = true
prompt = "Persistent Volumes"
type = "text"

# ============================================================================
# CONFIRMATION
# ============================================================================

[items.confirm_header]
display_only = true
prompt = "Final Confirmation Required"
type = "text"

[items.confirmation_text]
help = "You must type the exact phrase: DELETE CLUSTER"
prompt = "Type 'DELETE CLUSTER' to Confirm"
required = true
type = "text"

[items.understand_final]
help = "Check this box to acknowledge that you understand the consequences"
prompt = "I understand this operation is permanent and all data will be lost"
required = true
type = "confirm"

[items.proceed_final]
help = "This is the final confirmation. There is no undo."
prompt = "Delete cluster '{{ cluster_name | default('cluster') }}' with {{ node_count | default('all') }} nodes?"
required = true
type = "confirm"
