kubernetes

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	client.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(l logr.Logger, c client.Client) *Client

func (Client) AddFinalizersToReviewApp

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

func (Client) ApplyReviewAppWithOwnerRef

func (c Client) ApplyReviewAppWithOwnerRef(ctx context.Context, ra models.ReviewApp, owner models.ReviewAppManager) error

func (Client) CreateJob

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

func (Client) DeleteReviewApp

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

func (Client) GetArgoCDAppFromReviewAppStatus

func (c Client) GetArgoCDAppFromReviewAppStatus(ctx context.Context, raStatus models.ReviewAppStatus) (models.Application, error)

func (Client) GetLatestJobFromLabel

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

func (Client) GetPreStopJobTemplate

func (c Client) GetPreStopJobTemplate(ctx context.Context, ra models.ReviewApp) (models.JobTemplate, error)

func (Client) GetReviewApp

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

func (Client) GetReviewAppManager

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

func (Client) GetSecretValue

func (c Client) GetSecretValue(ctx context.Context, namespace string, m models.AppOrInfraRepoTarget) (string, error)

func (Client) PatchReviewAppStatus added in v0.1.2

func (c Client) PatchReviewAppStatus(ctx context.Context, ra models.ReviewApp) error

func (Client) RemoveFinalizersFromReviewApp

func (c Client) RemoveFinalizersFromReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error

func (Client) UpdateReviewAppManagerStatus

func (c Client) UpdateReviewAppManagerStatus(ctx context.Context, ram models.ReviewAppManager) error

Jump to

Keyboard shortcuts

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