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.
Click to show internal directories.
Click to hide internal directories.