Documentation
¶
Overview ¶
Package delete implements the deployah delete command.
The command removes Helm releases and associated Kubernetes resources for a project environment. It supports dry-run preview, selective component deletion, and confirmation prompts before destructive work.
Register the command with Register on a nabat.dev/nabat.App instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeletePreview ¶
type DeletePreview struct {
Project string `json:"project" yaml:"project"`
Environment string `json:"environment" yaml:"environment"`
Release string `json:"release" yaml:"release"`
Namespace string `json:"namespace" yaml:"namespace"`
Status string `json:"status" yaml:"status"`
Revision int `json:"revision" yaml:"revision"`
LastDeployed string `json:"lastDeployed" yaml:"lastDeployed"`
Resources []ResourceInfo `json:"resources,omitempty" yaml:"resources,omitempty"`
}
DeletePreview is the structured representation of a dry-run delete operation, used for JSON/YAML output formats.
type Options ¶
type Options struct {
Project string `nabat:"project"`
Environment string `nabat:"environment"`
Yes bool `nabat:"yes"`
DryRun bool `nabat:"dry-run"`
ShowResources bool `nabat:"show-resources"`
Output string `nabat:"output"`
Wait bool `nabat:"wait"`
AllowMissingPlatform bool `nabat:"allow-missing-platform"`
}
Options holds command-line flags for delete.
type ResourceInfo ¶
type ResourceInfo struct {
APIVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
Name string `json:"name" yaml:"name"`
Detail string `json:"detail,omitempty" yaml:"detail,omitempty"`
}
ResourceInfo holds parsed metadata about a single Kubernetes resource from the Helm manifest.
Click to show internal directories.
Click to hide internal directories.