webhook

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Group   = "openshift-pipelines.org"
	Version = "v1alpha1"
	Kind    = "ApprovalTask"
)

Variables

This section is empty.

Functions

func CheckOtherUsersForInvalidChanges

func CheckOtherUsersForInvalidChanges(oldObjApprovers, newObjApprover []v1alpha1.ApproverDetails, currentUser string) bool

CheckOtherUsersForInvalidChanges validates that no other approvers inputs have been changed

func IsUserApprovalChanged

func IsUserApprovalChanged(oldObjApprovers, newObjApprovers []v1alpha1.ApproverDetails, currentUser string) (bool, error)

IsUserApprovalChanged checks if there is a valid input change for the current user.

func NewAdmissionController

func NewAdmissionController(ctx context.Context,
	name, path string,
	wc func(context.Context) context.Context,
	disallowUnknownFields bool,
) *controller.Impl

Types

This section is empty.

Jump to

Keyboard shortcuts

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