Documentation ¶
Index ¶
- func CreateTektonConfigWithProfileAndTargetNamespace(ctx context.Context, ...) (*tektonoperatorv1alpha1.TektonConfig, error)
- func GetTektonOperatorVersion(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (*version.Version, error)
- func IsTektonConfigPresent(ctx context.Context, ...) (bool, error)
- func IsTektonOperatorInstalled(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (bool, error)
- func IsTektonPipelinesInstalled(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (bool, error)
- func ReconcileTekton(ctx context.Context, crdClient crdclientv1.ApiextensionsV1Interface, ...) (*tektonoperatorv1alpha1.TektonConfig, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTektonConfigWithProfileAndTargetNamespace ¶
func CreateTektonConfigWithProfileAndTargetNamespace(ctx context.Context, client tektonoperatorclientv1alpha1.OperatorV1alpha1Interface, profile string, targetNamepsace string) (*tektonoperatorv1alpha1.TektonConfig, error)
CreateTektonConfigWithProfileAndTargetNamespace creates a TektonConfig object with the given profile and target namespace for Tekton components.
func GetTektonOperatorVersion ¶
func GetTektonOperatorVersion(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (*version.Version, error)
GetTektonOperatorVersion gets the semantic version of the installed Tekton operator. If the Tekton operator is not installed, or its semantic version could not be determined, this returns an error.
func IsTektonConfigPresent ¶
func IsTektonConfigPresent(ctx context.Context, client tektonoperatorclientv1alpha1.OperatorV1alpha1Interface) (bool, error)
IsTektonConfigPresent checks if at least one TektonConfig instance is present.
func IsTektonOperatorInstalled ¶
func IsTektonOperatorInstalled(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (bool, error)
IsTektonOperatorInstalled checks if the Tekton Operator has been installed on the cluster.
func IsTektonPipelinesInstalled ¶
func IsTektonPipelinesInstalled(ctx context.Context, client crdclientv1.ApiextensionsV1Interface) (bool, error)
IsTektonPipelinesInstalled checks if Tekton has been installed on the cluster.
func ReconcileTekton ¶
func ReconcileTekton(ctx context.Context, crdClient crdclientv1.ApiextensionsV1Interface, tektonOperatorClient tektonoperatorclientv1alpha1.OperatorV1alpha1Interface) (*tektonoperatorv1alpha1.TektonConfig, bool, error)
ReconcileTekton ensures that Tekton Pipelines has been installed. If Tekton Pipelines has not been installed, ReconcileTekton will create a TektonConfig object so that the Tekton Operator deploys Tekton Pipelines.
Types ¶
This section is empty.