Documentation
¶
Overview ¶
Package resources builds the version-gated StatefulSet for the version-matrix example.
Index ¶
- func BaseStatefulSet(owner *app.ExampleApp) *appsv1.StatefulSet
- func ClusterEnvPre89Mutation(version string) statefulset.Mutation
- func ClusterEnvUnified89Mutation(version string) statefulset.Mutation
- func ContainerImageMutation(owner *app.ExampleApp) statefulset.Mutation
- func NewStatefulSetResource(owner *app.ExampleApp) (*statefulset.Resource, error)
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.