Closed davidkirwan closed 5 years ago
Sample logs showing the CR being reconciled
{"level":"info","ts":1563274421.3967912,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:85","msg":"Reconciling BlackboxTarget","Request.Namespace":"middleware-monitoring","Request.Name":"example-blackboxtarget"}
{"level":"info","ts":1563274421.3969054,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:138","msg":"BlackboxTarget setFinalizer CR:example-blackboxtarget"}
{"level":"info","ts":1563274421.3970015,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:149","msg":"BlackboxTarget updatePhase CR:example-blackboxtarget Phase: 1"}
{"level":"info","ts":1563274421.4449716,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:85","msg":"Reconciling BlackboxTarget","Request.Namespace":"middleware-monitoring","Request.Name":"example-blackboxtarget"}
{"level":"info","ts":1563274421.4450076,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:106","msg":"BlackboxTarget phaseDone CR:example-blackboxtarget Phase: 1","Request.Namespace":"middleware-monitoring","Request.Name":"example-blackboxtarget"}
{"level":"info","ts":1563274421.4450185,"logger":"controller_blackboxtarget","caller":"blackboxtarget/blackboxtarget_controller.go:149","msg":"BlackboxTarget updatePhase CR:example-blackboxtarget Phase: 2"}
@davidkirwan Merging this. Can you build 0.0.18 from master after, and tag & push to quay.io
JIRA: https://issues.jboss.org/browse/INTLY-2618
Allow blackbox targets to be specified via a
BlackboxTargets
CRD/CR Installer version bump PR: https://github.com/integr8ly/installation/pull/751Verification:
davidkirwan:blackboxtargets_crd
oc apply -f deploy/crds/BlackboxTarget.yaml
--oc apply -f deploy/operator_roles
--oc apply -f deploy/roles
middleware-monitoring
spool down theapplication monitoring operator
instance to0
operator-sdk up local --namespace "middleware-monitoring"
oc apply -f deploy/example/BlackboxTarget.yaml
additional-scrape-configs
should have thetargets
array updated with the blackbox targets added via the BlackboxTarget CRendpoints
dashboards