Documentation
¶
Index ¶
- Constants
- Variables
- func DaemonClient(address string) dv1connect.DaemonServiceClient
- type AppConfig
- type AppDatabase
- type AppPersistence
- type AppReconciler
- type AppRoute
- type AppSecret
- type AppService
- type AppValues
- type HelmChartVersion
- type HelmRepositoryIndex
- type InstallReconciler
- type SecretKey
Constants ¶
const ( InstallFinalizer = "install.home-cloud.io/finalizer" ReleasesURL = "https://github.com/home-cloud-io/core/releases/download/" DefaultDaemonAddress = "http://daemon.home-cloud-system" )
const AppFinalizer = "apps.home-cloud.io/finalizer"
const ( // if daemon is disabled, the user is responsible for creating this hostPath so that // Home Cloud can provision PersistentVolumes against it DefaultHostPath = "/mnt/home-cloud" )
const (
PostgresHostname = "postgres.postgres"
)
Variables ¶
var ( // TODO: get this value from the install GatewayName = "ingress-gateway" GatewayNamespace = gwv1.Namespace("istio-system") )
Functions ¶
func DaemonClient ¶ added in v0.1.1
func DaemonClient(address string) dv1connect.DaemonServiceClient
DaemonClient creates a DaemonServiceClient and defaults the address if not set
Types ¶
type AppConfig ¶ added in v0.0.2
type AppConfig struct {
Namespace string
Routes []AppRoute
Databases []AppDatabase
Persistence []AppPersistence
Secrets []AppSecret
}
type AppDatabase ¶ added in v0.0.2
type AppPersistence ¶ added in v0.0.2
type AppReconciler ¶
AppReconciler reconciles a App object
func (*AppReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile
func (*AppReconciler) SetupWithManager ¶
func (r *AppReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AppRoute ¶ added in v0.0.2
type AppRoute struct {
Name string
Service AppService
}
type AppService ¶ added in v0.0.2
type HelmChartVersion ¶
type HelmChartVersion struct {
APIVersion string `yaml:"apiVersion"`
AppVersion string `yaml:"appVersion"`
Created time.Time `yaml:"created"`
Description string `yaml:"description"`
Digest string `yaml:"digest"`
Name string `yaml:"name"`
Type string `yaml:"type"`
Urls []string `yaml:"urls"`
Version string `yaml:"version"`
}
HelmChartVersion represents the versions of the "entries" within a HelmRepositoryIndex
type HelmRepositoryIndex ¶
type HelmRepositoryIndex struct {
APIVersion string `yaml:"apiVersion"`
Entries map[string][]HelmChartVersion `yaml:"entries"`
Generated time.Time `yaml:"generated"`
}
HelmRepositoryIndex represents the index.yaml file that holds the information of helm charts within a helm repo
type InstallReconciler ¶ added in v0.1.1
InstallReconciler reconciles a Install object
func (*InstallReconciler) SetupWithManager ¶ added in v0.1.1
func (r *InstallReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.