riders

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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