Documentation
¶
Index ¶
- func CreateDashboardObjects(log logger.Logger, name string, namespace string, username string, ...) ([]byte, error)
- func FindGitRepoDir() (string, error)
- func GenerateSecret(log logger.Logger, password string) (string, error)
- func GetFluxVersion(log logger.Logger, ctx context.Context, kubeClient client.Client) (string, error)
- func GetRelativePathToRootDir(rootDir string, path string) (string, error)
- func InstallDashboard(log logger.Logger, ctx context.Context, manager ResourceManagerForApply, ...) error
- func IsDashboardInstalled(log logger.Logger, ctx context.Context, kubeClient client.Client, name string, ...) bool
- func NewManager(log logger.Logger, ctx context.Context, kubeClient ctrlclient.Client, ...) (*ssa.ResourceManager, error)
- func ReadPassword(log logger.Logger) (string, error)
- func ReconcileDashboard(kubeClient client.Client, name string, namespace string, podName string, ...) error
- type ResourceManagerForApply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDashboardObjects ¶
func CreateDashboardObjects(log logger.Logger, name string, namespace string, username string, secret string, chartVersion string) ([]byte, error)
CreateDashboardObjects creates HelmRepository and HelmRelease objects for the GitOps Dashboard installation.
func FindGitRepoDir ¶
FindGitRepoDir finds git repo root directory
func GetFluxVersion ¶
func GetRelativePathToRootDir ¶
GetRelativePathToRootDir gets relative path to a directory from the git root. It returns an error if there's no git repo.
func InstallDashboard ¶
func InstallDashboard(log logger.Logger, ctx context.Context, manager ResourceManagerForApply, manifests []byte) error
InstallDashboard installs the GitOps Dashboard.
func IsDashboardInstalled ¶
func IsDashboardInstalled(log logger.Logger, ctx context.Context, kubeClient client.Client, name string, namespace string) bool
IsDashboardInstalled checks if the GitOps Dashboard is installed.
func NewManager ¶
func NewManager(log logger.Logger, ctx context.Context, kubeClient ctrlclient.Client, kubeConfigArgs genericclioptions.RESTClientGetter) (*ssa.ResourceManager, error)
Types ¶
type ResourceManagerForApply ¶
type ResourceManagerForApply interface { ApplyAll(ctx context.Context, objects []*unstructured.Unstructured, opts ssa.ApplyOptions) (*ssa.ChangeSet, error) WaitForSet(set object.ObjMetadataSet, opts ssa.WaitOptions) error }
Click to show internal directories.
Click to hide internal directories.