Documentation
¶
Index ¶
- Constants
- func GetBundleName(ownerName string) string
- func GetCacheServerBaseHost(s *operatorv1alpha1.CacheServer) string
- func GetCacheServerBaseURL(s *operatorv1alpha1.CacheServer) string
- func GetCacheServerCAName(cacheServerName string, caName operatorv1alpha1.CA) string
- func GetCacheServerCertificateName(s *operatorv1alpha1.CacheServer, certName operatorv1alpha1.Certificate) string
- func GetCacheServerClientCertificateName(s *operatorv1alpha1.CacheServer) string
- func GetCacheServerDeploymentName(s *operatorv1alpha1.CacheServer) string
- func GetCacheServerKubeconfigName(cacheServerName string) string
- func GetCacheServerResourceLabels(s *operatorv1alpha1.CacheServer) map[string]string
- func GetCacheServerServiceName(s *operatorv1alpha1.CacheServer) string
- func GetFrontProxyCertificateName(r *operatorv1alpha1.RootShard, f *operatorv1alpha1.FrontProxy, ...) string
- func GetFrontProxyConfigName(f *operatorv1alpha1.FrontProxy) string
- func GetFrontProxyDeploymentName(f *operatorv1alpha1.FrontProxy) string
- func GetFrontProxyDynamicKubeconfigName(r *operatorv1alpha1.RootShard, f *operatorv1alpha1.FrontProxy) string
- func GetFrontProxyResourceLabels(f *operatorv1alpha1.FrontProxy) map[string]string
- func GetFrontProxyServiceName(f *operatorv1alpha1.FrontProxy) string
- func GetImageSettings(imageSpec *operatorv1alpha1.ImageSpec) (string, []corev1.LocalObjectReference, *semver.Version)
- func GetMergedClientCAName(ownerName string) string
- func GetRootShardBaseHost(r *operatorv1alpha1.RootShard) string
- func GetRootShardBaseURL(r *operatorv1alpha1.RootShard) string
- func GetRootShardCAName(r *operatorv1alpha1.RootShard, caName operatorv1alpha1.CA) string
- func GetRootShardCertificateName(r *operatorv1alpha1.RootShard, certName operatorv1alpha1.Certificate) string
- func GetRootShardDeploymentName(r *operatorv1alpha1.RootShard) string
- func GetRootShardKubeconfigSecret(r *operatorv1alpha1.RootShard, cert operatorv1alpha1.Certificate) string
- func GetRootShardProxyCertificateName(r *operatorv1alpha1.RootShard, certName operatorv1alpha1.Certificate) string
- func GetRootShardProxyConfigName(r *operatorv1alpha1.RootShard) string
- func GetRootShardProxyDeploymentName(r *operatorv1alpha1.RootShard) string
- func GetRootShardProxyDynamicKubeconfigName(r *operatorv1alpha1.RootShard) string
- func GetRootShardProxyResourceLabels(r *operatorv1alpha1.RootShard) map[string]string
- func GetRootShardProxyServiceName(r *operatorv1alpha1.RootShard) string
- func GetRootShardResourceLabels(r *operatorv1alpha1.RootShard) map[string]string
- func GetRootShardServiceName(r *operatorv1alpha1.RootShard) string
- func GetShardBaseHost(s *operatorv1alpha1.Shard) string
- func GetShardBaseURL(s *operatorv1alpha1.Shard) string
- func GetShardCertificateName(s *operatorv1alpha1.Shard, certName operatorv1alpha1.Certificate) string
- func GetShardDeploymentName(s *operatorv1alpha1.Shard) string
- func GetShardKubeconfigSecret(shard *operatorv1alpha1.Shard, cert operatorv1alpha1.Certificate) string
- func GetShardResourceLabels(s *operatorv1alpha1.Shard) map[string]string
- func GetShardServiceName(s *operatorv1alpha1.Shard) string
- func GetVirtualWorkspaceBaseHost(s *operatorv1alpha1.VirtualWorkspace) string
- func GetVirtualWorkspaceBaseURL(s *operatorv1alpha1.VirtualWorkspace) string
- func GetVirtualWorkspaceCertificateName(vw *operatorv1alpha1.VirtualWorkspace, certName operatorv1alpha1.Certificate) string
- func GetVirtualWorkspaceDeploymentName(vw *operatorv1alpha1.VirtualWorkspace) string
- func GetVirtualWorkspaceResourceLabels(vw *operatorv1alpha1.VirtualWorkspace) map[string]string
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" 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.31.1" // 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 GetBundleName ¶ added in v0.5.0
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 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 GetFrontProxyCertificateName ¶
func GetFrontProxyCertificateName(r *operatorv1alpha1.RootShard, f *operatorv1alpha1.FrontProxy, certName operatorv1alpha1.Certificate) string
func GetFrontProxyConfigName ¶
func GetFrontProxyConfigName(f *operatorv1alpha1.FrontProxy) string
func GetFrontProxyDeploymentName ¶
func GetFrontProxyDeploymentName(f *operatorv1alpha1.FrontProxy) string
func GetFrontProxyDynamicKubeconfigName ¶
func GetFrontProxyDynamicKubeconfigName(r *operatorv1alpha1.RootShard, f *operatorv1alpha1.FrontProxy) string
func GetFrontProxyResourceLabels ¶
func GetFrontProxyResourceLabels(f *operatorv1alpha1.FrontProxy) map[string]string
func GetFrontProxyServiceName ¶
func GetFrontProxyServiceName(f *operatorv1alpha1.FrontProxy) string
func GetImageSettings ¶
func GetImageSettings(imageSpec *operatorv1alpha1.ImageSpec) (string, []corev1.LocalObjectReference, *semver.Version)
func GetMergedClientCAName ¶ added in v0.5.1
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 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.
Click to show internal directories.
Click to hide internal directories.