Documentation
¶
Index ¶
- Constants
- func CreateDefaultConfigurationConfigMap(ctx context.Context, c client.Client, namespace string) error
- func GetConfigurationData(ctx context.Context, c client.Client, namespace string) (map[string]string, error)
- type ClusterDeploymentReconciler
- type ClusterInstanceReconciler
- type ConfigurationMonitor
Constants ¶
const ( DefaultDeletionRequeueDelay = 1 * time.Minute DefaultValidationErrorDelay = 30 * time.Second DefaultTemplateRenderingErrorDelay = 30 * time.Second )
Default Requeue delays
const ( // SiteConfigOperatorConfigMap defines the name of the ConfigMap used to manage // the SiteConfig Operator's runtime configuration. SiteConfigOperatorConfigMap = "siteconfig-operator-configuration" // RequeueDelay defines the default requeue delay on transient errors. RequeueDelay = 30 * time.Second )
const ClusterInstanceFieldManager = "siteconfig-controller"
ClusterInstanceFieldManager is the field manager name used for Server-Side Apply operations
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClusterDeploymentReconciler ¶
ClusterDeploymentReconciler reconciles a ClusterDeployment object to update the ClusterInstance cluster deployment status conditions
func (*ClusterDeploymentReconciler) SetupWithManager ¶
func (r *ClusterDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterInstanceReconciler ¶
type ClusterInstanceReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Log *zap.Logger TmplEngine *ci.TemplateEngine ConfigStore *configuration.ConfigurationStore DeletionHandler *deletion.DeletionHandler ReinstallHandler *reinstall.ReinstallHandler }
ClusterInstanceReconciler reconciles a ClusterInstance object
func (*ClusterInstanceReconciler) Reconcile ¶
func (r *ClusterInstanceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*ClusterInstanceReconciler) SetupWithManager ¶
func (r *ClusterInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ConfigurationMonitor ¶
type ConfigurationMonitor struct { client.Client Log *zap.Logger Scheme *runtime.Scheme // Namespace containing the ConfigMap Namespace string // Store for runtime configuration ConfigStore *configuration.ConfigurationStore }
ConfigurationMonitor watches for changes to a specific ConfigMap and updates the SiteConfig Operator's runtime configuration accordingly.
func (*ConfigurationMonitor) Reconcile ¶
func (r *ConfigurationMonitor) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile processes events for the SiteConfig Configuration ConfigMap, ensuring the runtime configuration remains synchronized. Creates a default Configuration ConfigMap if one does not exist.
func (*ConfigurationMonitor) SetupWithManager ¶
func (r *ConfigurationMonitor) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager configures the controller to watch the SiteConfig configuration ConfigMap and process relevant events.
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |