utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySecretsFromFolder

func ApplySecretsFromFolder(secretsFolder string, namespace string) error

ApplySecretsFromFolder applies all secrets from a folder using kubectl

func CreateFolder

func CreateFolder(path string) error

Create folder (clear its content if it exists)

func DeleteApplications

func DeleteApplications() error

DeleteApplications deletes all Argo CD applications

func DeleteManifest

func DeleteManifest(filePath string) error

DeleteManifest deletes a Kubernetes manifest file using kubectl

func KubectlApply

func KubectlApply(path string, extraArgs ...string) error

KubectlApply applies a Kubernetes manifest file using kubectl

func RemoveObstructiveFinalizers

func RemoveObstructiveFinalizers() error

RemoveObstructiveFinalizers removes finalizers from applications that would prevent deletion

func RunCommand

func RunCommand(cmd string) (string, error)

RunCommand executes a command and returns its output

func WriteFile

func WriteFile(path string, content string) error

WriteFile writes content to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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