resources

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FrontProxyCommonName is the CommonName used in the requestheader client certificate for a FrontProxy.
	FrontProxyCommonName = "kcp-front-proxy"

	// RootShardProxyCommonName is the CommonName used in the requestheader client certificate for a RootShard's built-in proxy.
	RootShardProxyCommonName = "kcp-root-shard-proxy"

	// MountsProxyCommonName is the CommonName used in the client certificate that a shard's
	// local proxy presents when it re-enters the front-proxy to serve a mounted workspace.
	MountsProxyCommonName = "kcp-mounts-proxy"

	ImageRepository = "ghcr.io/kcp-dev/kcp"

	// ImageTag is the default tag to be used for any kcp component.
	//
	// When changing this to a new minor version, you must also update
	// the .prow.yaml accordingly and shift the jobs.
	ImageTag = "v0.32.3"

	// RootShardLabel is placed on Secrets created for Certificates so that
	// the Secrets can be more easily mapped to their RootShards.
	RootShardLabel        = "operator.kcp.io/rootshard"
	ShardLabel            = "operator.kcp.io/shard"
	FrontProxyLabel       = "operator.kcp.io/front-proxy"
	KubeconfigLabel       = "operator.kcp.io/kubeconfig"
	CacheServerLabel      = "operator.kcp.io/cache-server"
	VirtualWorkspaceLabel = "operator.kcp.io/virtual-workspace"

	// BundleAnnotation is placed on RootShard, Shard, or FrontProxy objects to trigger automatic Bundle creation
	BundleAnnotation = "operator.kcp.io/bundle"

	// BundleDesiredReplicasAnnotation is placed on deployments to store the desired replica count before scaling to 0 for bundling
	BundleDesiredReplicasAnnotation = "operator.kcp.io/bundle-desired-replicas"

	// OperatorUsername is the common name embedded in the operator's admin certificate
	// that is created for each RootShard. This name alone has no special meaning, as
	// the certificate also has system:masters as an organization, which is what ultimately
	// grants the operator its permissions.
	OperatorUsername = "system:kcp-operator"
)

Variables

This section is empty.

Functions

func CopyBundleAnnotation added in v0.9.0

func CopyBundleAnnotation(from, to metav1.Object)

CopyBundleAnnotation mirrors the bundle annotation onto a compiled object, because the Deployment renderers key their scale-to-zero off it.

func GetBundleName added in v0.5.0

func GetBundleName(ownerName string) string

func GetCacheServerBaseHost added in v0.5.0

func GetCacheServerBaseHost(s *operatorv1alpha1.CacheServer) string

func GetCacheServerBaseURL added in v0.5.0

func GetCacheServerBaseURL(s *operatorv1alpha1.CacheServer) string

func GetCacheServerCAName added in v0.5.0

func GetCacheServerCAName(cacheServerName string, caName operatorv1alpha1.CA) string

func GetCacheServerCertificateName added in v0.5.0

func GetCacheServerCertificateName(s *operatorv1alpha1.CacheServer, certName operatorv1alpha1.Certificate) string

func GetCacheServerClientCertificateName added in v0.5.2

func GetCacheServerClientCertificateName(s *operatorv1alpha1.CacheServer) string

func GetCacheServerDeploymentName added in v0.5.0

func GetCacheServerDeploymentName(s *operatorv1alpha1.CacheServer) string

func GetCacheServerKubeconfigName added in v0.5.0

func GetCacheServerKubeconfigName(cacheServerName string) string

func GetCacheServerResourceLabels added in v0.5.0

func GetCacheServerResourceLabels(s *operatorv1alpha1.CacheServer) map[string]string

func GetCacheServerServiceName added in v0.5.0

func GetCacheServerServiceName(s *operatorv1alpha1.CacheServer) string

func GetCompiledCacheServerBaseHost added in v0.9.0

func GetCompiledCacheServerBaseHost(s *deployv1alpha1.CompiledCacheServer) string

func GetCompiledCacheServerBaseURL added in v0.9.0

