Documentation
¶
Index ¶
- Constants
- func ApplyServiceMonitor(ctx context.Context, client dynamic.Interface, recorder events.Recorder, ...) (*unstructured.Unstructured, bool, error)
- func NewTargetConfigReconciler(targetImage string, namespace string, ...) factory.Controller
- func ReadServiceMonitorV1OrDie(objBytes []byte) *monitoringv1.ServiceMonitor
- func RunOperator(ctx context.Context, cc *controllercmd.ControllerContext) error
- type TargetConfigReconciler
Constants ¶
View Source
const ( MetricsCertificateSecretName = "metrics-server-cert" WebhookCertificateSecretName = "webhook-server-cert" WebhookCertificateName = "lws-serving-cert" CertManagerInjectCaAnnotation = "cert-manager.io/inject-ca-from" // PrometheusClientCertsPath is a mounted secret in the openshift-monitoring prometheus PrometheusClientCertsPath = "/etc/prometheus/secrets/metrics-client-certs/" )
Variables ¶
This section is empty.
Functions ¶
func ApplyServiceMonitor ¶
func ApplyServiceMonitor(ctx context.Context, client dynamic.Interface, recorder events.Recorder, required *monitoringv1.ServiceMonitor, cache resourceapply.ResourceCache) (*unstructured.Unstructured, bool, error)
ApplyServiceMonitor applies the ServiceMonitor.
func NewTargetConfigReconciler ¶
func NewTargetConfigReconciler( targetImage string, namespace string, operatorConfigClient leaderworkersetoperatorv1clientset.LeaderWorkerSetOperatorInterface, operatorClientInformer operatorclientinformers.LeaderWorkerSetOperatorInformer, kubeInformersForNamespaces v1helpers.KubeInformersForNamespaces, leaderWorkerSetOperatorClient *operatorclient.LeaderWorkerSetClient, dynamicClient dynamic.Interface, discoveryClient discovery.DiscoveryInterface, kubeClient kubernetes.Interface, apiExtensionClient *apiextclientv1.Clientset, eventRecorder events.Recorder, ) factory.Controller
func ReadServiceMonitorV1OrDie ¶
func ReadServiceMonitorV1OrDie(objBytes []byte) *monitoringv1.ServiceMonitor
func RunOperator ¶
func RunOperator(ctx context.Context, cc *controllercmd.ControllerContext) error
Types ¶
type TargetConfigReconciler ¶
type TargetConfigReconciler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.