Documentation
¶
Index ¶
- func CreateDashboardObjects(log logger.Logger, name string, namespace string, username string, ...) ([]byte, error)
- func GeneratePasswordHash(log logger.Logger, password string) (string, error)
- func GetFluxVersion(log logger.Logger, ctx context.Context, kubeClient client.Client) (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(ctx context.Context, kubeClient client.Client, name string, namespace string, ...) error
- func SanitizeResourceData(log logger.Logger, resourceData []byte) ([]byte, error)
- type ResourceManagerForApply
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDashboardObjects ¶
func CreateDashboardObjects(log logger.Logger, name string, namespace string, username string, passwordHash string, chartVersion string) ([]byte, error)
CreateDashboardObjects creates HelmRepository and HelmRelease objects for the GitOps Dashboard installation.
func GeneratePasswordHash ¶ added in v0.10.0
func GetFluxVersion ¶
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 }
type Session ¶ added in v0.10.0
type Session struct {
// contains filtered or unexported fields
}
func NewSession ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.