Documentation ¶
Index ¶
- func CreateOrUpdate(ctx context.Context, c client.Client, r *routev1.Route, equal EqualityFunc, ...) error
- func Get(ctx context.Context, c client.Client, key client.ObjectKey) (*routev1.Route, error)
- func MutateTLSConfigOnly(current, desired *routev1.Route)
- func RouteTLSConfigEqual(current, desired *routev1.Route) bool
- type Builder
- type EqualityFunc
- type MutateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, c client.Client, r *routev1.Route, equal EqualityFunc, mutate MutateFunc) error
CreateOrUpdate attempts first to get the given route. If the route does not exist, the route will be created. Otherwise, if the route exists and the provided comparison func detects any changes an update is attempted. Updates are retried with backoff (See retry.DefaultRetry). Returns on failure an non-nil error.
func MutateTLSConfigOnly ¶
MutateTLSConfigOnly is a default mutate implementation that copies only the route's tls config from desired to current.
func RouteTLSConfigEqual ¶
RouteTLSConfigEqual returns true only if the routes are equal in tls configs.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder represents the struct to build openshift api route objects
type EqualityFunc ¶
EqualityFunc is the type for functions that compare two routes. Return true if two route are equal.
type MutateFunc ¶
MutateFunc is the type for functions that mutate the current route by applying the values from the desired route.