Documentation
¶
Index ¶
- func GetExistingHashAnnotation(resource unstructured.Unstructured) string
- func GetRidersFromK8S(ctx context.Context, namespace string, ridersList []apiv1.RiderStatus, ...) (unstructured.UnstructuredList, error)
- func UpdateRidersInK8S(ctx context.Context, child *unstructured.Unstructured, ...) error
- func VerifyRidersPermitted(riders []Rider) bool
- func WithHashAnnotation(ctx context.Context, resource unstructured.Unstructured) (unstructured.Unstructured, string, error)
- type Rider
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 ¶
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
Click to show internal directories.
Click to hide internal directories.