kubernetes

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizersToReviewApp

func AddFinalizersToReviewApp(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, finalizers ...string) error

func ApplyReviewAppWithOwnerRef

func ApplyReviewAppWithOwnerRef(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, owner metav1.Object) error

func CreateJob added in v0.0.7

func CreateJob(ctx context.Context, c client.Client, job *batchv1.Job) error

func DeleteReviewApp

func DeleteReviewApp(ctx context.Context, c client.Client, namespace, name string) error

func GetApplicationTemplate

func GetApplicationTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ApplicationTemplate, error)

func GetArgoCDAppAnnotation

func GetArgoCDAppAnnotation(ctx context.Context, c client.Client, namespace, name, annotationKey string) (string, error)

func GetJobTemplate added in v0.0.7

func GetJobTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.JobTemplate, error)

func GetLatestJobFromLabel added in v0.0.7

func GetLatestJobFromLabel(ctx context.Context, c client.Client, namespace, labelKey, labelValue string) (*batchv1.Job, error)

func GetManifestsTemplate

func GetManifestsTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ManifestsTemplate, error)

func GetReviewApp

func GetReviewApp(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ReviewApp, error)

func GetReviewAppManager

func GetReviewAppManager(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ReviewAppManager, error)

func GetSecretValue

func GetSecretValue(ctx context.Context, c client.Client, namespace, name, key string) (string, error)

func PickJobObjectFromObjectStr added in v0.0.7

func PickJobObjectFromObjectStr(ctx context.Context, objectStr string) (*batchv1.Job, error)

func PickNamespacedNameFromObjectStr

func PickNamespacedNameFromObjectStr(ctx context.Context, objectStr string) (types.NamespacedName, error)

func PickVariablesFromReviewApp added in v0.0.3

func PickVariablesFromReviewApp(ctx context.Context, ra *dreamkastv1alpha1.ReviewApp) map[string]string

func PickVariablesFromReviewAppManager

func PickVariablesFromReviewAppManager(ctx context.Context, ram *dreamkastv1alpha1.ReviewAppManager) map[string]string

func RemoveFinalizersToReviewApp

func RemoveFinalizersToReviewApp(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, finalizers ...string) error

func SetAnnotationToObjectStr

func SetAnnotationToObjectStr(ctx context.Context, objectStr string, annotationKey, annotationValue string) (string, error)

func SetLabel added in v0.0.7

func SetLabel(ctx context.Context, obj client.Object, labelKey, labelValue string) error

func UpdateReviewAppManagerStatus

func UpdateReviewAppManagerStatus(ctx context.Context, c client.Client, ram *dreamkastv1alpha1.ReviewAppManager) error

func UpdateReviewAppStatus

func UpdateReviewAppStatus(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp) error

Types

type PullRequest

type PullRequest struct {
	Organization string
	Repository   string
	Number       int
}

Jump to

Keyboard shortcuts

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