Documentation ¶
Index ¶
- func DetectPACInstallation(ctx context.Context) (bool, string, error)
- func DetectPACOpenShiftRoute(ctx context.Context, targetNamespace string) (string, error)
- func GetPACInfo(ctx context.Context, namespace string) (string, error)
- func NewTektonPacClientAndResolvedNamespace(namespace string) (*pacv1alpha1.PipelinesascodeV1alpha1Client, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectPACInstallation ¶
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 ¶
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 ¶
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.