func GetCompiledCacheServerBaseURL(s *deployv1alpha1.CompiledCacheServer) string

func GetCompiledCacheServerCertificateName added in v0.9.0

func GetCompiledCacheServerCertificateName(s *deployv1alpha1.CompiledCacheServer, certName operatorv1alpha1.Certificate) string

func GetCompiledCacheServerClientCertificateName added in v0.9.0

func GetCompiledCacheServerClientCertificateName(s *deployv1alpha1.CompiledCacheServer) string

func GetCompiledCacheServerDeploymentName added in v0.9.0

func GetCompiledCacheServerDeploymentName(s *deployv1alpha1.CompiledCacheServer) string

func GetCompiledCacheServerResourceLabels added in v0.9.0

func GetCompiledCacheServerResourceLabels(s *deployv1alpha1.CompiledCacheServer) map[string]string

func GetCompiledCacheServerServiceName added in v0.9.0

func GetCompiledCacheServerServiceName(s *deployv1alpha1.CompiledCacheServer) string

func GetCompiledFrontProxyCertificateName added in v0.9.0

func GetCompiledFrontProxyCertificateName(f *deployv1alpha1.CompiledFrontProxy, certName operatorv1alpha1.Certificate) string

func GetCompiledFrontProxyConfigName added in v0.9.0

func GetCompiledFrontProxyConfigName(f *deployv1alpha1.CompiledFrontProxy) string

func GetCompiledFrontProxyDeploymentName added in v0.9.0

func GetCompiledFrontProxyDeploymentName(f *deployv1alpha1.CompiledFrontProxy) string

func GetCompiledFrontProxyDynamicKubeconfigName added in v0.9.0

func GetCompiledFrontProxyDynamicKubeconfigName(f *deployv1alpha1.CompiledFrontProxy) string

func GetCompiledFrontProxyResourceLabels added in v0.9.0

func GetCompiledFrontProxyResourceLabels(f *deployv1alpha1.CompiledFrontProxy) map[string]string

func GetCompiledFrontProxyServiceName added in v0.9.0

func GetCompiledFrontProxyServiceName(f *deployv1alpha1.CompiledFrontProxy) string

func GetCompiledRootShardBaseHost added in v0.9.0

