utils

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateK8SObjects

func CreateK8SObjects(c client.Client, ctx context.Context, obj ...client.Object) error

CreateK8SObjects Creates Kubernetes Objects on the Cluster based on the schema passed in the client.

func DeleteK8SObjects

func DeleteK8SObjects(c client.Client, ctx context.Context, obj ...client.Object) error

DeleteK8SObjects Deletes Kubernetes Objects on the Cluster based on the schema passed in the client.

func FluxCleanUp

func FluxCleanUp(k client.Client, ctx context.Context, log log.Logger, ns string) error

FluxCleanUp cleans up flux resources

func GenK8SSecret

func GenK8SSecret(a argo.GitDirApplicationSet) *apiv1.Secret

GenK8SSecret generates a kubernetes secret using a clientset

func MigrateHelmReleaseToApplication

func MigrateHelmReleaseToApplication(c client.Client, ctx context.Context, ans string, h helmv2.HelmRelease) error

MigrateHelmReleaseToApplication migrates a HelmRelease to an Argo CD Application

func MigrateKustomizationToApplicationSet

func MigrateKustomizationToApplicationSet(c client.Client, ctx context.Context, ans string, k kustomizev1.Kustomization, exd []string) error

MigrateKustomizationToApplicationSet migrates a Kustomization to an Argo CD ApplicationSet

func NewRestConfig

func NewRestConfig(kubeConfigPath string) (*rest.Config, error)

NewRestClient returns a rest.Config

func SuspendFluxObject

func SuspendFluxObject(c client.Client, ctx context.Context, obj ...client.Object) error

SuspendFluxObject suspends Flux specific objects based on the schema passed in the client.

func TruncMsg

func TruncMsg(msg string) string

TruncMsg truncates a message to 71 characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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