queue

package
v1.8.8 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 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 *s2hv1beta1.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 *s2hv1beta1.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 *s2hv1beta1.Queue, err error)

EnsurePromoteToActiveComponents ensures that components were deployed with `active` config

func EnsurePullRequestComponents added in v1.7.0

func EnsurePullRequestComponents(c client.Client, teamName, namespace, queueName, prCompName, prNumber string,
	comps s2hv1beta1.QueueComponents, noOfRetry int) (q *s2hv1beta1.Queue, err 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 *s2hv1beta1.Queue,
	prQueueRPC *samsahairpc.TeamWithPullRequest,
) *samsahairpc.ComponentUpgrade

func New

func New(ns string, runtimeClient client.Client) internal.QueueController

New returns QueueController

func NewQueue added in v1.7.0

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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