operator

package
v0.0.0-...-bf8a5f7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertClusterRoleNotPresent

func AssertClusterRoleNotPresent(clients *clients.Clients, clusterRoleName string)

func AssertClusterRolePresent

func AssertClusterRolePresent(clients *clients.Clients, clusterRoleName string)

func AssertConfigMapNotPresent

func AssertConfigMapNotPresent(clients *clients.Clients, ns, configMapName string)

func AssertConfigMapPresent

func AssertConfigMapPresent(clients *clients.Clients, ns, configMapName string)

func AssertRoleBindingNotPresent

func AssertRoleBindingNotPresent(clients *clients.Clients, ns, roleBindingName string)

func AssertRoleBindingPresent

func AssertRoleBindingPresent(clients *clients.Clients, ns, roleBindingName string)

func AssertSCCNotPresent

func AssertSCCNotPresent(clients *clients.Clients, sccName string)

func AssertSCCPresent

func AssertSCCPresent(clients *clients.Clients, sccName string)

func AssertServiceAccountNotPresent

func AssertServiceAccountNotPresent(clients *clients.Clients, ns, targetSA string)

func AssertServiceAccountPresent

func AssertServiceAccountPresent(clients *clients.Clients, ns, targetSA string)

func AssertTektonAddonCRReadyStatus

func AssertTektonAddonCRReadyStatus(clients *clients.Clients, names utils.ResourceNames)

AssertTektonAddonCRReadyStatus verifies if the TektonAddon reaches the READY status.

func AssertTektonConfigCRReadyStatus

func AssertTektonConfigCRReadyStatus(clients *clients.Clients, names utils.ResourceNames)

AssertTektonConfigCRReadyStatus verifies if the TektonConfig reaches the READY status.

func AssertTektonPipelineCRReadyStatus

func AssertTektonPipelineCRReadyStatus(clients *clients.Clients, names utils.ResourceNames)

AssertTektonPipelineCRReadyStatus verifies if the TektonPipeline reaches the READY status.

func AssertTektonTriggerCRReadyStatus

func AssertTektonTriggerCRReadyStatus(clients *clients.Clients, names utils.ResourceNames)

AssertTektonTriggerCRReadyStatus verifies if the TektonTrigger reaches the READY status.

func CheckAttestationExists

func CheckAttestationExists()

func CreateFileWithCosignPubKey

func CreateFileWithCosignPubKey()

func CreateResultsRoute

func CreateResultsRoute()

func CreateSecretsForTektonResults

func CreateSecretsForTektonResults()

func CreateSigningSecretForTektonChains

func CreateSigningSecretForTektonChains()

func DeleteTektonConfigCR

func DeleteTektonConfigCR(cs *clients.Clients, rnames utils.ResourceNames)

func EnsureResultsReady

func EnsureResultsReady()

func EnsureTektonAddonExists

func EnsureTektonAddonExists(clients operatorv1alpha1.TektonAddonInterface, names utils.ResourceNames) (*v1alpha1.TektonAddon, error)

EnsureTektonAddonExists creates a TektonAddon with the name names.TektonAddon, if it does not exist.

func EnsureTektonAddonsStatusInstalled

func EnsureTektonAddonsStatusInstalled(clients operatorv1alpha1.TektonAddonInterface, names utils.ResourceNames)

func EnsureTektonConfigExists

func EnsureTektonConfigExists(clients configv1alpha1.TektonConfigInterface, names utils.ResourceNames) (*v1alpha1.TektonConfig, error)

EnsureTektonConfigExists creates a TektonConfig with the name names.TektonConfig, if it does not exist.

func EnsureTektonConfigStatusInstalled

func EnsureTektonConfigStatusInstalled(clients configv1alpha1.TektonConfigInterface, names utils.ResourceNames)

func EnsureTektonHubsExists

func EnsureTektonHubsExists(clients hubv1alpha.TektonHubInterface, names utils.ResourceNames) (*v1alpha1.TektonHub, error)

func EnsureTektonPipelineExists

func EnsureTektonPipelineExists(clients pipelinev1alpha1.TektonPipelineInterface, names utils.ResourceNames) (*v1alpha1.TektonPipeline, error)

EnsureTektonPipelineExists creates a TektonPipeline with the name names.TektonPipeline, if it does not exist.

func EnsureTektonTriggerExists

func EnsureTektonTriggerExists(clients triggerv1alpha1.TektonTriggerInterface, names utils.ResourceNames) (*v1alpha1.TektonTrigger, error)

EnsureTektonTriggerExists creates a TektonTrigger with the name names.TektonTrigger, if it does not exist.

func GetImageUrlAndDigest

func GetImageUrlAndDigest() (string, string)

func GetResultsAnnotations

