Documentation ¶
Index ¶
- func CreateK8SObjects(c client.Client, ctx context.Context, obj ...client.Object) error
- func DeleteK8SObjects(c client.Client, ctx context.Context, obj ...client.Object) error
- func FluxCleanUp(k client.Client, ctx context.Context, log log.Logger, ns string) error
- func GenK8SSecret(a argo.GitDirApplicationSet) *apiv1.Secret
- func MigrateHelmReleaseToApplication(c client.Client, ctx context.Context, ans string, h helmv2.HelmRelease) error
- func MigrateKustomizationToApplicationSet(c client.Client, ctx context.Context, ans string, k kustomizev1.Kustomization, ...) error
- func NewRestConfig(kubeConfigPath string) (*rest.Config, error)
- func SuspendFluxObject(c client.Client, ctx context.Context, obj ...client.Object) error
- func TruncMsg(msg string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateK8SObjects ¶
CreateK8SObjects Creates Kubernetes Objects on the Cluster based on the schema passed in the client.
func DeleteK8SObjects ¶
DeleteK8SObjects Deletes Kubernetes Objects on the Cluster based on the schema passed in the client.
func FluxCleanUp ¶
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 ¶
NewRestClient returns a rest.Config
func SuspendFluxObject ¶
SuspendFluxObject suspends Flux specific objects based on the schema passed in the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.