Documentation
¶
Index ¶
- Variables
- func CleanupBucketSourceAndKS(log logger.Logger, kubeClient client.Client, namespace string) error
- func CreateIgnorer(gitRootDir string) *ignore.GitIgnore
- func EnablePortForwardingForDashboard(log logger.Logger, kubeClient client.Client, config *rest.Config, ...) (func(), error)
- func ForwardPort(pod *corev1.Pod, cfg *rest.Config, specMap *PortForwardSpec, ...) error
- func InitializeTargetDir(targetPath string) error
- func InstallDevBucketServer(log logger.Logger, kubeClient client.Client, config *rest.Config) (func(), error)
- func ReconcileDevBucketSourceAndKS(log logger.Logger, kubeClient client.Client, namespace string, ...) error
- func SetupBucketSourceAndKS(log logger.Logger, kubeClient client.Client, namespace string, path string, ...) error
- func SyncDir(log logger.Logger, dir string, bucket string, client *minio.Client, ...) error
- func UninstallDevBucketServer(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 PortForwardSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DevBucketContainerImage = "ghcr.io/weaveworks/gitops-bucket-server@sha256:b0446a6c645b5d39cf0db558958bf28363aca3ea80dc9d593983173613a4f290"
)
Functions ¶
func CleanupBucketSourceAndKS ¶
CleanupBucketSourceAndKS removes the bucket source and ks
func CreateIgnorer ¶
func EnablePortForwardingForDashboard ¶
func EnablePortForwardingForDashboard(log logger.Logger, kubeClient client.Client, config *rest.Config, namespace string, podName string, dashboardPort string) (func(), error)
EnablePortForwardingForDashboard enables port forwarding for the GitOps Dashboard.
func ForwardPort ¶
func InitializeTargetDir ¶
func InstallDevBucketServer ¶
func InstallDevBucketServer(log logger.Logger, kubeClient client.Client, config *rest.Config) (func(), error)
InstallDevBucketServer installs the dev bucket server, open port forwarding, and returns a function that can be used to the port forwarding.
func ReconcileDevBucketSourceAndKS ¶
func ReconcileDevBucketSourceAndKS(log logger.Logger, kubeClient client.Client, namespace string, timeout time.Duration) error
ReconcileDevBucketSourceAndKS reconciles the dev-bucket and dev-ks asynchronously.
func SetupBucketSourceAndKS ¶
func SyncDir ¶
func SyncDir(log logger.Logger, dir string, bucket string, client *minio.Client, ignorer *ignore.GitIgnore) error
SyncDir recursively uploads all files in a directory to an S3 bucket with minio library
func UninstallDevBucketServer ¶
UninstallDevBucketServer deletes the dev-bucket namespace.
Types ¶
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"
Click to show internal directories.
Click to hide internal directories.