func GetResultsAnnotations(resourceType string) (string, string, string)

func GetResultsApi

func GetResultsApi() string

func IsTektonAddonReady

func IsTektonAddonReady(s *v1alpha1.TektonAddon, err error) (bool, error)

IsTektonAddonReady will check the status conditions of the TektonAddon and return true if the TektonAddon is ready.

func IsTektonConfigReady

func IsTektonConfigReady(s *v1alpha1.TektonConfig, err error) (bool, error)

IsTektonConfigReady will check the status conditions of the TektonConfig and return true if the TektonConfig is ready.

func IsTektonPipelineReady

func IsTektonPipelineReady(s *v1alpha1.TektonPipeline, err error) (bool, error)

IsTektonPipelineReady will check the status conditions of the TektonPipeline and return true if the TektonPipeline is ready.

func IsTektonTriggerReady

func IsTektonTriggerReady(s *v1alpha1.TektonTrigger, err error) (bool, error)

IsTektonTriggerReady will check the status conditions of the TektonTrigger and return true if the TektonTrigger is ready.

func StartKanikoTask

func StartKanikoTask()

func TektonAddonCRDelete

func TektonAddonCRDelete(clients *clients.Clients, crNames utils.ResourceNames)

TektonAddonCRDelete deletes tha TektonAddon to see if all resources will be deleted

func TektonConfigCRDelete

func TektonConfigCRDelete(clients *clients.Clients, crNames utils.ResourceNames)

TektonConfigCRDelete deletes tha TektonConfig to see if all resources will be deleted

func TektonPipelineCRDelete

func TektonPipelineCRDelete(clients *clients.Clients, crNames utils.ResourceNames)

TektonPipelineCRDelete deletes tha TektonPipeline to see if all resources will be deleted

func TektonTriggerCRDelete

func TektonTriggerCRDelete(clients *clients.Clients, crNames utils.ResourceNames)

TektonTriggerCRDelete deletes tha TektonTrigger to see if all resources will be deleted

func Uninstall

func Uninstall(cs *clients.Clients, rnames utils.ResourceNames)

Uninstall helps you to delete operator and it's traces if any from cluster

func ValidateChainsDeployments

func ValidateChainsDeployments(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateHubDeployments

func ValidateHubDeployments(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateManualApprovalGateDeployments

func ValidateManualApprovalGateDeployments(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateOperatorInstallStatus

func ValidateOperatorInstallStatus(cs *clients.Clients, rnames utils.ResourceNames)

func ValidatePipelineDeployments

func ValidatePipelineDeployments(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateRBAC

func ValidateRBAC(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateRBACAfterDisable

func ValidateRBACAfterDisable(cs *clients.Clients, rnames utils.ResourceNames)

func ValidateTriggerDeployments

func ValidateTriggerDeployments(cs *clients.Clients, rnames utils.ResourceNames)

func VerifyAttestation

func VerifyAttestation()

func VerifyImageSignature

func VerifyImageSignature()

func VerifyResultsLogs

func VerifyResultsLogs(resourceType string)

func VerifyResultsRecords

func VerifyResultsRecords(resourceType string)

func VerifyResultsStored

func VerifyResultsStored(resourceType string)

func VerifySignature

func VerifySignature(resourceType string)

func WaitForTektonAddonState

func WaitForTektonAddonState(clients operatorv1alpha1.TektonAddonInterface, name string,
	inState func(s *v1alpha1.TektonAddon, err error) (bool, error)) (*v1alpha1.TektonAddon, error)

WaitForTektonAddonState polls the status of the TektonAddon called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonConfigCR

func WaitForTektonConfigCR(cs *clients.Clients, rnames utils.ResourceNames)

func WaitForTektonConfigState

func WaitForTektonConfigState(clients configv1alpha1.TektonConfigInterface, name string,
	inState func(s *v1alpha1.TektonConfig, err error) (bool, error)) (*v1alpha1.TektonConfig, error)

WaitForTektonConfigState polls the status of the TektonConfig called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonPipelineState

func WaitForTektonPipelineState(clients pipelinev1alpha1.TektonPipelineInterface, name string,
	inState func(s *v1alpha1.TektonPipeline, err error) (bool, error)) (*v1alpha1.TektonPipeline, error)

WaitForTektonPipelineState polls the status of the TektonPipeline called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

func WaitForTektonTriggerState

func WaitForTektonTriggerState(clients triggerv1alpha1.TektonTriggerInterface, name string,
	inState func(s *v1alpha1.TektonTrigger, err error) (bool, error)) (*v1alpha1.TektonTrigger, error)

WaitForTektonTriggerState polls the status of the TektonTrigger called name from client every `interval` until `inState` returns `true` indicating it is done, returns an error or timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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