features

package
v0.5.1 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: 5 Imported by: 0

Documentation

Overview

Package features provides sample mutations for the pv primitive example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleOperationalStatus

func ExampleOperationalStatus(phase corev1.PersistentVolumePhase) (concepts.OperationalStatusWithReason, error)

ExampleOperationalStatus demonstrates the default operational status handler by returning the status for a given PV phase.

func MountOptionsMutation

func MountOptionsMutation(version string, enabled bool) pv.Mutation

MountOptionsMutation adds NFS mount options when enabled. This is gated by a boolean condition.

func RetainPolicyMutation

func RetainPolicyMutation(version string, enabled bool) pv.Mutation

RetainPolicyMutation sets the reclaim policy to Retain when enabled. This is gated by a boolean condition.

func VersionLabelMutation

func VersionLabelMutation(version string) pv.Mutation

VersionLabelMutation sets the app.kubernetes.io/version label on the PersistentVolume. It is always enabled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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