names

package
v0.0.0-...-de93ea6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

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

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

View Source
const ALLOWLIST_CONFIG_NAME = "cni-sysctl-allowlist"

ALLOWLIST_CONFIG_NAME is the name of the allowlist ConfigMap

View Source
const APPLIED_NAMESPACE = "openshift-network-operator"

APPLIED_NAMESPACE is the namespace where applied configuration configmaps are stored. Should match 00_namespace.yaml

View Source
const APPLIED_PREFIX = "applied-"

APPLIED_PREFIX is the prefix applied to the config maps where we store previously applied configuration

View Source
const CLUSTER_CONFIG = "cluster"

CLUSTER_CONFIG is the name of the higher-level cluster configuration and status object.

View Source
const ClusterNameAnnotation = "network.operator.openshift.io/cluster-name"

ClusterNameAnnotation is an annotation that specifies the cluster an object belongs to

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

View Source
const ClusterNetworkOperatorJiraComponent = "Networking / cluster-network-operator"

ClusterNetworkOperatorJiraComponent is the jira component name for the cluster-network-operator

View Source
const CopyFromAnnotation = "network.operator.openshift.io/copy-from"

CopyFromAnnotation is an annotation that allows copying resources from specified clusters value format: cluster/namespace/name

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

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

View Source
const DashboardNamespace = "openshift-config-managed"

DashboardNamespace is the namespace where dashboards are created

View Source
const DefaultClusterName = "default"

DefaultClusterName provides the name of the default cluster, for use with Hypershift (or non-Hypershift)

View Source
const DefaultFieldManagerPrefix = "network-operator"

DefaultFieldManagerPrefix is the default field manager prefix set on the managed fields.

View Source
const DefaultIngressControllerName = "default"

default ingress controller name

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

View Source
const EnvApiOverridePort = "APISERVER_OVERRIDE_PORT"
View Source
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.

View Source
const HostNetworkNamespace = "openshift-host-network"

namespace representing host network traffic this is also the namespace where to set the ingress label

View Source
const INFRASTRUCTURE_CONFIG = "cluster"

INFRASTRUCTURE_CONFIG is the name of the default infrastructure object.

View Source
const IPFamilyDualStack = "dual-stack"

dual stack IP family mode

View Source
const IPFamilySingleStack = "single-stack"

single stack IP family mode

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

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

View Source
const IngressControllerNamespace = "openshift-ingress-operator"

constants for namespace and custom resource names namespace in which ingress controller objects are created

View Source
const MULTUS_NAMESPACE = "openshift-multus"

MULTUS_NAMESPACE is the namespace where applied configuration configmaps are stored. Should match 00_namespace.yaml

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

View Source
const MachineConfigPoolDegraded string = "MachineConfigPoolDegraded"

MachineConfigPoolDegraded is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is degraded

View Source
const MachineConfigPoolsUpdating string = "MachineConfigPoolsUpdating"

MachineConfigPoolsUpdating is the reason string NetworkTypeMigrationTargetCNIInUse and NetworkTypeMigrationMTUReady conditions to indicate if MCP is updating

View Source
const ManagementClusterName = "management"

ManagementClusterName provides the name of the management cluster, for use with Hypershift.

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

View Source
const NetworkDiagnosticsAvailableCondition string = "NetworkDiagnosticsAvailable"

NetworkDiagnosticsAvailableCondition is the condition type for network diagnostics availability

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

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

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

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

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

View Source
const OPERATOR_CONFIG = "cluster"

OperatorConfig is the name of the CRD that defines the complete operator configuration

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

View Source
const PROXY_CONFIG = "cluster"

PROXY_CONFIG is the name of the default proxy object.

View Source
const PolicyGroupLabelIngress = "policy-group.network.openshift.io/ingress"

label for ingress policy group

View Source
const PolicyGroupLabelIngressValue = ""

we use empty label values for policy groups

View Source
const PolicyGroupLabelLegacy = "network.openshift.io/policy-group"

legacy label for ingress policy group

View Source
const PolicyGroupLabelLegacyValue = "ingress"

value for legacy policy group label

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

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

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

View Source
const StandAloneClusterName = "stand-alone"

StandAloneClusterName is a value used for GenerateStatusLabel label when running in non-Hypershift environments

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

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

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

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

Jump to

Keyboard shortcuts

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