Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RouteName is the name of the default route created for the registry // when a default route is requested from the operator RouteName = "default-route" // ImageRegistryName is the name of the image-registry workload resource (deployment) ImageRegistryName = "image-registry" // PVCImageRegistryName is the default name of the claim provisioned for PVC backend PVCImageRegistryName = "image-registry-storage" // InstallationPullSecret is the secret where we keep pull secrets provided during // cluster installation. InstallationPullSecret = "installation-pull-secrets" // ImageRegistryResourceName is the name of the image registry config instance ImageRegistryResourceName = "cluster" // ClusterProxyResourceName is the name of the cluster proxy config instance ClusterProxyResourceName = "cluster" // CloudCredentialsName is the name of the cloud credentials secret CloudCredentialsName = "installer-cloud-credentials" // ImageRegistryCertificatesName is the name of the configmap that is managed by the // registry operator and mounted into the registry pod, to provide additional // CAs to be trusted during image pullthrough ImageRegistryCertificatesName = "image-registry-certificates" // ImageRegistryCAName is the name of the configmap managed by the registry operator // on the openshift-config-managed namespace. This config map is nearly identical to // ImageRegistryCertificatesName, but it does not include the additionalTrustedCA // from images.config.openshift.io/cluster. ImageRegistryCAName = "image-registry-ca" // ImageRegistryPrivateConfiguration is the name of a secret that is managed by the // registry operator and which provides credentials to the registry for things like // accessing S3 storage ImageRegistryPrivateConfiguration = "image-registry-private-configuration" // ImageRegistryPrivateConfigurationUser is the name of a secret that is managed by // the administrator and which provides credentials to the registry for things like // accessing S3 storage. This content takes precedence over content the operator // automatically pulls from other locations, and it is merged into ImageRegistryPrivateConfiguration ImageRegistryPrivateConfigurationUser = "image-registry-private-configuration-user" // ImageRegistryOperatorNamespace is the namespace containing the registry operator // and the registry itself ImageRegistryOperatorNamespace = "openshift-image-registry" // ImageRegistryClusterOperatorResourceName is the name of the clusteroperator resource // that reflects the registry operator status. ImageRegistryClusterOperatorResourceName = "image-registry" // ImageRegistryImagePrunerResourceName is the name of the clusteroperator resource // that reflects the registry operator status. ImageRegistryImagePrunerResourceName = "cluster" // OperatorStatusTypeRemoved denotes that the image-registry instance has been // removed OperatorStatusTypeRemoved = "Removed" // StorageExists denotes whether or not the registry storage medium exists StorageExists = "StorageExists" // StorageTagged denotes whether or not the registry storage medium // that we created was tagged correctly StorageTagged = "StorageTagged" // StorageLabeled denotes whether or not the registry storage medium // that we created was labeled correctly StorageLabeled = "StorageLabeled" // StorageEncrypted denotes whether or not the registry storage medium // that we created has encryption enabled StorageEncrypted = "StorageEncrypted" // StoragePublicAccessBlocked denotes whether or not the registry storage medium // that we created has had public access to itself and its objects blocked StoragePublicAccessBlocked = "StoragePublicAccessBlocked" // StorageIncompleteUploadCleanupEnabled denotes whether or not the registry storage // medium is configured to automatically cleanup incomplete uploads StorageIncompleteUploadCleanupEnabled = "StorageIncompleteUploadCleanupEnabled" // VersionAnnotation reflects the version of the registry that this deployment // is running. VersionAnnotation = "release.openshift.io/version" ImageRegistryOperatorResourceFinalizer = "imageregistry.operator.openshift.io/finalizer" ChecksumOperatorAnnotation = "imageregistry.operator.openshift.io/checksum" ChecksumOperatorDepsAnnotation = "imageregistry.operator.openshift.io/dependencies-checksum" SupplementalGroupsAnnotation = "openshift.io/sa.scc.supplemental-groups" ServiceName = "image-registry" ServiceAccountName = "registry" ContainerPort = 5000 HealthzRoute = "/healthz" HealthzTimeoutSeconds = 5 ImageConfigName = "cluster" ClusterConfigName = "cluster-config-v1" ServiceCAName = "serviceca" TrustedCAName = "trusted-ca" // OpenShiftConfigNamespace is a namespace with global configuration resources. OpenShiftConfigNamespace = "openshift-config" // OpenShiftConfigManagedNamespace is a namespace with managed global configuration resources. OpenShiftConfigManagedNamespace = "openshift-config-managed" // KubeCloudConfigName is the name of the ConfigMap containing the kube cloud config. KubeCloudConfigName = "kube-cloud-config" // CloudCABundleKey is the name of the CA bundle to use when interacting with the cloud API. CloudCABundleKey = "ca-bundle.pem" // InfrastructureResourceName is the name of the infrastructure config resource InfrastructureResourceName = "cluster" // AzurePathFixJobName is the job name for the azure-path-fix job AzurePathFixJobName = "azure-path-fix" )
Variables ¶
View Source
var ( DeploymentLabels = map[string]string{"docker-registry": "default"} DeploymentAnnotations = map[string]string{ "target.workload.openshift.io/management": `{"effect": "PreferredDuringScheduling"}`, } PrunerPodLabels = map[string]string{"app": "image-pruner"} )
View Source
var UserAgent = "ocp-ciro/" + version.Version
UserAgent identifies the operator in HTTP requests. Azure SDK ApplicationID has a 24 character limit, so keep this short.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.