resources

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

Package resources builds the version-gated StatefulSet for the version-matrix example.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseStatefulSet

func BaseStatefulSet(owner *app.ExampleApp) *appsv1.StatefulSet

BaseStatefulSet returns the desired-state StatefulSet for the given owner before any version-gated mutation is applied.

func ContainerImageMutation

func ContainerImageMutation(owner *app.ExampleApp) statefulset.Mutation

ContainerImageMutation pins the container image to the owner's version. It has no gate, so it fires at every version and anchors the always-on part of the firing set.

func NewStatefulSetResource

func NewStatefulSetResource(owner *app.ExampleApp) (*statefulset.Resource, error)

NewStatefulSetResource builds the StatefulSet for the owner with its version-gated mutations registered. The owner's Spec.Version drives every gate, so the same build wired through goldengen produces a distinct golden per gating regime.

func PeerDiscoveryPreV2Mutation added in v0.16.0

func PeerDiscoveryPreV2Mutation(version string) statefulset.Mutation

PeerDiscoveryPreV2Mutation sets the legacy peer-discovery environment variable. It fires only for versions below 2.0.0, where the newer discovery format is not yet available.

func PeerDiscoveryV2Mutation added in v0.16.0

func PeerDiscoveryV2Mutation(version string) statefulset.Mutation

PeerDiscoveryV2Mutation sets the peer-discovery environment variable introduced in 2.0.0. It fires only for versions at or above 2.0.0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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