git

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(
	ctx context.Context,
	client k8sClient.Client,
	gitSync *v1alpha1.GitSync,
	globalConfig controllerConfig.GlobalConfig,
) (*git.Repository, error)

func GetLatestManifests

func GetLatestManifests(
	ctx context.Context,
	r *git.Repository,
	client k8sClient.Client,
	gitSync *v1alpha1.GitSync,
) (string, []*unstructured.Unstructured, error)

GetLatestManifests gets the latest manifests from the Git repository. TODO: fetches updates from the remote repository, checks the latest

commit hash against the stored hash in the GitSync object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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