Documentation ¶
Index ¶
- func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) (controllerutil.OperationResult, error)
- func DecodeYamlToUnstructured(data []byte) (*unstructured.Unstructured, error)
- func ErrorListToError(errorList field.ErrorList) error
- func EvaluateTemplate(t *template.Template, data interface{}) string
- func GenerateRandom(n int) string
- func GetBytes(key interface{}) ([]byte, error)
- func GetSecretDataHash(secret *corev1.Secret) uint32
- func Hash(data []byte) string
- func HashFNV(s string) string
- func ImagePullPolicyByTag(image string) corev1.PullPolicy
- func ParseImageName(image string) (string, string, string, error)
- func RegisterExitHandlers(shutdownFuncs ...func()) (stop chan struct{})
- func RegisterOSExitHandlers(shutdownFuncs ...func()) (stop chan struct{})
- func SecretNamespaceAndName(secretName string, ing *networkingv1.Ingress) (string, string, error)
- func SimpleHash(obj interface{}) string
- func StringsEqual(left, right []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdate ¶
func CreateOrUpdate(ctx context.Context, c client.Client, obj client.Object) (controllerutil.OperationResult, error)
func DecodeYamlToUnstructured ¶
func DecodeYamlToUnstructured(data []byte) (*unstructured.Unstructured, error)
func ErrorListToError ¶
func EvaluateTemplate ¶
func GetSecretDataHash ¶
func ImagePullPolicyByTag ¶
func ImagePullPolicyByTag(image string) corev1.PullPolicy
func ParseImageName ¶
ParseImageName parses a docker image string into three parts: repo, tag and digest. If both tag and digest are empty, a default image tag will be returned.
func RegisterExitHandlers ¶
func RegisterExitHandlers(shutdownFuncs ...func()) (stop chan struct{})
func RegisterOSExitHandlers ¶
func RegisterOSExitHandlers(shutdownFuncs ...func()) (stop chan struct{})
func SecretNamespaceAndName ¶
func SimpleHash ¶
func SimpleHash(obj interface{}) string
func StringsEqual ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.