Documentation ¶
Index ¶
- Constants
- func AddFinalizer(meta *metav1.ObjectMeta) bool
- func ContainsString(slice []string, s string) bool
- func GetNamespaceOrDefault(namespace string) string
- func IgnoreNotFoundError(err error) error
- func IsNotFoundError(err error) bool
- func IsRequeueResponse(res ctrl.Result, err error) bool
- func MustParseTime(layout, str string) (t time.Time)
- func RemoveFinalizer(meta *metav1.ObjectMeta) bool
- func RemoveString(slice []string, s string) (result []string)
Constants ¶
const DefaultNamespace = "default"
DefaultNamespace is the default namespace of the Ververica Platform
const FinalizerName = "finalizers.fintechstudios.com"
FinalizerName is the name we use for finalizing K8s resources
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
func AddFinalizer(meta *metav1.ObjectMeta) bool
AddFinalizer adds the finalizer to a K8s resource's object metadata
func ContainsString ¶
ContainsString checks if a string is contained in a slice.
func GetNamespaceOrDefault ¶
GetNamespaceOrDefault will return either the given namespace, if valid, or the default Ververica Platform namespace
func IgnoreNotFoundError ¶
IgnoreNotFoundError returns nil for Swagger API 404 errors, otherwise the original error
func IsNotFoundError ¶
IsNotFoundError returns if an error is a 404
func IsRequeueResponse ¶
IsRequeueResponse determines whether or not a response will result in re-queueing the message
func MustParseTime ¶ added in v0.7.1
MustParseTime tries to parse a string into a time.Time and panics if there is an error
func RemoveFinalizer ¶
func RemoveFinalizer(meta *metav1.ObjectMeta) bool
RemoveFinalizer removes the finalizer from a K8s object metadata
func RemoveString ¶
RemoveString removes a string from a slice
Types ¶
This section is empty.