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

operator-framework / operator-sdk / 7898
31%

Build:
DEFAULT BRANCH: master
Ran 13 Dec 2019 06:59PM UTC
Jobs 1
Files 69
Run time 6s
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

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

Jobs
ID Job ID Ran Files Coverage
5 7898.5 13 Dec 2019 06:59PM UTC 0
49.29
Travis Job 7898.5
Source Files on build 7898
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7898
  • 1fa8c0f0 on github
  • Prev Build on master (#7885)
  • Next Build on master (#7902)
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