Documentation
¶
Index ¶
Constants ¶
View Source
const ( DarwinLibvirtSocketPath = ".cache/libvirt/libvirt-sock" UserConfigDir = ".ocne" UserConfigDefaults = ".ocne/defaults.yaml" UserConfigDefaultsEnvironmentVariable = "OCNE_DEFAULTS" UserImageCacheDir = "images" UserContainerConfigDir = "config" UserIPData = "ips.yaml" BootVolumeContainerImage = "docker://container-registry.oracle.com/olcne/ock" // Cluster Defaults ControlPlaneNodes = 1 WorkerNodes = 0 // Libvirt Defaults StoragePool = "images" SessionURI = "qemu:///session" Network = "default" StoragePoolPath = "/var/lib/libvirt/images" UserStoragePoolPath = ".local/share/libvirt/images" BootVolumeName = "boot.qcow2" BootVolumeContainerImagePath = "disk/boot.qcow2" NodeCPUs = 2 NodeMemory = "4194304Ki" NodeStorage = "20Gi" EphemeralNodeStorage = "30Gi" EphemeralClusterName = "ocne-ephemeral" EphemeralClusterPreserve = true // Kubernetes defaults` KubeAPIServerBindPort = uint16(6443) KubeAPIServerBindPortAlt = uint16(6444) PodSubnet = "10.244.0.0/16" ServiceSubnet = "10.96.0.0/12" InstanceMetadata = "169.254.169.254" ContainerRegistry = "container-registry.oracle.com" CertKey = "tls.crt" PrivKey = "tls.key" KubeVersion = "1.30" OciControlPlaneOcpus = 2 OciWorkerOcpus = 4 OciImageName = "ock" OciBucket = "ocne-images" OciVmStandardE4Flex = "VM.Standard.E4.Flex" // OCI shapes compatible with ARM images OciVmStandardA1Flex = "VM.Standard.A1.Flex" OciVmStandardA2Flex = "VM.Standard.A2.Flex" OciBmStandardA1160 = "BM.Standard.A1.160" // OCI Image Identifier Tags OCIArchitectureTag = "ocne/architecture" OCIKubernetesVersionTag = "ocne/kubernetes" // OCNE annotations OCNEAnnoUpdateAvailable = "ocne.oracle.com/update-available" // Kubernetes Labels K8sLabelControlPlane = "node-role.kubernetes.io/control-plane" // Provider Types ProviderTypeLibvirt = "libvirt" ProviderTypeOCI = "oci" ProviderTypeOlvm = "olvm" ProviderTypeNone = "none" )
View Source
const ( // OCNESystemNamespace is the OCNE system namespace OCNESystemNamespace = "ocne-system" // OCNECatalogLabelKey is the catalog service label key // that marks catalog services OCNECatalogLabelKey = "catalog.ocne.io/is-catalog" // OCNECatalogAnnotationKey is the annoation key that // contains the catalog friendly name OCNECatalogAnnotationKey = "catalog.ocne.io/name" // OCNECatalogURIKey is the annotation key that // contains any extra relative path required to // query the catalog OCNECatalogURIKey = "catalog.ocne.io/uri" // OCNECatalogProtoKey is the annotation key that // indicates the catalog protocol. The current // valid values are "helm" and "artifacthub". OCNECatalogProtoKey = "catalog.ocne.io/protocol" // DefaultCatalogName is the default OCNE catalog name DefaultCatalogName = "Oracle Cloud Native Environment Application Catalog" // CatalogServiceName is the default OCNE catalog service name CatalogServiceName = "ocne-catalog" // UIServiceName is the default OCNE UI service name UIServiceName = "ui" // UISecretNameTLS is the name of the TLS secret for the UI UISecretNameTLS = "ui-tls" // CASecretNameTLS is the name of the TLS secret that stores the CA // certificate and key used to sign the UI certificate CASecretNameTLS = "certificate-authority-tls" CNIFlannel = "flannel" CNINone = "none" CNIFlannelRelease = "flannel" CNIFlannelNamespace = "kube-flannel" CNIFlannelChart = "flannel" CNIFlannelVersion = "0.22.3" CNIFlannelImageTag = "v0.22.3-2" CatalogRelease = "ocne-catalog" CatalogNamespace = "ocne-system" CatalogChart = "ocne-catalog" CatalogVersion = "2.0.0" CatalogName = DefaultCatalogName CommunityCatalogName = "ArtifactHub Community Catalog" CommunityCatalogURI = "https://artifacthub.io" CommunityCatalogNamespace = OCNESystemNamespace UIRelease = "ui" UINamespace = "ocne-system" UIChart = "ui" UIVersion = "" UIInitContainer = "ui-plugins" UIPluginsVersion = "v2.0.0" CertManagerRelease = "cert-manager" CertManagerNamespace = "cert-manager" CertManagerChart = "cert-manager" CertManagerVersion = "" CoreCAPIRelease = "core-capi" CoreCAPINamespace = "capi-system" CoreCAPIChart = "core-capi" CoreCAPIVersion = "1.7.1" CoreCAPIDeployment = "core-capi-controller-manager" KubeadmBootstrapCAPIRelease = "bootstrap-capi" KubeadmBootstrapCAPINamespace = "capi-kubeadm-bootstrap-system" KubeadmBootstrapCAPIChart = "bootstrap-capi" KubeadmBootstrapCAPIVersion = "1.7.1" KubeadmBootstrapCAPIDeployment = "bootstrap-capi-controller-manager" KubeadmControlPlaneCAPIRelease = "control-plane-capi" KubeadmControlPlaneCAPINamespace = "capi-kubeadm-control-plane-system" KubeadmControlPlaneCAPIChart = "control-plane-capi" KubeadmControlPlaneCAPIVersion = "1.7.1" KubeadmControlPlaneCAPIDeployment = "control-plane-capi-controller-manager" OCICAPIRelease = "capoci" OCICAPINamespace = "cluster-api-provider-oci-system" OCICAPIChart = "oci-capi" OCICAPIVersion = "" OCICAPIDeployment = "capoci-controller-manager" // OLVM Operator constants OLVMCAPIRelease = "olvm-capi" OLVMCAPIOperatorNamespace = "cluster-api-provider-olvm" OLVMCAPIChart = "olvm-capi" OLVMCAPIVersion = "" OLVMCAPIDeployment = "olvm-capi-operator" OLVMOVirtCredSecretSuffix = "ovirt-credentials" OLVMOVirtCAConfigMapSuffix = "ovirt-ca" // OLVM CAPI resources constants OLVMCAPIResourcesNamespace = "ocne" OLVMCAPIControlPlaneMemory = "7GB" OLVMCAPIWorkerMemory = "16GB" DefaultPodImage = "container-registry.oracle.com/os/oraclelinux:8" ScriptMountPath = "/ocne-scripts" KubeNamespace = "kube-system" KubeCMName = "kubeadm-config" )
Variables ¶
View Source
var OciArmCompatibleShapes = [...]string{OciVmStandardA1Flex, OciBmStandardA1160, OciVmStandardA2Flex}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.