volume

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package volume implements `kuke create volume <name>` (issue #1236, step 2 of the volumes epic #1015). Unlike `kuke create blueprint` — which scaffolds a YAML document to stdout because a CellBlueprint is declaratively complex — a Volume's spec is empty and the resource is the on-host directory the daemon provisions, so this verb is imperative like `kuke create secret`: it persists the Volume to the daemon and prints the outcome. A Volume is scopable at realm/space/stack only; cell scope is structurally unrepresentable (there is no --cell flag), satisfying the AC's "cell scope rejected".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVolumeCmd

func NewVolumeCmd() *cobra.Command

NewVolumeCmd builds `kuke create volume <name>` (issue #1236).

Types

type MockControllerKey

type MockControllerKey struct{}

MockControllerKey is used to inject a mock kukeonv1.Client via context in tests.

Jump to

Keyboard shortcuts

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