Documentation ¶
Index ¶
- Constants
- func AddFinalizer(whichFinalizer string, client client.Client, cr *v1alpha1.Release) error
- func CreateRelease(hr *v1alpha1.Release, client client.Client) (*v1alpha1.Release, error)
- func DownloadFile(filepath, url, username, password string) (err error)
- func GetChannelIDForNotification(runtimeObjMeta metav1.ObjectMeta) string
- func NewNotifier() cNotifyLib.Notify
- func RemoveFinalizer(whichFinalizer string, client client.Client, cr *v1alpha1.Release) error
- func TrimSuffix(s, suffix string) string
- func UpdateCr(runtimeObj runtime.Object, client client.Client) error
- func UpdateCrStatus(runtimeObj runtime.Object, client2 client.Client) error
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 CreateRelease ¶
func DownloadFile ¶
func GetChannelIDForNotification ¶
func GetChannelIDForNotification(runtimeObjMeta metav1.ObjectMeta) string
func NewNotifier ¶
func NewNotifier() cNotifyLib.Notify
func RemoveFinalizer ¶
func TrimSuffix ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.