features

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package features provides sample mutations for the pod primitive example.

These examples only mutate object metadata because most Pod spec fields are immutable after creation. Kubernetes does allow a small set of in-place updates (notably container images), but other fields such as env, args, and resources require the Pod to be deleted and recreated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TracingFeature

func TracingFeature(enabled bool) pod.Mutation

TracingFeature marks the pod as tracing-enabled via metadata. Controllers or sidecar injectors can watch the label and handle any required Pod replacement or injection.

func VersionFeature

func VersionFeature(version string) pod.Mutation

VersionFeature records the desired version on the pod as a label. It avoids mutating container images directly; while Kubernetes allows in-place image updates, this example keeps mutations in metadata only.

Types

This section is empty.

Jump to

Keyboard shortcuts

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