Skip to content

Using only allowed customAttributes - #342

Open
iceman91176 wants to merge 2 commits into
pryorda:mainfrom
iceman91176:feat_filter_custom_attributes
Open

Using only allowed customAttributes#342
iceman91176 wants to merge 2 commits into
pryorda:mainfrom
iceman91176:feat_filter_custom_attributes

Conversation

@iceman91176

Copy link
Copy Markdown

This provides controlling which custom attributes will be added as a label. Only allowed customAttributes will be added as a label.
Allowed customAttributes can be configured as a YAML-List in the config fileor as a comma-seaparted string for ENV-Vatiables.

For backwards compatibility all customAttributes will be returned if there is no configuration for Allowed customAttributes

Signed-off-by: Carsten Buchberger c.buchberger@witcom.de

This provides a filter for allowed customAttributes.
Only allowed customAttributes will be added as a label

Signed-off-by: Carsten Buchberger <c.buchberger@witcom.de>
@iceman91176

Copy link
Copy Markdown
Author

Example for config.yml

default:
    vsphere_host: "some-vcenter.local"
    vsphere_user: "****@vsphere.local"
    vsphere_password: "***"
    ignore_ssl: True
    specs_size: 5000
    fetch_custom_attributes: True
    custom_attributes_allowed:
    - configurationId
    fetch_tags: False
    fetch_alarms: True
    collect_only:
        vms: False
        vmguests: False
        datastores: True
        hosts: True
        snapshots: True

Signed-off-by: Carsten Buchberger <c.buchberger@witcom.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant