riders

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExistingHashAnnotation

func GetExistingHashAnnotation(resource unstructured.Unstructured) string

get the current hash value from the annotation on the Rider resource

func GetRidersFromK8S

func GetRidersFromK8S(ctx context.Context, namespace string, ridersList []apiv1.RiderStatus, c client.Client) (unstructured.UnstructuredList, error)

Get the Rider Resources in K8S based on the resources named in []RiderStatus

func UpdateRidersInK8S

func UpdateRidersInK8S(
	ctx context.Context,
	child *unstructured.Unstructured,
	riderAdditions unstructured.UnstructuredList,
	riderModifications unstructured.UnstructuredList,
	riderDeletions unstructured.UnstructuredList,
	c client.Client) error

update the cluster according to the desired modifications to the resources (additions, mods, deletions)

func VerifyRidersPermitted

func VerifyRidersPermitted(riders []Rider) bool

Verify that the Riders' Groups/Kinds are permitted for deployment

func WithHashAnnotation

func WithHashAnnotation(ctx context.Context, resource unstructured.Unstructured) (unstructured.Unstructured, string, error)

create an annotation to preserve a hash of the Rider's metadata and spec, so that we can compare the new value to the existing value to know if there was a change

Types

type Rider

type Rider struct {
	// new definition
	Definition unstructured.Unstructured
	// type of change required
	RequiresProgressive bool
}

definition of a Rider to apply

func RidersExceptHPA added in v0.31.0

func RidersExceptHPA(newRiders []Rider) []Rider

RidersExceptHPA filters out any HorizontalPodAutoscaler riders from the list

Jump to

Keyboard shortcuts

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