internal/

directory
v0.0.0-...-658d539 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0

README

Internal Package

Low-level code that directly interacts with system components (Kubernetes, SSH, infrastructure).

✅ What Belongs Here

Direct, atomic operations on components:

// ✅ CORRECT: Single, direct operations
GetModule(ctx, config, name)
UpdateModule(ctx, config, module)
GetModuleConfig(ctx, config, name)

❌ What Does NOT Belong Here

Business logic that orchestrates multiple operations:

// ❌ INCORRECT: Combines multiple operations with logic
EnsureModuleEnabled(ctx, config, name)    // Checks + enables
CheckSnapshotControllerReady(ctx, config)  // Polls until ready
UpdateVirtualization(ctx, config, settings) // Validates + updates

Place these in higher-level packages pkg/deckhouse/, pkg/kubernetes, pkg/testkit etc.

Rule of Thumb

One function = one direct operation. If it does multiple things or contains business logic, it doesn't belong here.

Directories

Path Synopsis
infrastructure
ssh
kubernetes

Jump to

Keyboard shortcuts

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