registry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default image:tags
	DefaultDevfileIndexImage   = "quay.io/devfile/devfile-index:next"
	DefaultRegistryViewerImage = "quay.io/devfile/registry-viewer:next"
	DefaultOCIRegistryImage    = "quay.io/devfile/oci-registry:next"

	// Default image pull policies
	DefaultDevfileIndexImagePullPolicy   = corev1.PullAlways
	DefaultRegistryViewerImagePullPolicy = corev1.PullAlways
	DefaultOCIRegistryImagePullPolicy    = corev1.PullAlways

	// Defaults/constants for devfile registry storages
	DefaultDevfileRegistryVolumeSize = "1Gi"
	DevfileRegistryVolumeEnabled     = false
	DevfileRegistryVolumeName        = "devfile-registry-storage"

	DevfileRegistryTLSEnabled       = true
	DevfileRegistryTelemetryEnabled = false

	DefaultDevfileRegistryHeadlessEnabled = false

	// Defaults/constants for devfile registry services
	DevfileIndexPortName        = "devfile-registry-metadata"
	DevfileIndexPort            = 8080
	DevfileIndexMetricsPortName = "devfile-index-metrics"
	DevfileIndexMetricsPort     = 7071
	OCIMetricsPortName          = "oci-registry-metrics"
	OCIMetricsPort              = 5001
	OCIServerPort               = 5000
	RegistryViewerPort          = 3000
)

Variables

This section is empty.

Functions

func ConfigMapName

func ConfigMapName(devfileRegistryName string) string

ConfigMapName returns the name of the service object associated with the DevfileRegistry CR

func DeploymentName

func DeploymentName(devfileRegistryName string) string

DeploymentName returns the name of the deployment object associated with the DevfileRegistry CR Just returns the CR name right now, but extracting to a function to avoid relying on that assumption in the future

func GenerateDeployment

func GenerateDeployment(cr *registryv1alpha1.DevfileRegistry, scheme *runtime.Scheme, labels map[string]string) *appsv1.Deployment

func GenerateIngress

func GenerateIngress(cr *registryv1alpha1.DevfileRegistry, host string, scheme *runtime.Scheme, labels map[string]string) *networkingv1.Ingress

func GeneratePVC

GenerateDevfileRegistryPVC returns a PVC for providing storage on the OCI registry container

func GenerateRegistryConfigMap

func GenerateRegistryConfigMap(cr *registryv1alpha1.DevfileRegistry, scheme *runtime.Scheme, labels map[string]string) *corev1.ConfigMap

GenerateRegistryConfigMap returns a configmap that is used to configure the devfile registry

func GenerateRoute

func GenerateRoute(cr *registryv1alpha1.DevfileRegistry, scheme *runtime.Scheme, labels map[string]string) *routev1.Route

GenerateRoute returns a route exposing the devfile registry index

func GenerateService

func GenerateService(cr *registryv1alpha1.DevfileRegistry, scheme *runtime.Scheme, labels map[string]string) *corev1.Service

GenerateDevfileRegistryService returns a devfileregistry Service object

func GenericResourceName

func GenericResourceName(devfileRegistryName string) string

genericResourceName returns just the name of the custom resource, to be used

func GetDevfileIndexImage

func GetDevfileIndexImage(cr *registryv1alpha1.DevfileRegistry) string

GetDevfileIndexImage returns the container image for the devfile index server to be deployed on the Devfile Registry. Default: "quay.io/devfile/devfile-index:next"

func GetDevfileIndexImagePullPolicy

func GetDevfileIndexImagePullPolicy(cr *registryv1alpha1.DevfileRegistry) corev1.PullPolicy

GetDevfileIndexImagePullPolicy returns the image pull policy for the devfile index container. Default: "Always"

func GetDevfileRegistryIngress

func GetDevfileRegistryIngress(cr *registryv1alpha1.DevfileRegistry) string

func GetOCIRegistryImage

func GetOCIRegistryImage(cr *registryv1alpha1.DevfileRegistry) string

GetOCIRegistryImage returns the container image for the OCI registry to be deployed on the Devfile Registry. Default: "quay.io/devfile/oci-registry:next"

func GetOCIRegistryImagePullPolicy

func GetOCIRegistryImagePullPolicy(cr *registryv1alpha1.DevfileRegistry) corev1.PullPolicy

GetOCIRegistryImagePullPolicy returns the image pull policy for the OCI registry container. Default: "Always"

func GetRegistryViewerImage

func GetRegistryViewerImage(cr *registryv1alpha1.DevfileRegistry) string

GetRegistryViewerImage returns the container image for the registry viewer to be deployed on the Devfile Registry. Default: "quay.io/devfile/registry-viewer:next"

func GetRegistryViewerImagePullPolicy

func GetRegistryViewerImagePullPolicy(cr *registryv1alpha1.DevfileRegistry) corev1.PullPolicy

GetRegistryViewerImagePullPolicy returns the image pull policy for the registry viewer container. Default: "Always"

func IngressName

func IngressName(devfileRegistryName string) string

IngressName returns the name of the Ingress object associated with the DevfileRegistry CR Just returns the CR name right now, but extracting to a function to avoid relying on that assumption in the future

func IsHeadlessEnabled

func IsHeadlessEnabled(cr *registryv1alpha1.DevfileRegistry) bool

IsHeadlessEnabled returns value (true/false) set under spec attribute headless If it's not set, it returns false by default

func IsStorageEnabled

func IsStorageEnabled(cr *registryv1alpha1.DevfileRegistry) bool

IsStorageEnabled returns true if storage.enabled is set in the DevfileRegistry CR If it's not set, it returns false by default.

func IsTLSEnabled

func IsTLSEnabled(cr *registryv1alpha1.DevfileRegistry) bool

IsTLSEnabled returns true if tls.enabled is set in the DevfileRegistry CR If it's not set, it returns true by default.

func IsTelemetryEnabled

func IsTelemetryEnabled(cr *registryv1alpha1.DevfileRegistry) bool

IsTelemetryEnabled returns true if telemetry.key is set in the DevfileRegistry CR If it's not set, it returns false by default

func LabelsForDevfileRegistry

func LabelsForDevfileRegistry(name string) map[string]string

LabelsForDevfileRegistry returns the labels for selecting the resources belonging to the given devfileregistry CR name.

func PVCName

func PVCName(devfileRegistryName string) string

PVCName returns the name of the PVC object associated with the DevfileRegistry CR Just returns the CR name right now, but extracting to a function to avoid relying on that assumption in the future

func ServiceName

func ServiceName(devfileRegistryName string) string

ServiceName returns the name of the service object associated with the DevfileRegistry CR Just returns the CR name right now, but extracting to a function to avoid relying on that assumption in the future

Types

This section is empty.

Jump to

Keyboard shortcuts

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