Documentation ¶
Index ¶
- Variables
- func CleanupBucketSourceAndHelm(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func CleanupBucketSourceAndKS(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func CreateIgnorer(gitRootDir string) *ignore.GitIgnore
- func EnablePortForwardingForDashboard(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) (func(), error)
- func ForwardPort(log logr.Logger, pod *corev1.Pod, cfg *rest.Config, specMap *PortForwardSpec, ...) error
- func GetNextPortForwardKey(portForwards map[rune]PortForwardShortcut) (rune, error)
- func InitializeRootDir(log logger.Logger, rootPath string) error
- func InitializeTargetDir(targetPath string) error
- func InstallDevBucketServer(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) (func(), []byte, error)
- func ReconcileDevBucketSourceAndHelm(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func ReconcileDevBucketSourceAndKS(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func SetupBucketSourceAndHelm(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func SetupBucketSourceAndKS(ctx context.Context, log logger.Logger, kubeClient client.Client, ...) error
- func ShowPortForwards(ctx context.Context, log clilogger.Logger, ...)
- func SyncDir(ctx context.Context, log logger.Logger, dir, bucket string, ...) error
- func UninstallDevBucketServer(ctx context.Context, log logger.Logger, kubeClient client.Client) error
- func WatchDirsForFileWalker(watcher *fsnotify.Watcher, ignorer *ignore.GitIgnore) func(path string, info os.FileInfo, err error) error
- type PortForwardShortcut
- type PortForwardSpec
- type SetupRunObjectParams
Constants ¶
This section is empty.
Variables ¶
var (
DevBucketContainerImage string
)
var PortForwardShortcutRunes = []rune{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'}
Functions ¶
func CleanupBucketSourceAndHelm ¶ added in v0.12.0
func CleanupBucketSourceAndHelm(ctx context.Context, log logger.Logger, kubeClient client.Client, namespace string) error
CleanupBucketSourceAndHelm removes the bucket source and ks
func CleanupBucketSourceAndKS ¶
func CleanupBucketSourceAndKS(ctx context.Context, log logger.Logger, kubeClient client.Client, namespace string) error
CleanupBucketSourceAndKS removes the bucket source and ks
func CreateIgnorer ¶
func EnablePortForwardingForDashboard ¶
func EnablePortForwardingForDashboard(ctx context.Context, log logger.Logger, kubeClient client.Client, config *rest.Config, namespace, podName, dashboardPort string) (func(), error)
EnablePortForwardingForDashboard enables port forwarding for the GitOps Dashboard.
func ForwardPort ¶
func GetNextPortForwardKey ¶ added in v0.13.0
func GetNextPortForwardKey(portForwards map[rune]PortForwardShortcut) (rune, error)
func InitializeRootDir ¶ added in v0.22.0
InitializeRootDir initializes the root directory (creates the .sourceignore file in it).
func InitializeTargetDir ¶
InitializeTargetDir initializes the target directory (creates the entrypoint Kustomization in it).
func InstallDevBucketServer ¶
func InstallDevBucketServer( ctx context.Context, log logger.Logger, kubeClient client.Client, config *rest.Config, httpPort, httpsPort int32, accessKey, secretKey []byte) (func(), []byte, error)
InstallDevBucketServer installs the dev bucket server, open port forwarding, and returns a function that can be used to the port forwarding.
func ReconcileDevBucketSourceAndHelm ¶ added in v0.12.0
func ReconcileDevBucketSourceAndHelm(ctx context.Context, log logger.Logger, kubeClient client.Client, namespace string, timeout time.Duration) error
ReconcileDevBucketSourceAndHelm reconciles the dev-bucket and dev-helm asynchronously.
func ReconcileDevBucketSourceAndKS ¶
func ReconcileDevBucketSourceAndKS(ctx context.Context, log logger.Logger, kubeClient client.Client, namespace string, timeout time.Duration) error
ReconcileDevBucketSourceAndKS reconciles the dev-bucket and dev-ks asynchronously.
func SetupBucketSourceAndHelm ¶ added in v0.12.0
func SetupBucketSourceAndKS ¶
func ShowPortForwards ¶ added in v0.13.0
func SyncDir ¶
func SyncDir(ctx context.Context, log logger.Logger, dir, bucket string, client *minio.Client, ignorer *ignore.GitIgnore) error
SyncDir recursively uploads all files in a directory to an S3 bucket with minio library
Types ¶
type PortForwardShortcut ¶ added in v0.13.0
type PortForwardSpec ¶
type PortForwardSpec struct { Namespace string Name string Kind string HostPort string ContainerPort string Map map[string]string }
func ParsePortForwardSpec ¶
func ParsePortForwardSpec(spec string) (*PortForwardSpec, error)
parse port forward specin the key-value format of "port=8000:8080,resource=svc/app,namespace=default"