cluster

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "DNSCluster"

	TargetClusterNamespace = "external-dns"

	SourceKindHelmRepository = "HelmRepository"
	SourceKindGitRepository  = "GitRepository"
	SourceKindOCIRepository  = "OCIRepository"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterReconciler

type ClusterReconciler struct {
	PlatformCluster *clusters.Cluster

	ProviderName            string
	ProviderNamespace       string
	Environment             string
	KnownClusters           map[types.NamespacedName]struct{}
	KnownClustersLock       *sync.RWMutex
	ClusterAccessReconciler accesslib.ClusterAccessReconciler
	// contains filtered or unexported fields
}

func NewClusterReconciler

func NewClusterReconciler(platformCluster *clusters.Cluster, recorder record.EventRecorder, providerName, providerNamespace, environment string) *ClusterReconciler

func (*ClusterReconciler) Reconcile

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ReconcileResult

type ReconcileResult struct {
	// Result is the result to return from the Reconcile function.
	Result reconcile.Result
	// ReconcileError is the error to return from the Reconcile function, if any occurred.
	ReconcileError errutils.ReasonableError
	// Config is the selected configuration that was applied to the Cluster, if it could be determined.
	Config *dnsv1alpha1.ExternalDNSPurposeConfig
	// SourceKind is the kind of Flux source that was deployed (HelmRepository, GitRepository, OCIRepository), if any.
	SourceKind string
	// AccessRequest is the AccessRequest that provides access to the Cluster, if access was successfully obtained.
	AccessRequest *clustersv1alpha1.AccessRequest
	// Access is the client that can be used to access the Cluster, if access was successfully obtained.
	Access *clusters.Cluster
	// Message is an optional message to be printed in the generated event.
	Message string
	// ProviderConfig is the complete provider configuration.
	ProviderConfig *dnsv1alpha1.DNSServiceConfig
	// PlatformService is the DNS PlatformService resource.
	PlatformService *providerv1alpha1.PlatformService
}

Jump to

Keyboard shortcuts

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