algairim commented on code in PR #360: URL: https://github.com/apache/brooklyn-docs/pull/360#discussion_r913672388
########## guide/blueprints/custom-entities.md: ########## @@ -262,6 +261,30 @@ so that the `$message` we passed above gets logged and reported back: period: 1s command: tail -1 server-input +#### ContainerSensor + +This blueprint uses initializers to define a `ContainerSensor` on a `BasicStartable` entity so that a random number is generated by executing a command on a container for this specific purpose, and destroyed afterwards. + +{% highlight yaml %} + +name: entity-with-container-sensor +services: +- type: 'org.apache.brooklyn.entity.stock.BasicStartable:1.1.0-SNAPSHOT' + brooklyn.initializers: + - type: org.apache.brooklyn.tasks.kubectl.ContainerSensor + brooklyn.config: + image: perl + imagePullPolicy: never + args: + - echo + - hello + name: test-sensor + period: 20s Review Comment: Wrong indentation. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brooklyn.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org