func GetCompiledRootShardBaseHost(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardBaseURL added in v0.9.0

func GetCompiledRootShardBaseURL(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardCAName added in v0.9.0

func GetCompiledRootShardCAName(r *deployv1alpha1.CompiledRootShard, caName operatorv1alpha1.CA) string

func GetCompiledRootShardCertificateName added in v0.9.0

func GetCompiledRootShardCertificateName(r *deployv1alpha1.CompiledRootShard, certName operatorv1alpha1.Certificate) string

func GetCompiledRootShardDeploymentName added in v0.9.0

func GetCompiledRootShardDeploymentName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardKubeconfigSecret added in v0.9.0

func GetCompiledRootShardKubeconfigSecret(r *deployv1alpha1.CompiledRootShard, cert operatorv1alpha1.Certificate) string

func GetCompiledRootShardProxyCertificateName added in v0.9.0

func GetCompiledRootShardProxyCertificateName(r *deployv1alpha1.CompiledRootShard, certName operatorv1alpha1.Certificate) string

func GetCompiledRootShardProxyConfigName added in v0.9.0

func GetCompiledRootShardProxyConfigName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardProxyDeploymentName added in v0.9.0

func GetCompiledRootShardProxyDeploymentName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardProxyDynamicKubeconfigName added in v0.9.0

func GetCompiledRootShardProxyDynamicKubeconfigName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardProxyResourceLabels added in v0.9.0

func GetCompiledRootShardProxyResourceLabels(r *deployv1alpha1.CompiledRootShard) map[string]string

func GetCompiledRootShardProxyServiceName added in v0.9.0

func GetCompiledRootShardProxyServiceName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledRootShardResourceLabels added in v0.9.0

func GetCompiledRootShardResourceLabels(r *deployv1alpha1.CompiledRootShard) map[string]string

func GetCompiledRootShardServiceName added in v0.9.0

func GetCompiledRootShardServiceName(r *deployv1alpha1.CompiledRootShard) string

func GetCompiledShardBaseHost added in v0.9.0

func GetCompiledShardBaseHost(s *deployv1alpha1.CompiledShard) string

func GetCompiledShardBaseURL added in v0.9.0

func GetCompiledShardBaseURL(s *deployv1alpha1.CompiledShard) string

func GetCompiledShardCertificateName added in v0.9.0

func GetCompiledShardCertificateName(s *deployv1alpha1.CompiledShard, certName operatorv1alpha1.Certificate) string

func GetCompiledShardDeploymentName added in v0.9.0

func GetCompiledShardDeploymentName(s *deployv1alpha1.CompiledShard) string

func GetCompiledShardKubeconfigSecret added in v0.9.0

func GetCompiledShardKubeconfigSecret(shard *deployv1alpha1.CompiledShard, cert operatorv1alpha1.Certificate) string

func GetCompiledShardResourceLabels added in v0.9.0

func GetCompiledShardResourceLabels(s *deployv1alpha1.CompiledShard) map[string]string

func GetCompiledShardServiceName added in v0.9.0

func GetCompiledShardServiceName(s *deployv1alpha1.CompiledShard) string

func GetCompiledVirtualWorkspaceBaseHost added in v0.9.0

func GetCompiledVirtualWorkspaceBaseHost(s *deployv1alpha1.CompiledVirtualWorkspace) string

func GetCompiledVirtualWorkspaceBaseURL added in v0.9.0

func GetCompiledVirtualWorkspaceBaseURL(s *deployv1alpha1.CompiledVirtualWorkspace) string

func GetCompiledVirtualWorkspaceCertificateName added in v0.9.0

func GetCompiledVirtualWorkspaceCertificateName(vw *deployv1alpha1.CompiledVirtualWorkspace, certName operatorv1alpha1.Certificate) string

func GetCompiledVirtualWorkspaceDeploymentName added in v0.9.0

func GetCompiledVirtualWorkspaceDeploymentName(vw *deployv1alpha1.CompiledVirtualWorkspace) string

func GetCompiledVirtualWorkspaceResourceLabels added in v0.9.0

func GetCompiledVirtualWorkspaceResourceLabels(vw *deployv1alpha1.CompiledVirtualWorkspace) map[string]string

func GetCompiledVirtualWorkspaceServiceName added in v0.9.0

func GetCompiledVirtualWorkspaceServiceName(vw *deployv1alpha1.CompiledVirtualWorkspace) string

func GetFrontProxyConfigName

func GetFrontProxyConfigName(f *operatorv1alpha1.FrontProxy) string

func GetFrontProxyDeploymentName

func GetFrontProxyDeploymentName(f *operatorv1alpha1.FrontProxy) string

func GetFrontProxyResourceLabels

func GetFrontProxyResourceLabels(f *operatorv1alpha1.FrontProxy) map[string]string

func GetFrontProxyServiceName

func GetFrontProxyServiceName(f *operatorv1alpha1.FrontProxy) string

func GetMergedClientCAName added in v0.5.1

func GetMergedClientCAName(ownerName string) string

func GetNamedRootShardBaseHost added in v0.9.0

func GetNamedRootShardBaseHost(r deployv1alpha1.NamedRootShardSpec, namespace string) string

func GetNamedRootShardBaseURL added in v0.9.0

func GetNamedRootShardBaseURL(r deployv1alpha1.NamedRootShardSpec, namespace string) string

func GetNamedRootShardCAName added in v0.9.0

func GetNamedRootShardCAName(r deployv1alpha1.NamedRootShardSpec, caName operatorv1alpha1.CA) string

func GetNamedRootShardCertificateName added in v0.9.0

func GetNamedRootShardCertificateName(r deployv1alpha1.NamedRootShardSpec, certName operatorv1alpha1.Certificate) string

func GetNamedRootShardDeploymentName added in v0.9.0

func GetNamedRootShardDeploymentName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedRootShardKubeconfigSecret added in v0.9.0

func GetNamedRootShardKubeconfigSecret(r deployv1alpha1.NamedRootShardSpec, cert operatorv1alpha1.Certificate) string

func GetNamedRootShardProxyCertificateName added in v0.9.0

func GetNamedRootShardProxyCertificateName(r deployv1alpha1.NamedRootShardSpec, certName operatorv1alpha1.Certificate) string

func GetNamedRootShardProxyConfigName added in v0.9.0

func GetNamedRootShardProxyConfigName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedRootShardProxyDeploymentName added in v0.9.0

func GetNamedRootShardProxyDeploymentName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedRootShardProxyDynamicKubeconfigName added in v0.9.0

func GetNamedRootShardProxyDynamicKubeconfigName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedRootShardProxyResourceLabels added in v0.9.0

func GetNamedRootShardProxyResourceLabels(r deployv1alpha1.NamedRootShardSpec) map[string]string

func GetNamedRootShardProxyServiceName added in v0.9.0

func GetNamedRootShardProxyServiceName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedRootShardResourceLabels added in v0.9.0

func GetNamedRootShardResourceLabels(r deployv1alpha1.NamedRootShardSpec) map[string]string

func GetNamedRootShardServiceName added in v0.9.0

func GetNamedRootShardServiceName(r deployv1alpha1.NamedRootShardSpec) string

func GetNamedShardBaseHost added in v0.9.0

func GetNamedShardBaseHost(s deployv1alpha1.NamedShardSpec, namespace string) string

func GetNamedShardBaseURL added in v0.9.0

func GetNamedShardBaseURL(s deployv1alpha1.NamedShardSpec, namespace string) string

func GetNamedShardCertificateName added in v0.9.0

func GetNamedShardCertificateName(s deployv1alpha1.NamedShardSpec, certName operatorv1alpha1.Certificate) string

func GetNamedShardDeploymentName added in v0.9.0

func GetNamedShardDeploymentName(s deployv1alpha1.NamedShardSpec) string

func GetNamedShardKubeconfigSecret added in v0.9.0

func GetNamedShardKubeconfigSecret(shard deployv1alpha1.NamedShardSpec, cert operatorv1alpha1.Certificate) string

func GetNamedShardResourceLabels added in v0.9.0

func GetNamedShardResourceLabels(s deployv1alpha1.NamedShardSpec) map[string]string

func GetNamedShardServiceName added in v0.9.0

func GetNamedShardServiceName(s deployv1alpha1.NamedShardSpec) string

func GetNamedVirtualWorkspaceBaseHost added in v0.9.0

func GetNamedVirtualWorkspaceBaseHost(vw deployv1alpha1.NamedVirtualWorkspaceSpec, namespace string) string

func GetNamedVirtualWorkspaceBaseURL added in v0.9.0

func GetNamedVirtualWorkspaceBaseURL(vw deployv1alpha1.NamedVirtualWorkspaceSpec, namespace string) string

func GetNamedVirtualWorkspaceCertificateName added in v0.9.0

func GetNamedVirtualWorkspaceCertificateName(vw deployv1alpha1.NamedVirtualWorkspaceSpec, certName operatorv1alpha1.Certificate) string

func GetNamedVirtualWorkspaceDeploymentName added in v0.9.0

func GetNamedVirtualWorkspaceDeploymentName(vw deployv1alpha1.NamedVirtualWorkspaceSpec) string

func GetNamedVirtualWorkspaceResourceLabels added in v0.9.0

func GetNamedVirtualWorkspaceResourceLabels(vw deployv1alpha1.NamedVirtualWorkspaceSpec) map[string]string

func GetRootShardBaseHost

func GetRootShardBaseHost(r *operatorv1alpha1.RootShard) string

func GetRootShardBaseURL

func GetRootShardBaseURL(r *operatorv1alpha1.RootShard) string

func GetRootShardCAName

func GetRootShardCAName(r *operatorv1alpha1.RootShard, caName operatorv1alpha1.CA) string

func GetRootShardCertificateName

func GetRootShardCertificateName(r *operatorv1alpha1.RootShard, certName operatorv1alpha1.Certificate) string

func GetRootShardDeploymentName

func GetRootShardDeploymentName(r *operatorv1alpha1.RootShard) string

func GetRootShardKubeconfigSecret added in v0.7.0

func GetRootShardKubeconfigSecret(r *operatorv1alpha1.RootShard, cert operatorv1alpha1.Certificate) string

func GetRootShardProxyBaseHost added in v0.9.0

func GetRootShardProxyBaseHost(r *operatorv1alpha1.RootShard) string

func GetRootShardProxyBaseURL added in v0.9.0

func GetRootShardProxyBaseURL(r *operatorv1alpha1.RootShard) string

func GetRootShardProxyCertificateName added in v0.2.0

func GetRootShardProxyCertificateName(r *operatorv1alpha1.RootShard, certName operatorv1alpha1.Certificate) string

func GetRootShardProxyConfigName added in v0.2.0

func GetRootShardProxyConfigName(r *operatorv1alpha1.RootShard) string

func GetRootShardProxyDeploymentName added in v0.2.0

func GetRootShardProxyDeploymentName(r *operatorv1alpha1.RootShard) string

func GetRootShardProxyDynamicKubeconfigName added in v0.2.0

func GetRootShardProxyDynamicKubeconfigName(r *operatorv1alpha1.RootShard) string

func GetRootShardProxyResourceLabels added in v0.2.0

func GetRootShardProxyResourceLabels(r *operatorv1alpha1.RootShard) map[string]string

func GetRootShardProxyServiceName added in v0.2.0

func GetRootShardProxyServiceName(r *operatorv1alpha1.RootShard) string

func GetRootShardResourceLabels

func GetRootShardResourceLabels(r *operatorv1alpha1.RootShard) map[string]string

func GetRootShardServiceName

func GetRootShardServiceName(r *operatorv1alpha1.RootShard) string

func GetShardBaseHost

func GetShardBaseHost(s *operatorv1alpha1.Shard) string

func GetShardBaseURL

func GetShardBaseURL(s *operatorv1alpha1.Shard) string

func GetShardCertificateName

func GetShardCertificateName(s *operatorv1alpha1.Shard, certName operatorv1alpha1.Certificate) string

func GetShardDeploymentName

func GetShardDeploymentName(s *operatorv1alpha1.Shard) string

func GetShardKubeconfigSecret added in v0.7.0

func GetShardKubeconfigSecret(shard *operatorv1alpha1.Shard, cert operatorv1alpha1.Certificate) string

func GetShardResourceLabels

func GetShardResourceLabels(s *operatorv1alpha1.Shard) map[string]string

func GetShardServiceName

func GetShardServiceName(s *operatorv1alpha1.Shard) string

func GetVirtualWorkspaceBaseHost added in v0.7.0

func GetVirtualWorkspaceBaseHost(s *operatorv1alpha1.VirtualWorkspace) string

func GetVirtualWorkspaceBaseURL added in v0.7.0

func GetVirtualWorkspaceBaseURL(s *operatorv1alpha1.VirtualWorkspace) string

func GetVirtualWorkspaceCertificateName added in v0.7.0

func GetVirtualWorkspaceCertificateName(vw *operatorv1alpha1.VirtualWorkspace, certName operatorv1alpha1.Certificate) string

func GetVirtualWorkspaceDeploymentName added in v0.7.0

func GetVirtualWorkspaceDeploymentName(vw *operatorv1alpha1.VirtualWorkspace) string

func GetVirtualWorkspaceResourceLabels added in v0.7.0

func GetVirtualWorkspaceResourceLabels(vw *operatorv1alpha1.VirtualWorkspace) map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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