• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

operator-framework / operator-sdk / 7898 / 5
31%
master: 31%

Build:
DEFAULT BRANCH: master
Ran 13 Dec 2019 06:59PM UTC
Files 69
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Dec 2019 06:38PM UTC coverage: 49.292%. Remained the same
7898.5

push

travis-ci

web-flow
feat: improve ansible logs in the operator container (#2321)

**Description of the change:**
- Print the Ansible Tasks Outputs formatted in the container logs

**Motivation for the change:**
- Allow users test/debug ansible operators locally by running `operator-sdk up local` and check the logs 
- Make easier to check the logs since it provides the Ansible output as well. 

Closes #2244

**Local test with the scenario of #2244**

```
$ kubectl logs deployment.apps/memcached-operator -c operator -n memcached
{"level":"info","ts":1576167898.9148664,"logger":"cmd","msg":"Go Version: go1.13.3"}
{"level":"info","ts":1576167898.9149115,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"}
{"level":"info","ts":1576167898.9149296,"logger":"cmd","msg":"Version of operator-sdk: v0.13.0+git"}
{"level":"info","ts":1576167898.9149444,"logger":"cmd","msg":"Watching namespace.","Namespace":"memcached"}
{"level":"info","ts":1576167899.2269607,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":"0.0.0.0:8383"}
{"level":"info","ts":1576167899.2279701,"logger":"watches","msg":"Environment variable not set; using default value","envVar":"WORKER_MEMCACHED_CACHE_EXAMPLE_COM","default":1}
{"level":"info","ts":1576167899.228028,"logger":"watches","msg":"Environment variable not set; using default value","envVar":"ANSIBLE_VERBOSITY_MEMCACHED_CACHE_EXAMPLE_COM","default":2}
{"level":"info","ts":1576167899.228067,"logger":"ansible-controller","msg":"Watching resource","Options.Group":"cache.example.com","Options.Version":"v1alpha1","Options.Kind":"Memcached"}
{"level":"info","ts":1576167899.2283535,"logger":"leader","msg":"Trying to become the leader."}
{"level":"info","ts":1576167899.5672975,"logger":"leader","msg":"No pre-existing lock was found."}
{"level":"info","ts":1576167899.570518,"logger":"leader","msg":"Became the leader."}
{"level":"info","ts":1576167900.1903841,"logger":"metrics","msg":"Metrics Service object c... (continued)

2194 of 4451 relevant lines covered (49.29%)

4.47 hits per line

Source Files on job 7898.5
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 382
  • Travis Job 7898.5
  • 1fa8c0f0 on github
  • Prev Job for on master (#7885.5)
  • Next Job for on master (#7902.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc