Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "Landscape"
View Source
const ProjectConditionPrefix = "Project_"
Variables ¶
View Source
var FakeClientMappingsForTesting = map[string]client.Client{}
This map is meant for testing purposes only. If the Landscape controller reads an inline kubeconfig from a Landscape resource, it tries to find the raw bytes as a key in this map. If found, the corresponding client will be used instead of constructing one from the bytes.
Functions ¶
This section is empty.
Types ¶
type LandscapeReconciler ¶
type LandscapeReconciler struct { *shared.RuntimeConfiguration // TmpKubeconfigDir is a path to a directory where temporary kubeconfig files can be stored. // The directory will be created during startup, if it doesn't exist. TmpKubeconfigDir string }
func NewLandscapeReconciler ¶
func NewLandscapeReconciler(rc *shared.RuntimeConfiguration) *LandscapeReconciler
func (*LandscapeReconciler) SetupWithManager ¶
func (r *LandscapeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager. Uses WatchesRawSource() instead of For() because it doesn't watch the primary cluster of the manager.
type ReconcileResult ¶
type ReconcileResult = ctrlutils.ReconcileResult[*providerv1alpha1.Landscape, providerv1alpha1.ConditionStatus]
Click to show internal directories.
Click to hide internal directories.