ingressconfig

package
v0.0.0-...-4ce35ca Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

View Source
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

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

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.

Jump to

Keyboard shortcuts

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