Documentation
¶
Index ¶
- func ApplyDaemonSetOverrides(ds *appsv1.DaemonSet, overrides any)
- func ApplyDeploymentOverrides(d *appsv1.Deployment, overrides any)
- func ApplyEnvoyProxyOverrides(ep *envoyapi.EnvoyProxy, overrides any)
- func ApplyJobOverrides(job *batchv1.Job, overrides any)
- func ApplyKibanaOverrides(k *kbv1.Kibana, overrides any)
- func ApplyPodDisruptionBudgetOverrides(pdb *policyv1.PodDisruptionBudget, ...)
- func ApplyPodTemplateOverrides(podtemplate *corev1.PodTemplate, overrides any)
- func ApplyPrometheusOverrides(prom *monitoringv1.Prometheus, overrides *operator.Prometheus)
- func ApplyStatefulSetOverrides(s *appsv1.StatefulSet, overrides any)
- func ClusterRoleBinding(name, clusterRole, sa string, namespaces []string) *rbacv1.ClusterRoleBinding
- func GetAffinity(overrides any) *corev1.Affinity
- func GetContainerOverrides(overrides any) []containerOverride
- func GetContainers(overrides any) []corev1.Container
- func GetDNSConfig(overrides any) *corev1.PodDNSConfig
- func GetDNSPolicy(overrides any) (corev1.DNSPolicy, bool)
- func GetDeploymentStrategy(overrides any) *appsv1.DeploymentStrategy
- func GetHostNetwork(overrides any) *bool
- func GetInitContainers(overrides any) []corev1.Container
- func GetMetadata(overrides any) *operator.Metadata
- func GetMinReadySeconds(overrides any) *int32
- func GetNodeSelector(overrides any) map[string]string
- func GetPodTemplateMetadata(overrides any) *operator.Metadata
- func GetPriorityClassName(overrides any) string
- func GetReplicas(overrides any) *int32
- func GetTerminationGracePeriodSeconds(overrides any) *int64
- func GetTolerations(overrides any) []corev1.Toleration
- func GetTopologySpreadConstraints(overrides any) []corev1.TopologySpreadConstraint
- func RoleBinding(name, clusterRole, sa string, namespace string) *rbacv1.RoleBinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyDaemonSetOverrides ¶
ApplyDaemonSetOverrides applies the overrides to the given DaemonSet. Note: overrides must not be nil pointer.
func ApplyDeploymentOverrides ¶
func ApplyDeploymentOverrides(d *appsv1.Deployment, overrides any)
ApplyDeploymentOverrides applies the overrides to the given Deployment. Note: overrides must not be nil pointer.
func ApplyEnvoyProxyOverrides ¶ added in v1.37.0
func ApplyEnvoyProxyOverrides(ep *envoyapi.EnvoyProxy, overrides any)
ApplyEnvoyProxyOverrides applies the overrides to the given EnvoyProxy. Note: overrides must not be nil pointer.
func ApplyJobOverrides ¶ added in v1.34.0
ApplyJobOverrides applies the overrides to the given Job.
func ApplyKibanaOverrides ¶ added in v1.34.0
ApplyKibanaOverrides applies the overrides to the given Kibana. Note: overrides must not be nil pointer.
func ApplyPodDisruptionBudgetOverrides ¶
func ApplyPodDisruptionBudgetOverrides(pdb *policyv1.PodDisruptionBudget, overrides *operator.PodDisruptionBudgetOverride)
ApplyPodDisruptionBudgetOverrides applies the overrides to the given PodDisruptionBudget. Overrides that are nil leave the corresponding field on the PDB untouched, preserving the operator's default. Setting Spec.MinAvailable clears Spec.MaxUnavailable and vice versa (the PDB API mandates these are mutually exclusive). The PDB's selector is never modified. Labels and annotations from Metadata are merged into the PDB's existing labels and annotations.
func ApplyPodTemplateOverrides ¶ added in v1.34.0
func ApplyPodTemplateOverrides(podtemplate *corev1.PodTemplate, overrides any)
ApplyPodTemplateOverrides applies the overrides to the given PodTemplate.
func ApplyPrometheusOverrides ¶ added in v1.34.0
func ApplyPrometheusOverrides(prom *monitoringv1.Prometheus, overrides *operator.Prometheus)
ApplyPrometheusOverrides applies the overrides to the given Prometheus. Note: overrides must not be nil pointer.
func ApplyStatefulSetOverrides ¶ added in v1.34.0
func ApplyStatefulSetOverrides(s *appsv1.StatefulSet, overrides any)
ApplyStatefulSetOverrides applies the overrides to the given DaemonSet. Note: overrides must not be nil pointer.
func ClusterRoleBinding ¶ added in v1.32.0
func ClusterRoleBinding(name, clusterRole, sa string, namespaces []string) *rbacv1.ClusterRoleBinding
ClusterRoleBinding returns a cluster role binding with the given name, that binds the given cluster role to the service account in each of the provided namespaces.
func GetAffinity ¶ added in v1.37.0
func GetContainerOverrides ¶
func GetContainerOverrides(overrides any) []containerOverride
GetContainerOverrides returns the full container overrides including probe timing.
func GetContainers ¶ added in v1.37.0
func GetDNSConfig ¶ added in v1.40.0
func GetDNSConfig(overrides any) *corev1.PodDNSConfig
func GetDeploymentStrategy ¶ added in v1.37.0
func GetDeploymentStrategy(overrides any) *appsv1.DeploymentStrategy
func GetHostNetwork ¶ added in v1.42.0
func GetInitContainers ¶ added in v1.37.0
func GetMetadata ¶ added in v1.37.0
func GetMinReadySeconds ¶ added in v1.37.0
func GetNodeSelector ¶ added in v1.37.0
func GetPodTemplateMetadata ¶ added in v1.37.0
func GetPriorityClassName ¶ added in v1.37.0
func GetReplicas ¶ added in v1.39.0
func GetTerminationGracePeriodSeconds ¶ added in v1.37.0
func GetTolerations ¶ added in v1.37.0
func GetTolerations(overrides any) []corev1.Toleration
func GetTopologySpreadConstraints ¶ added in v1.37.0
func GetTopologySpreadConstraints(overrides any) []corev1.TopologySpreadConstraint
func RoleBinding ¶ added in v1.39.0
func RoleBinding(name, clusterRole, sa string, namespace string) *rbacv1.RoleBinding
RoleBinding returns a role binding with the given name, that binds the given cluster role to the service account in the provided namespace.
Types ¶
This section is empty.