Documentation ¶
Index ¶
- func ComponentAffinity(ns string, labels map[string]string) *corev1.Affinity
- func ComponentEnv(ctx *ClusterContext) []corev1.EnvVar
- func ComponentTolerations() []corev1.Toleration
- func DefaultDeployAnnotations() map[string]string
- func DefaultRollingUpdateStrategy() appsv1.DeploymentStrategy
- func FillClusterContext(ctx *ClusterContext, multiMgr *clustermanager.ClusterManager) error
- func ObjectMeta(name string, labels map[string]string, config runtime.Object) metav1.ObjectMeta
- func ObjectMetaClusterScope(name string, labels map[string]string, config runtime.Object) metav1.ObjectMeta
- func ObjectMetaWithAnnotations(name string, labels map[string]string, annotations map[string]string, ...) metav1.ObjectMeta
- func TargetAvgCpuUtil80() []autoscalev2beta1.MetricSpec
- type ClusterContext
- func (c *ClusterContext) Clientset() (kubernetes.Interface, error)
- func (c *ClusterContext) ClientsetForBootstrap() (kubernetes.Interface, error)
- func (c *ClusterContext) Host() (string, error)
- func (c *ClusterContext) HostForBootstrap() (string, error)
- func (c *ClusterContext) IPs() []string
- func (c *ClusterContext) RESTConfig(config *rest.Config) (*rest.Config, error)
- func (c *ClusterContext) RESTConfigForBootstrap(config *rest.Config) (*rest.Config, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentAffinity ¶
Affinity: Affinity, Tolerations: Tolerations,
func ComponentEnv ¶
func ComponentEnv(ctx *ClusterContext) []corev1.EnvVar
func ComponentTolerations ¶
func ComponentTolerations() []corev1.Toleration
func DefaultRollingUpdateStrategy ¶
func DefaultRollingUpdateStrategy() appsv1.DeploymentStrategy
func FillClusterContext ¶
func FillClusterContext(ctx *ClusterContext, multiMgr *clustermanager.ClusterManager) error
func ObjectMeta ¶
func ObjectMetaClusterScope ¶
func TargetAvgCpuUtil80 ¶
func TargetAvgCpuUtil80() []autoscalev2beta1.MetricSpec
Types ¶
type ClusterContext ¶
type ClusterContext struct { Ctx context.Context Key types.NamespacedName Cluster *devopsv1.Cluster Credential *devopsv1.ClusterCredential *clustermanager.ClusterManager client.Client logr.Logger }
func (*ClusterContext) Clientset ¶
func (c *ClusterContext) Clientset() (kubernetes.Interface, error)
func (*ClusterContext) ClientsetForBootstrap ¶
func (c *ClusterContext) ClientsetForBootstrap() (kubernetes.Interface, error)
func (*ClusterContext) Host ¶
func (c *ClusterContext) Host() (string, error)
func (*ClusterContext) HostForBootstrap ¶
func (c *ClusterContext) HostForBootstrap() (string, error)
func (*ClusterContext) IPs ¶
func (c *ClusterContext) IPs() []string
func (*ClusterContext) RESTConfig ¶
func (*ClusterContext) RESTConfigForBootstrap ¶
Click to show internal directories.
Click to hide internal directories.