brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geomacy <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request: Add catalog.bom application white/bl...
Date Mon, 18 Apr 2016 14:29:40 GMT
GitHub user geomacy reopened a pull request:

    https://github.com/apache/brooklyn-server/pull/106

    Add catalog.bom application white/blacklists.

    Note this PR depends on https://github.com/apache/brooklyn-server/pull/100 and should
be merged after it.
    
    It is desirable to have a config time mechanism to control what
    bundles are allowed to present applications in the catalog and
    what aren't.
    
    This change adds a white/blacklist mechanism to the catalog.bom
    bundle scanning. Each list takes the form of a CSV whitelist of
    regexes to match against bundle symbolic ids.  A bundle will be
    allowed to add an application (template) to the catalog if its
    bundle id matches one of the regexes on the whitelist, and also
    does not match one of the regexes on the blacklist.
    
    The configuration keys and default values for the lists are:
    
    brooklyn.catalog.osgi.application.whitelist=.*
    brooklyn.catalog.osgi.application.blacklist=
    
    (i.e. by default accept all bundles).
    
    these values are specified in the file org.apache.brooklyn.core.catalog.bomscanner.cfg
    
    Note that two 'default'  example applications are supplied in the bom
    for brooklyn-software-base.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/geomacy/brooklyn-server default-catalog

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/106.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #106
    
----
commit 7046ba59cefd7e82ffad3f97057b3646915d1f08
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Date:   2016-04-07T08:34:54Z

    Add catalog.bom application white/blacklists.
    
    Any bundle with a catalog.bom file may specify applications to
    appear in the catalog (itemType: template).
    
    It is desirable to have a config time mechanism to control what
    bundles are allowed to present applications in the catalog and
    what aren't.
    
    This change adds a white/blacklist mechanism to the catalog.bom
    bundle scanning. Each list takes the form of a CSV whitelist of
    regexes to match against bundle symbolic ids.  A bundle will be
    allowed to add an application (template) to the catalog if its
    bundle id matches one of the regexes on the whitelist, and also
    does not match one of the regexes on the blacklist.
    
    The configuration keys and default values for the lists are:
    
    brooklyn.catalog.osgi.application.whitelist=.*
    brooklyn.catalog.osgi.application.blacklist=
    
    (i.e. by default accept all bundles).
    
    these values are specified in the file org.apache.brooklyn.core.catalog.bomscanner.cfg
    
    Note that two 'default' example applications are supplied in the bom
    for brooklyn-software-base.

commit 060edf0069e3ffd21ff7b69fc84da043b84c083d
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Date:   2016-04-15T15:58:57Z

    Add integration tests for CatalogBomScanner.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message