queue

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const CtrlName = "queue-ctrl"

Variables

This section is empty.

Functions

func DeleteDemoteFromActiveQueue

func DeleteDemoteFromActiveQueue(c client.Client, ns string) error

func DeletePreActiveQueue

func DeletePreActiveQueue(c client.Client, ns string) error

func DeletePromoteToActiveQueue

func DeletePromoteToActiveQueue(c client.Client, ns string) error

func DeletePullRequestQueue added in v1.7.0

func DeletePullRequestQueue(c client.Client, ns, queueName string) error

func EnsureDemoteFromActiveComponents

func EnsureDemoteFromActiveComponents(c client.Client, teamName, namespace string) (q *s2hv1.Queue, err error)

EnsureDemoteFromActiveComponents ensures that components were deployed without `active` config

func EnsurePreActiveComponents

func EnsurePreActiveComponents(c client.Client, teamName, namespace string, skipTest bool) (q *s2hv1.Queue, err error)

EnsurePreActiveComponents ensures that components were deployed with `pre-active` config and tested

func EnsurePromoteToActiveComponents

func EnsurePromoteToActiveComponents(c client.Client, teamName, namespace string) (q *s2hv1.Queue, err error)

EnsurePromoteToActiveComponents ensures that components were deployed with `active` config

func EnsurePullRequestComponents added in v1.7.0

func EnsurePullRequestComponents(c client.Client, q *s2hv1.Queue) error

EnsurePullRequestComponents ensures that pull request components were deployed with `pull-request` config and tested

func GetComponentUpgradeRPCFromQueue added in v1.7.0

func GetComponentUpgradeRPCFromQueue(
	comStatus samsahairpc.ComponentUpgrade_UpgradeStatus,
	queueHistName string,
	queueHistNamespace string,
	queue *s2hv1.Queue,
	prQueueRPC *samsahairpc.TeamWithPullRequest,
) *samsahairpc.ComponentUpgrade

func New

New returns QueueController

func NewInitialPullRequestQueue added in v1.11.5

func NewInitialPullRequestQueue(teamName, namespace, queueName, prBundleName, prNumber string,
	comps s2hv1.QueueComponents, noOfRetry int, extra *s2hv1.QueueExtraParameters) *s2hv1.Queue

NewInitialPullRequestQueue returns initial value of PullRequestQueue

func NewQueue added in v1.7.0

func NewQueue(teamName, namespace, name, bundle string, comps []*s2hv1.QueueComponent, queueType s2hv1.QueueType) *s2hv1.Queue

Types

This section is empty.

Jump to

Keyboard shortcuts

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