package
0.0.0-20250310092227-2d60b7484167
Repository: https://github.com/openshift/cluster-network-operator.git
Documentation: pkg.go.dev

# Functions

MasterRoleMachineConfigLabel returns machine config label for master role.
Proxy returns the namespaced name "cluster" in the default namespace.
TrustedCABundleConfigMap returns the namespaced name of the ConfigMap openshift-config-managed/trusted-ca-bundle trust bundle.
UserDefinedIPsecMachineConfigAnnotation returns annotation for IPsec machine configs deployed by user explicitly.
WorkerRoleMachineConfigLabel returns machine config label for worker role.

# Constants

ADDL_TRUST_BUNDLE_CONFIGMAP_NS is the namespace for one or more ConfigMaps that contain user provided trusted CA bundles.
ALLOWLIST_CONFIG_NAME is the name of the allowlist ConfigMap.
APPLIED_NAMESPACE is the namespace where applied configuration configmaps are stored.
APPLIED_PREFIX is the prefix applied to the config maps where we store previously applied configuration.
CLUSTER_CONFIG is the name of the higher-level cluster configuration and status object.
ClusterNameAnnotation is an annotation that specifies the cluster an object belongs to.
ClusterNetworkCIDRsAnnotation is an annotation on the OVN networks.operator.openshift.io daemonsets to indicate the current list of clusterNetwork CIDRs available to the cluster.
ClusterNetworkOperatorJiraComponent is the jira component name for the cluster-network-operator.
CopyFromAnnotation is an annotation that allows copying resources from specified clusters value format: cluster/namespace/name.
CreateOnlyAnnotation is an annotation on all objects that tells the CNO reconciliation engine to ignore this object if it already exists.
CreateWaitAnnotation is an annotation on all objects that tells the CNO reconciliation engine to ignore creating this object until conditions are met.
DashboardNamespace is the namespace where dashboards are created.
DefaultClusterName provides the name of the default cluster, for use with Hypershift (or non-Hypershift).
DefaultFieldManagerPrefix is the default field manager prefix set on the managed fields.
default ingress controller name.
EnvApiOverrideHost is an environment variable that, if set, allows overriding the host / port of the apiserver, but only for rendered manifests.
No description provided by the author
GenerateStatusLabel can be set by the various Controllers to tell the StatusController that this object is relevant, and should be included when generating status from deployed pods.
namespace representing host network traffic this is also the namespace where to set the ingress label.
IgnoreObjectErrorAnnotation is an annotation we can set on objects to signal to the reconciler that we don't care if they fail to create or update.
INFRASTRUCTURE_CONFIG is the name of the default infrastructure object.
constants for namespace and custom resource names namespace in which ingress controller objects are created.
dual stack IP family mode.
single stack IP family mode.
IPsecEnableAnnotation is an annotation on the OVN networks.operator.openshift.io daemonsets to indicate if ipsec is enabled for the OVN networks.
MachineConfigLabelRoleKey label key for machine config role.
MachineConfigPoolDegraded is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is degraded.
MachineConfigPoolsUpdating is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is updating.
ManagementClusterName provides the name of the management cluster, for use with Hypershift.
MasqueradeCIDRsAnnotation is an annotation on the OVN networks.operator.openshift.io resources to indicate the list of default masquerade CIDRs.
MULTUS_NAMESPACE is the namespace where applied configuration configmaps are stored.
MULTUS_VALIDATING_WEBHOOK is the name of the ValidatingWebhookConfiguration for multus-admission-controller that is used in multus admission controller deployment.
NetworkDiagnosticsAvailableCondition is the condition type for network diagnostics availability.
NetworkHybridOverlayAnnotatiion is an annotation on the OVN networks.operator.io.daemonsets to indicate the current state of of the Hybrid overlay on the cluster: "enabled" or "disabled".
NetworkIPFamilyAnnotation is an annotation on the OVN networks.operator.openshift.io daemonsets to indicate the current IP Family mode of the cluster: "single-stack" or "dual-stack".
NetworkMigrationAnnotation is an annotation on the networks.operator.openshift.io CR to indicate that executing network migration (switching the default network type of the cluster) is allowed.
NetworkTypeMigrationAnnotation is an annotation on the OVN networks.operator.openshift.io CR to indicate that executing network type live migration.
NetworkTypeMigrationInProgress is the condition type for network type live migration to indicate if the migration is in progress.
NetworkTypeMigrationMTUReady is the condition type for network type live migration to indicate if the routable MTU is set.
NetworkTypeMigrationOriginalCNIPurged is the condition type for network type live migration to indicate if the original CNI has been purged.
NetworkTypeMigrationTargetCNIAvailable is the condition type for network type live migration to indicate if target CNI is available.
NetworkTypeMigrationTargetCNIInUse is the condition type for network type live migration to indicate if the target CNI in use.
NonCriticalAnnotation is an annotation on Deployments/DaemonSets to indicate that they are not critical to the functioning of the pod network.
OpenShiftComponent mirrors https://github.com/openshift/api/blob/master/annotations/annotations.go#L33 but a zero-diff tidy and vendor result in a non-building project, so working from a copy here until the next dep update.
OperatorConfig is the name of the CRD that defines the complete operator configuration.
label for ingress policy group.
we use empty label values for policy groups.
legacy label for ingress policy group.
value for legacy policy group label.
PROXY_CONFIG is the name of the default proxy object.
RelatedClusterObjectsAnnotation is an annotation that allows deleting resources for specified clusters value format: cluster/group/resource/namespace/name.
RolloutHungAnnotation is set to "" if it is detected that a rollout (i.e.
StandAloneClusterName is a value used for GenerateStatusLabel label when running in non-Hypershift environments.
SYSTEM_TRUST_BUNDLE is the full path to the file containing the system trust bundle.
TRUSTED_CA_BUNDLE_CONFIGMAP is the name of the ConfigMap containing the combined user/system trust bundle.
TRUSTED_CA_BUNDLE_CONFIGMAP_KEY is the name of the data key containing the PEM encoded trust bundle.
TRUSTED_CA_BUNDLE_CONFIGMAP_LABEL is the name of the label that determines whether or not to inject the combined ca certificate.
TRUSTED_CA_BUNDLE_CONFIGMAP_NS is the namespace that hosts the ADDL_TRUST_BUNDLE_CONFIGMAP and TRUST_BUNDLE_CONFIGMAP ConfigMaps.