delete

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

func Register

func Register(app *nabat.App)

Register adds the delete command to app.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL