Skip to content

Class TraefikTrafficObservationOptions

Namespace: Cephalon.Edge.Traefik.Configuration
Assembly: Cephalon.Edge.Traefik.dll

Configures how the Traefik traffic materializer reads live Kubernetes resources.

public sealed class TraefikTrafficObservationOptions

objectTraefikTrafficObservationOptions

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public TraefikTrafficObservationOptions()

Gets or sets a value indicating whether apply-and-reconcile mode should also sweep previously owned stale IngressRoute resources.

public bool EnableCleanupSweep { get; set; }

bool

This cleanup sweep is disabled by default so existing apply-and-reconcile behavior stays additive. When enabled, the materializer will delete transferred resources and prune orphaned resources that still carry Cephalon ownership labels in the configured route namespaces.

Gets or sets the explicit kubeconfig path used when the pack creates its own client outside the cluster.

public string? KubeConfigPath { get; set; }

string?

Gets or sets the optional kubeconfig context override used when the pack creates its own client.

public string? KubeContext { get; set; }

string?

Gets or sets the optional API-server override used when the pack creates its own client from kubeconfig.

public string? MasterUrl { get; set; }

string?

Gets or sets the control-plane mode used by the Traefik materializer.

public string Mode { get; set; }

string

The default value keeps the pack in configured-intent mode so projected-intent behavior remains additive without claiming a live apply. Set this to observe-only when the pack should read live Traefik Kubernetes CRD resources and project the observed posture back into the shared runtime catalog, or to apply-and-reconcile when the pack should write owned IngressRoute resources before observing live Traefik posture back into that same shared runtime catalog.

Gets or sets the polling interval, in seconds, used for recurring live observation after startup materialization.

public int PollingIntervalSeconds { get; set; }

int

Gets or sets the freshness window, in seconds, that observed status should advertise to operators.

public int StaleAfterSeconds { get; set; }

int

Gets or sets a value indicating whether in-cluster Kubernetes configuration should be used when the pack creates its own client.

public bool UseInClusterConfiguration { get; set; }

bool