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