Documentation
¶
Index ¶
- Constants
- func TunnelNamespacedName(r GenericTunnelReconciler) apitypes.NamespacedName
- type ClusterTunnelAdapter
- func (o ClusterTunnelAdapter) DeepCopyTunnel() Tunnel
- func (o ClusterTunnelAdapter) GetAnnotations() map[string]string
- func (o ClusterTunnelAdapter) GetLabels() map[string]string
- func (o ClusterTunnelAdapter) GetName() string
- func (o ClusterTunnelAdapter) GetNamespace() string
- func (o ClusterTunnelAdapter) GetObject() client.Object
- func (o ClusterTunnelAdapter) GetSpec() networkingv1alpha2.TunnelSpec
- func (o ClusterTunnelAdapter) GetStatus() networkingv1alpha2.TunnelStatus
- func (o ClusterTunnelAdapter) GetUID() types.UID
- func (o ClusterTunnelAdapter) SetAnnotations(in map[string]string)
- func (o ClusterTunnelAdapter) SetLabels(in map[string]string)
- func (o ClusterTunnelAdapter) SetStatus(in networkingv1alpha2.TunnelStatus)
- type ClusterTunnelReconciler
- func (r *ClusterTunnelReconciler) GetCfAPI() *cf.API
- func (r *ClusterTunnelReconciler) GetCfSecret() *corev1.Secret
- func (r *ClusterTunnelReconciler) GetClient() client.Client
- func (r *ClusterTunnelReconciler) GetContext() context.Context
- func (r *ClusterTunnelReconciler) GetLog() logr.Logger
- func (r *ClusterTunnelReconciler) GetReconciledObject() client.Object
- func (r *ClusterTunnelReconciler) GetReconcilerName() string
- func (r *ClusterTunnelReconciler) GetRecorder() record.EventRecorder
- func (r *ClusterTunnelReconciler) GetScheme() *runtime.Scheme
- func (r *ClusterTunnelReconciler) GetTunnel() Tunnel
- func (r *ClusterTunnelReconciler) GetTunnelCreds() string
- func (r *ClusterTunnelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ClusterTunnelReconciler) SetCfAPI(in *cf.API)
- func (r *ClusterTunnelReconciler) SetTunnelCreds(in string)
- func (r *ClusterTunnelReconciler) SetupWithManager(mgr ctrl.Manager) error
- type GenericTunnelReconciler
- type Tunnel
- type TunnelAdapter
- func (o TunnelAdapter) DeepCopyTunnel() Tunnel
- func (o TunnelAdapter) GetAnnotations() map[string]string
- func (o TunnelAdapter) GetLabels() map[string]string
- func (o TunnelAdapter) GetName() string
- func (o TunnelAdapter) GetNamespace() string
- func (o TunnelAdapter) GetObject() client.Object
- func (o TunnelAdapter) GetSpec() networkingv1alpha2.TunnelSpec
- func (o TunnelAdapter) GetStatus() networkingv1alpha2.TunnelStatus
- func (o TunnelAdapter) GetUID() types.UID
- func (o TunnelAdapter) SetAnnotations(in map[string]string)
- func (o TunnelAdapter) SetLabels(in map[string]string)
- func (o TunnelAdapter) SetStatus(in networkingv1alpha2.TunnelStatus)
- type TunnelBindingReconciler
- type TunnelReconciler
- func (r *TunnelReconciler) GetCfAPI() *cf.API
- func (r *TunnelReconciler) GetCfSecret() *corev1.Secret
- func (r *TunnelReconciler) GetClient() client.Client
- func (r *TunnelReconciler) GetContext() context.Context
- func (r *TunnelReconciler) GetLog() logr.Logger
- func (r *TunnelReconciler) GetReconciledObject() client.Object
- func (r *TunnelReconciler) GetReconcilerName() string
- func (r *TunnelReconciler) GetRecorder() record.EventRecorder
- func (r *TunnelReconciler) GetScheme() *runtime.Scheme
- func (r *TunnelReconciler) GetTunnel() Tunnel
- func (r *TunnelReconciler) GetTunnelCreds() string
- func (r *TunnelReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *TunnelReconciler) SetCfAPI(in *cf.API)
- func (r *TunnelReconciler) SetTunnelCreds(in string)
- func (r *TunnelReconciler) SetupWithManager(mgr ctrl.Manager) error
Constants ¶
const ( // Label and annotation prefixes for the new cloudflare.com API group LabelPrefix = "cloudflare.com/" AnnotationPrefix = "cloudflare.com/" // Finalizer for cloudflare.com resources FinalizerCloudflare = "cloudflare.com/finalizer" // Legacy prefixes for backward compatibility with cloudflare-operator.io resources LegacyLabelPrefix = "cloudflare-operator.io/" LegacyAnnotationPrefix = "cloudflare-operator.io/" LegacyFinalizer = "cloudflare-operator.io/finalizer" )
New cloudflare.com API Group constants These will be used for new CRDs (VirtualNetwork, NetworkRoute, etc.)
const ( VirtualNetworkFinalizer = "cloudflare.com/virtualnetwork-finalizer" // Labels for VirtualNetwork LabelVirtualNetworkName = LabelPrefix + "virtualnetwork-name" LabelVirtualNetworkID = LabelPrefix + "virtualnetwork-id" )
VirtualNetwork controller constants
const ( NetworkRouteFinalizer = "cloudflare.com/networkroute-finalizer" // Labels for NetworkRoute LabelNetworkRouteNetwork = LabelPrefix + "networkroute-network" LabelNetworkRouteTunnel = LabelPrefix + "networkroute-tunnel" )
NetworkRoute controller constants
const ( PrivateServiceFinalizer = "cloudflare.com/privateservice-finalizer" // Labels for PrivateService LabelPrivateServiceName = LabelPrefix + "privateservice-name" )
PrivateService controller constants
const ( DeviceSettingsPolicyFinalizer = "cloudflare.com/devicesettingspolicy-finalizer" // Labels for DeviceSettingsPolicy LabelDeviceSettingsPolicyName = LabelPrefix + "devicesettingspolicy-name" )
DeviceSettingsPolicy controller constants
const ( // AnnotationLastAppliedConfig stores the last applied configuration for drift detection AnnotationLastAppliedConfig = AnnotationPrefix + "last-applied-configuration" // AnnotationManagedBy indicates the controller managing the resource AnnotationManagedBy = AnnotationPrefix + "managed-by" // AnnotationManagedByValue is the value for AnnotationManagedBy AnnotationManagedByValue = "cloudflare-operator" )
Annotations used across controllers
const ( ControllerNameVirtualNetwork = "VirtualNetwork" ControllerNameNetworkRoute = "NetworkRoute" ControllerNamePrivateService = "PrivateService" ControllerNameDeviceSettingsPolicy = "DeviceSettingsPolicy" )
Controller names for logging and events
const ( // Success events EventReasonCreated = "Created" EventReasonUpdated = "Updated" EventReasonDeleted = "Deleted" EventReasonSynced = "Synced" EventReasonReconciled = "Reconciled" EventReasonFinalizerSet = "FinalizerSet" EventReasonFinalizerRemoved = "FinalizerRemoved" // Failure events EventReasonCreateFailed = "CreateFailed" EventReasonUpdateFailed = "UpdateFailed" EventReasonDeleteFailed = "DeleteFailed" EventReasonSyncFailed = "SyncFailed" EventReasonReconcileFailed = "ReconcileFailed" EventReasonAPIError = "APIError" EventReasonInvalidConfig = "InvalidConfig" EventReasonDependencyError = "DependencyError" )
Event reasons
const ( CredentialsJsonFilename string = "credentials.json" CloudflaredLatestImage string = "cloudflare/cloudflared:latest" )
Variables ¶
This section is empty.
Functions ¶
func TunnelNamespacedName ¶
func TunnelNamespacedName(r GenericTunnelReconciler) apitypes.NamespacedName
Types ¶
type ClusterTunnelAdapter ¶
type ClusterTunnelAdapter struct {
Tunnel *networkingv1alpha2.ClusterTunnel
Namespace string
}
ClusterTunnelAdapter implementation
func (ClusterTunnelAdapter) DeepCopyTunnel ¶
func (o ClusterTunnelAdapter) DeepCopyTunnel() Tunnel
func (ClusterTunnelAdapter) GetAnnotations ¶
func (o ClusterTunnelAdapter) GetAnnotations() map[string]string
func (ClusterTunnelAdapter) GetLabels ¶
func (o ClusterTunnelAdapter) GetLabels() map[string]string
func (ClusterTunnelAdapter) GetName ¶
func (o ClusterTunnelAdapter) GetName() string
func (ClusterTunnelAdapter) GetNamespace ¶
func (o ClusterTunnelAdapter) GetNamespace() string
func (ClusterTunnelAdapter) GetObject ¶
func (o ClusterTunnelAdapter) GetObject() client.Object
func (ClusterTunnelAdapter) GetSpec ¶
func (o ClusterTunnelAdapter) GetSpec() networkingv1alpha2.TunnelSpec
func (ClusterTunnelAdapter) GetStatus ¶
func (o ClusterTunnelAdapter) GetStatus() networkingv1alpha2.TunnelStatus
func (ClusterTunnelAdapter) GetUID ¶
func (o ClusterTunnelAdapter) GetUID() types.UID
func (ClusterTunnelAdapter) SetAnnotations ¶
func (o ClusterTunnelAdapter) SetAnnotations(in map[string]string)
func (ClusterTunnelAdapter) SetLabels ¶
func (o ClusterTunnelAdapter) SetLabels(in map[string]string)
func (ClusterTunnelAdapter) SetStatus ¶
func (o ClusterTunnelAdapter) SetStatus(in networkingv1alpha2.TunnelStatus)
type ClusterTunnelReconciler ¶
type ClusterTunnelReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
Namespace string
// contains filtered or unexported fields
}
ClusterTunnelReconciler reconciles a ClusterTunnel object
func (*ClusterTunnelReconciler) GetCfAPI ¶
func (r *ClusterTunnelReconciler) GetCfAPI() *cf.API
func (*ClusterTunnelReconciler) GetCfSecret ¶
func (r *ClusterTunnelReconciler) GetCfSecret() *corev1.Secret
func (*ClusterTunnelReconciler) GetClient ¶
func (r *ClusterTunnelReconciler) GetClient() client.Client
func (*ClusterTunnelReconciler) GetContext ¶
func (r *ClusterTunnelReconciler) GetContext() context.Context
func (*ClusterTunnelReconciler) GetLog ¶
func (r *ClusterTunnelReconciler) GetLog() logr.Logger
func (*ClusterTunnelReconciler) GetReconciledObject ¶
func (r *ClusterTunnelReconciler) GetReconciledObject() client.Object
func (*ClusterTunnelReconciler) GetReconcilerName ¶
func (r *ClusterTunnelReconciler) GetReconcilerName() string
func (*ClusterTunnelReconciler) GetRecorder ¶
func (r *ClusterTunnelReconciler) GetRecorder() record.EventRecorder
func (*ClusterTunnelReconciler) GetScheme ¶
func (r *ClusterTunnelReconciler) GetScheme() *runtime.Scheme
func (*ClusterTunnelReconciler) GetTunnel ¶
func (r *ClusterTunnelReconciler) GetTunnel() Tunnel
func (*ClusterTunnelReconciler) GetTunnelCreds ¶
func (r *ClusterTunnelReconciler) GetTunnelCreds() string
func (*ClusterTunnelReconciler) Reconcile ¶
func (r *ClusterTunnelReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ClusterTunnel object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*ClusterTunnelReconciler) SetCfAPI ¶
func (r *ClusterTunnelReconciler) SetCfAPI(in *cf.API)
func (*ClusterTunnelReconciler) SetTunnelCreds ¶
func (r *ClusterTunnelReconciler) SetTunnelCreds(in string)
func (*ClusterTunnelReconciler) SetupWithManager ¶
func (r *ClusterTunnelReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type GenericTunnelReconciler ¶
type Tunnel ¶
type Tunnel interface {
GetObject() client.Object
GetNamespace() string
GetName() string
GetLabels() map[string]string
SetLabels(map[string]string)
GetAnnotations() map[string]string
SetAnnotations(map[string]string)
GetSpec() networkingv1alpha2.TunnelSpec
GetStatus() networkingv1alpha2.TunnelStatus
SetStatus(networkingv1alpha2.TunnelStatus)
DeepCopyTunnel() Tunnel
}
type TunnelAdapter ¶
type TunnelAdapter struct {
Tunnel *networkingv1alpha2.Tunnel
}
TunnelAdapter implementation
func (TunnelAdapter) DeepCopyTunnel ¶
func (o TunnelAdapter) DeepCopyTunnel() Tunnel
func (TunnelAdapter) GetAnnotations ¶
func (o TunnelAdapter) GetAnnotations() map[string]string
func (TunnelAdapter) GetLabels ¶
func (o TunnelAdapter) GetLabels() map[string]string
func (TunnelAdapter) GetName ¶
func (o TunnelAdapter) GetName() string
func (TunnelAdapter) GetNamespace ¶
func (o TunnelAdapter) GetNamespace() string
func (TunnelAdapter) GetObject ¶
func (o TunnelAdapter) GetObject() client.Object
func (TunnelAdapter) GetSpec ¶
func (o TunnelAdapter) GetSpec() networkingv1alpha2.TunnelSpec
func (TunnelAdapter) GetStatus ¶
func (o TunnelAdapter) GetStatus() networkingv1alpha2.TunnelStatus
func (TunnelAdapter) GetUID ¶
func (o TunnelAdapter) GetUID() types.UID
func (TunnelAdapter) SetAnnotations ¶
func (o TunnelAdapter) SetAnnotations(in map[string]string)
func (TunnelAdapter) SetLabels ¶
func (o TunnelAdapter) SetLabels(in map[string]string)
func (TunnelAdapter) SetStatus ¶
func (o TunnelAdapter) SetStatus(in networkingv1alpha2.TunnelStatus)
type TunnelBindingReconciler ¶
type TunnelBindingReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
Namespace string
OverwriteUnmanaged bool
// contains filtered or unexported fields
}
TunnelBindingReconciler reconciles a TunnelBinding object
func (*TunnelBindingReconciler) Reconcile ¶
func (r *TunnelBindingReconciler) 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.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*TunnelBindingReconciler) SetupWithManager ¶
func (r *TunnelBindingReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type TunnelReconciler ¶
type TunnelReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
// contains filtered or unexported fields
}
TunnelReconciler reconciles a Tunnel object
func (*TunnelReconciler) GetCfAPI ¶
func (r *TunnelReconciler) GetCfAPI() *cf.API
func (*TunnelReconciler) GetCfSecret ¶
func (r *TunnelReconciler) GetCfSecret() *corev1.Secret
func (*TunnelReconciler) GetClient ¶
func (r *TunnelReconciler) GetClient() client.Client
func (*TunnelReconciler) GetContext ¶
func (r *TunnelReconciler) GetContext() context.Context
func (*TunnelReconciler) GetLog ¶
func (r *TunnelReconciler) GetLog() logr.Logger
func (*TunnelReconciler) GetReconciledObject ¶
func (r *TunnelReconciler) GetReconciledObject() client.Object
func (*TunnelReconciler) GetReconcilerName ¶
func (r *TunnelReconciler) GetReconcilerName() string
func (*TunnelReconciler) GetRecorder ¶
func (r *TunnelReconciler) GetRecorder() record.EventRecorder
func (*TunnelReconciler) GetScheme ¶
func (r *TunnelReconciler) GetScheme() *runtime.Scheme
func (*TunnelReconciler) GetTunnel ¶
func (r *TunnelReconciler) GetTunnel() Tunnel
func (*TunnelReconciler) GetTunnelCreds ¶
func (r *TunnelReconciler) GetTunnelCreds() string
func (*TunnelReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile
func (*TunnelReconciler) SetCfAPI ¶
func (r *TunnelReconciler) SetCfAPI(in *cf.API)
func (*TunnelReconciler) SetTunnelCreds ¶
func (r *TunnelReconciler) SetTunnelCreds(in string)
func (*TunnelReconciler) SetupWithManager ¶
func (r *TunnelReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package accesstunnel contains the code associated with the reconciliation process for the accessTunnel resource
|
Package accesstunnel contains the code associated with the reconciliation process for the accessTunnel resource |