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

operator-framework / operator-sdk / 9141
31%

Build:
DEFAULT BRANCH: master
Ran 20 Mar 2020 03:17PM UTC
Jobs 1
Files 82
Run time 21s
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

20 Mar 2020 02:44PM UTC coverage: 43.127% (+0.3%) from 42.82%
9141

push

travis-ci

web-flow
Improve behavior of namespace flags in operator-sdk run and operator-sdk test local subcommands (#2617)

* Separate run --local and --olm namespace flags

Rename `--namespace` flag as `--watch-namespace` and use only
with `operator-sdk run --local`

Add a `--operator-namespace` flag to be used only with `operator-sdk run --olm`

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>

* Renames test local --namespace flag --operator-namepsace

This patches chages the `--namespace` flag in `operator-sdk test local <test-dir> --up-local`
command with `--operator-namespace`. This is done with respect to
the discussion (git and slack) #2100 #2149

This will help with making the behavior and scope of the flag explicit.
Now a flag `--watch-namespace` flag can be added to `operator-sdk test local <test-dir> --up-local`
to explicitly set `WATCH_NAMESPACE` envvar to different namespace (even `WATCH_NAMESPACE=""`)

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>

* Add --watch-namespace to operator-sdk test local sub-command

Add --watch-namespace flag to `operator-sdk test local <test-dir> --up-local` command

`--operator-namespace` flag specifies namespace where namespaced resources are deployed for testing

`--watch-namespace` flag specifies the namespace which operator watches during testing. That is the value
of `WATCH_NAMESPACE` envvar

**the behavior of `--watch-namespace` flags is as follows**

when not set
    `WATCH_NAMESPACE` is set to operator namespace.
    which means when `--watch-namespace` is not set, watch-namespace == operator-namespace
    operator watches operator-namespace during testing

`--watch-namespace=foo`
    `WATCH_NAMESPACES=foo` operator watches namespace `foo` during testing

`--watch-namespace=""`
    `WATCH_NAMESPACES=""` operator watches all namespaces during testing

Signed-off-by: Nikhil Thomas <nikthoma@redhat.com>

* Add unit tests in for pkg/test

Add unit tests for
- `ctx.Ge... (continued)

2670 of 6191 relevant lines covered (43.13%)

4.24 hits per line

Jobs
ID Job ID Ran Files Coverage
5 9141.5 (PATH=/opt/python/3.6.7/bin:$PATH) 20 Mar 2020 03:17PM UTC 0
43.13
Travis Job 9141.5
Source Files on build 9141
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9141
  • 321ae57a on github
  • Prev Build on master (#9136)
  • Next Build on master (#9145)
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