Documentation ¶
Index ¶
Constants ¶
const ( // NetworkTypeMigrationInProgress is the condition type for network type live migration to indicate if the migration // is in progress NetworkTypeMigrationInProgress string = "NetworkTypeMigrationInProgress" // NetworkTypeMigrationTargetCNIAvailable is the condition type for network type live migration to indicate if // target CNI is available NetworkTypeMigrationTargetCNIAvailable string = "NetworkTypeMigrationTargetCNIAvailable" // NetworkTypeMigrationTargetCNIInUse is the condition type for network type live migration to indicate if the // target CNI in use NetworkTypeMigrationTargetCNIInUse string = "NetworkTypeMigrationTargetCNIInUse" // NetworkTypeMigrationOriginalCNIPurged is the condition type for network type live migration to indicate if the // original CNI has been purged NetworkTypeMigrationOriginalCNIPurged string = "NetworkTypeMigrationOriginalCNIPurged" // NetworkTypeMigrationMTUReady is the condition type for network type live migration to indicate if the routable // MTU is set NetworkTypeMigrationMTUReady string = "NetworkTypeMigrationMTUReady" )
Status condition types of network.config for live migration
const ADDL_TRUST_BUNDLE_CONFIGMAP_NS = "openshift-config"
ADDL_TRUST_BUNDLE_CONFIGMAP_NS is the namespace for one or more ConfigMaps that contain user provided trusted CA bundles.
const ALLOWLIST_CONFIG_NAME = "cni-sysctl-allowlist"
ALLOWLIST_CONFIG_NAME is the name of the allowlist ConfigMap
const APPLIED_NAMESPACE = "openshift-network-operator"
APPLIED_NAMESPACE is the namespace where applied configuration configmaps are stored. Should match 00_namespace.yaml
const APPLIED_PREFIX = "applied-"
APPLIED_PREFIX is the prefix applied to the config maps where we store previously applied configuration
const CLUSTER_CONFIG = "cluster"
CLUSTER_CONFIG is the name of the higher-level cluster configuration and status object.
const ClusterNameAnnotation = "network.operator.openshift.io/cluster-name"
ClusterNameAnnotation is an annotation that specifies the cluster an object belongs to
const ClusterNetworkCIDRsAnnotation = "networkoperator.openshift.io/cluster-network-cidr"
ClusterNetworkCIDRsAnnotation is an annotation on the OVN networks.operator.openshift.io daemonsets to indicate the current list of clusterNetwork CIDRs available to the cluster.
const ClusterNetworkOperatorJiraComponent = "Networking / cluster-network-operator"
ClusterNetworkOperatorJiraComponent is the jira component name for the cluster-network-operator
const CopyFromAnnotation = "network.operator.openshift.io/copy-from"
CopyFromAnnotation is an annotation that allows copying resources from specified clusters value format: cluster/namespace/name
const CreateOnlyAnnotation = "networkoperator.openshift.io/create-only"
CreateOnlyAnnotation is an annotation on all objects that tells the CNO reconciliation engine to ignore this object if it already exists.
const CreateWaitAnnotation = "networkoperator.openshift.io/create-wait"
CreateWaitAnnotation is an annotation on all objects that tells the CNO reconciliation engine to ignore creating this object until conditions are met.
const DashboardNamespace = "openshift-config-managed"
DashboardNamespace is the namespace where dashboards are created
const DefaultClusterName = "default"
DefaultClusterName provides the name of the default cluster, for use with Hypershift (or non-Hypershift)
const DefaultFieldManagerPrefix = "network-operator"
DefaultFieldManagerPrefix is the default field manager prefix set on the managed fields.
const DefaultIngressControllerName = "default"
default ingress controller name
const EnvApiOverrideHost = "APISERVER_OVERRIDE_HOST"
EnvApiOverrideHost is an environment variable that, if set, allows overriding the host / port of the apiserver, but only for rendered manifests. CNO itself will not use it
const EnvApiOverridePort = "APISERVER_OVERRIDE_PORT"
const GenerateStatusLabel = "networkoperator.openshift.io/generates-operator-status"
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. Currently, this is looked for on Deployments, DaemonSets, and StatefulSets. Its value reflects which cluster the resource belongs to. This helps avoid an overlap in Hypershift where there can be multiple CNO instances running in the management cluster. If the value is empty, the resource is not going to be tracked by StatusController.
const HostNetworkNamespace = "openshift-host-network"
namespace representing host network traffic this is also the namespace where to set the ingress label
const INFRASTRUCTURE_CONFIG = "cluster"
INFRASTRUCTURE_CONFIG is the name of the default infrastructure object.
const IPFamilyDualStack = "dual-stack"
dual stack IP family mode
const IPFamilySingleStack = "single-stack"
single stack IP family mode
const IPsecEnableAnnotation = "networkoperator.openshift.io/ipsec-enabled"
IPsecEnableAnnotation is an annotation on the OVN networks.operator.openshift.io daemonsets to indicate if ipsec is enabled for the OVN networks.
const IgnoreObjectErrorAnnotation = "networkoperator.openshift.io/ignore-errors"
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. Useful when we want to make a CR for which the CRD may not exist yet.
const IngressControllerNamespace = "openshift-ingress-operator"
constants for namespace and custom resource names namespace in which ingress controller objects are created
const MULTUS_NAMESPACE = "openshift-multus"
MULTUS_NAMESPACE is the namespace where applied configuration configmaps are stored. Should match 00_namespace.yaml
const MULTUS_VALIDATING_WEBHOOK = "multus.openshift.io"
MULTUS_VALIDATING_WEBHOOK is the name of the ValidatingWebhookConfiguration for multus-admission-controller that is used in multus admission controller deployment
const MachineConfigPoolDegraded string = "MachineConfigPoolDegraded"
MachineConfigPoolDegraded is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is degraded
const MachineConfigPoolsUpdating string = "MachineConfigPoolsUpdating"
MachineConfigPoolsUpdating is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is updating
const ManagementClusterName = "management"
ManagementClusterName provides the name of the management cluster, for use with Hypershift.
const MasqueradeCIDRsAnnotation = "networkoperator.openshift.io/default-masquerade-network-cidrs"
MasqueradeCIDRsAnnotation is an annotation on the OVN networks.operator.openshift.io resources to indicate the list of default masquerade CIDRs. The default masquerade network CIDRs can differ from the actual masquerade network CIDRs if it was specified through the OVNKubernetesConfig.GatewayConfig.IPv[4|6].InternalMasqueradeSubnet API field.
const NetworkDiagnosticsAvailableCondition string = "NetworkDiagnosticsAvailable"
NetworkDiagnosticsAvailableCondition is the condition type for network diagnostics availability
const NetworkHybridOverlayAnnotation = "networkoperator.openshift.io/hybrid-overlay-status"
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"
const NetworkIPFamilyModeAnnotation = "networkoperator.openshift.io/ip-family-mode"
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"
const NetworkMigrationAnnotation = "networkoperator.openshift.io/network-migration"
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.
const NetworkTypeMigrationAnnotation = "network.openshift.io/network-type-migration"
NetworkTypeMigrationAnnotation is an annotation on the OVN networks.operator.openshift.io CR to indicate that executing network type live migration
const NonCriticalAnnotation = "networkoperator.openshift.io/non-critical"
NonCriticalAnnotation is an annotation on Deployments/DaemonSets to indicate that they are not critical to the functioning of the pod network
const OPERATOR_CONFIG = "cluster"
OperatorConfig is the name of the CRD that defines the complete operator configuration
const OpenShiftComponent = "openshift.io/owning-component"
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.
const PROXY_CONFIG = "cluster"
PROXY_CONFIG is the name of the default proxy object.
const PolicyGroupLabelIngress = "policy-group.network.openshift.io/ingress"
label for ingress policy group
const PolicyGroupLabelIngressValue = ""
we use empty label values for policy groups
const PolicyGroupLabelLegacy = "network.openshift.io/policy-group"
legacy label for ingress policy group
const PolicyGroupLabelLegacyValue = "ingress"
value for legacy policy group label
const RelatedClusterObjectsAnnotation = "network.operator.openshift.io/relatedClusterObjects"
RelatedClusterObjectsAnnotation is an annotation that allows deleting resources for specified clusters value format: cluster/group/resource/namespace/name
const RolloutHungAnnotation = "networkoperator.openshift.io/rollout-hung"
RolloutHungAnnotation is set to "" if it is detected that a rollout (i.e. DaemonSet or Deployment) is not making progress, unset otherwise.
const SYSTEM_TRUST_BUNDLE = "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem"
SYSTEM_TRUST_BUNDLE is the full path to the file containing the system trust bundle.
const StandAloneClusterName = "stand-alone"
StandAloneClusterName is a value used for GenerateStatusLabel label when running in non-Hypershift environments
const TRUSTED_CA_BUNDLE_CONFIGMAP = "trusted-ca-bundle"
TRUSTED_CA_BUNDLE_CONFIGMAP is the name of the ConfigMap containing the combined user/system trust bundle.
const TRUSTED_CA_BUNDLE_CONFIGMAP_KEY = "ca-bundle.crt"
TRUSTED_CA_BUNDLE_CONFIGMAP_KEY is the name of the data key containing the PEM encoded trust bundle.
const TRUSTED_CA_BUNDLE_CONFIGMAP_LABEL = "config.openshift.io/inject-trusted-cabundle"
TRUSTED_CA_BUNDLE_CONFIGMAP_LABEL is the name of the label that determines whether or not to inject the combined ca certificate
const TRUSTED_CA_BUNDLE_CONFIGMAP_NS = "openshift-config-managed"
TRUSTED_CA_BUNDLE_CONFIGMAP_NS is the namespace that hosts the ADDL_TRUST_BUNDLE_CONFIGMAP and TRUST_BUNDLE_CONFIGMAP ConfigMaps.
Variables ¶
This section is empty.
Functions ¶
func Proxy ¶
func Proxy() types.NamespacedName
Proxy returns the namespaced name "cluster" in the default namespace.
func TrustedCABundleConfigMap ¶
func TrustedCABundleConfigMap() types.NamespacedName
TrustedCABundleConfigMap returns the namespaced name of the ConfigMap openshift-config-managed/trusted-ca-bundle trust bundle.
Types ¶
This section is empty.