pac

package
v0.41.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectPACInstallation

func DetectPACInstallation(ctx context.Context, wantedNamespace string) (bool, string, error)

DetectPACInstallation checks whether PAC is installed on the cluster Taken and slightly modified from https://github.com/openshift-pipelines/pipelines-as-code/blob/6a7f043f9bb51d04ab729505b26446695595df1f/pkg/cmd/tknpac/bootstrap/bootstrap.go

func DetectPACOpenShiftRoute

func DetectPACOpenShiftRoute(ctx context.Context, targetNamespace string) (string, error)

DetectPACOpenShiftRoute detect the openshift route where the pac controller is running Taken and slightly modified from https://github.com/openshift-pipelines/pipelines-as-code/blob/0d63e6239f4a7f1fc90decde1e0a154ed56ed0e7/pkg/cmd/tknpac/bootstrap/route.go

func GetPACInfo

func GetPACInfo(ctx context.Context, namespace string) (string, error)

GetPACInfo returns the controller url that PAC controller is running Taken and slightly modified from https://github.com/openshift-pipelines/pipelines-as-code/blob/0d63e6239f4a7f1fc90decde1e0a154ed56ed0e7/pkg/cli/info/configmap.go

func NewTektonPacClientAndResolvedNamespace

func NewTektonPacClientAndResolvedNamespace(namespace string) (*pacv1alpha1.PipelinesascodeV1alpha1Client, string, error)

NewTektonPacClientAndResolvedNamespace returns PipelinesascodeV1alpha1Client,namespace,error

Types

This section is empty.

Jump to

Keyboard shortcuts

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