registry

package
v0.0.0-...-d134b14 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InternalAccessSecretName = "dockerregistry-config"
	ExternalAccessSecretName = "dockerregistry-config-external"
	LabelConfigKey           = "dockerregistry.kyma-project.io/config"
	LabelConfigVal           = "credentials"
	DeploymentName           = "dockerregistry"
	HttpEnvKey               = "REGISTRY_HTTP_SECRET"
)
View Source
const (
	ServicePort = 5000
)

Variables

This section is empty.

Functions

func GetDockerRegistryInternalRegistrySecret

func GetDockerRegistryInternalRegistrySecret(ctx context.Context, c client.Client, namespace string) (*corev1.Secret, error)

func GetRegistryHTTPSecretEnvValue

func GetRegistryHTTPSecretEnvValue(ctx context.Context, c client.Client, namespace string) (string, error)

func GetSecret

func GetSecret(ctx context.Context, c client.Client, name, namespace string) (*corev1.Secret, error)

func RandomNodePort

func RandomNodePort() int32

Types

type ExternalAccessResolver

type ExternalAccessResolver interface {
	Do(context.Context, client.Client, v1alpha1.ExternalAccess) (*ResolvedAccess, error)
}

func NewExternalAccessResolver

func NewExternalAccessResolver(defaultKymaGatewayHostPrefix string) ExternalAccessResolver

type NodePortResolver

type NodePortResolver struct {
	// contains filtered or unexported fields
}

func NewNodePortResolver

func NewNodePortResolver(finder nodePortFinder) *NodePortResolver

func (*NodePortResolver) GetNodePort

func (npr *NodePortResolver) GetNodePort(ctx context.Context, k8sClient client.Client, namespace string) (int32, error)

type ResolvedAccess

type ResolvedAccess struct {
	Gateway string
	Host    string
}

Jump to

Keyboard shortcuts

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