utils

package
v0.0.0-...-e7a7093 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReleaseFinalizer                = "coveros.apps.genoa"
	AutoDeleteNamespaceAnnotation   = ReleaseFinalizer + "/autoDeleteNamespace"
	GitBranchToFollowAnnotation     = ReleaseFinalizer + "/follow-git-branch"
	SlackChannelIDAnnotation        = ReleaseFinalizer + "/notification-channel-id"
	EnvVarNotificationProvider      = "NOTIFICATION_PROVIDER"
	EnvVarNotificationProviderToken = "NOTIFICATION_PROVIDER_TOKEN"
)

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(whichFinalizer string, client client.Client, cr *v1alpha1.Release) error

func CreateRelease

func CreateRelease(hr *v1alpha1.Release, client client.Client) (*v1alpha1.Release, error)

func DownloadFile

func DownloadFile(filepath, url, username, password string) (err error)

func GetChannelIDForNotification

func GetChannelIDForNotification(runtimeObjMeta metav1.ObjectMeta) string

func NewNotifier

func NewNotifier() cNotifyLib.Notify

func RemoveFinalizer

func RemoveFinalizer(whichFinalizer string, client client.Client, cr *v1alpha1.Release) error

func TrimSuffix

func TrimSuffix(s, suffix string) string

func UpdateCr

func UpdateCr(runtimeObj runtime.Object, client client.Client) error

func UpdateCrStatus

func UpdateCrStatus(runtimeObj runtime.Object, client2 client.Client) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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