resources

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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 ClusterEnvPre89Mutation

func ClusterEnvPre89Mutation(version string) statefulset.Mutation

ClusterEnvPre89Mutation sets the pre-8.9 cluster-coordination environment variable. It fires only for versions below 8.9.0, where the unified protocol is not yet available.

func ClusterEnvUnified89Mutation

func ClusterEnvUnified89Mutation(version string) statefulset.Mutation

ClusterEnvUnified89Mutation sets the unified cluster-coordination environment variable introduced in 8.9.0. It fires only for versions at or above 8.9.0.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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