argocd

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2021 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

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.

func Register added in v0.0.15

func Register(h ...Hook)

Register adds a modifier for updating resources during reconciliation.

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

func (r *ReconcileArgoCD) Reconcile(request reconcile.Request) (reconcile.Result, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL