Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ManifestPath = "./bindata"
ManifestPaths is the path to the manifest templates bad, but there's no way to pass configuration to the reconciler right now
var ResyncPeriod = 3 * time.Minute
The periodic resync interval. We will re-run the reconciliation logic, even if the network configuration hasn't changed.
Functions ¶
func Add ¶
func Add(mgr manager.Manager, status *statusmanager.StatusManager, _ cnoclient.Client) error
Add creates a new ingressConfig controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.
Types ¶
type ReconcileIngressConfigs ¶
type ReconcileIngressConfigs struct {
// contains filtered or unexported fields
}
ReconcileIngressConfigs watches for updates to ingress controller configuration and sets the network policy related labels on the openshift-host-network namespace
func (*ReconcileIngressConfigs) Reconcile ¶
func (r *ReconcileIngressConfigs) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile sets the openshift-host-network namespaces' labels as per the endpointPublishingStrategy of the `default` ingress controller object. In particular, when the endpointPublishingStrategy is HostNetwork, it will add the "policy-group.network.openshift.io/ingress="" label and also add the "network.openshift.io/policy-group=ingress" label for legacy reasons to the host network namespace. When the endpointPublishingStrategy is changed to anything other than HostNetwork, it reconciles and removes these labels from the host network namespace.