Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- func GenerateUniqueResourceName(argoComponentName string, cr *argoprojv1a1.ArgoCD) string
- func InspectCluster() error
- func IsPrometheusAPIAvailable() bool
- func IsRouteAPIAvailable() bool
- func Register(h ...Hook)
- type DexConnector
- type GrafanaConfig
- type GrafanaSecurityConfig
- type Hook
- type ReconcileArgoCD
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add creates a new ArgoCD Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
func GenerateUniqueResourceName ¶ added in v0.0.15
func GenerateUniqueResourceName(argoComponentName string, cr *argoprojv1a1.ArgoCD) string
GenerateUniqueResourceName generates unique names for cluster scoped resources
func InspectCluster ¶
func InspectCluster() error
InspectCluster will verify the availability of extra features available to the cluster, such as Prometheus and OpenShift Routes.
func IsPrometheusAPIAvailable ¶
func IsPrometheusAPIAvailable() bool
IsPrometheusAPIAvailable returns true if the Prometheus API is present.
func IsRouteAPIAvailable ¶
func IsRouteAPIAvailable() bool
IsRouteAPIAvailable returns true if the Route API is present.
Types ¶
type DexConnector ¶ added in v0.0.5
type DexConnector struct {
Config map[string]interface{} `yaml:"config,omitempty"`
ID string `yaml:"id"`
Name string `yaml:"name"`
Type string `yaml:"type"`
}
DexConnector represents an authentication connector for Dex.
type GrafanaConfig ¶
type GrafanaConfig struct {
// Security options
Security GrafanaSecurityConfig
}
GrafanaConfig represents the Grafana configuration options.
type GrafanaSecurityConfig ¶
type GrafanaSecurityConfig struct {
// AdminUser is the default admin user.
AdminUser string
// AdminPassword is the default admin password
AdminPassword string
// SecretKey is used for signing
SecretKey string
}
GrafanaSecurityConfig represents the Grafana security options.
type Hook ¶ added in v0.0.15
type Hook func(*argoprojv1alpha1.ArgoCD, interface{}, string) error
Hook changes resources as they are created or updated by the reconciler.
type ReconcileArgoCD ¶
type ReconcileArgoCD struct {
// contains filtered or unexported fields
}
ReconcileArgoCD reconciles a ArgoCD object
func (*ReconcileArgoCD) Reconcile ¶
Reconcile reads that state of the cluster for a ArgoCD object and makes changes based on the state read and what is in the ArgoCD.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.