util

package
v2.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendKustomizeIntegration

func AppendKustomizeIntegration(dstIt *v1.Integration, destinationDir string, overwrite bool) error

AppendKustomizeIntegration creates a Kustomize GitOps based directory structure for the chosen Integration.

func AppendKustomizePipe

func AppendKustomizePipe(dstPipe *v1.Pipe, destinationDir string, overwrite bool) error

AppendKustomizePipe creates a Kustomize GitOps based directory structure for the chosen Pipe.

func CloneGitProject

func CloneGitProject(gitConf v1.GitConfigSpec, dir, secretToken string) (*git.Repository, error)

CloneGitProject is in charge to clone the project from a given Git repo configuration. If no secretToken is provided, then, it is assumed the project is public.

func EditIntegration

func EditIntegration(it *v1.Integration, kit *v1.IntegrationKit, toNamespace, toOperator string) *v1.Integration

EditIntegration is in charge to create an Integration with the content required by the GitOps operations.

func EditPipe

func EditPipe(kb *v1.Pipe, it *v1.Integration, kit *v1.IntegrationKit, toNamespace, toOperator string) *v1.Pipe

EditPipe is in charge to create a Pipe with the content required by the GitOps operations.

func GitToken

func GitToken(ctx context.Context, c client.Client, namespace, secret string) (string, error)

GitToken read the first secret data provided by the Integration Git Secret. Returns an empty string if the secret provided is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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