这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Conversation

@ebukoski
Copy link
Contributor

An exclusion rule is a Rule that when matched, causes the resource to be excluded from being matched against any other cleanup rules. It enables a resource to be "Opted Out" of cleanup.

A TagValueExclusionRule is included in this PR which excludes any resource that has a specified tag and value.

TagValueExclusionRule is disabled by default and is enabled by setting the following property:

simianarmy.janitor.rule.TagValueExclusionRule.enabled=true

The TagValueExclusionRule is configured with two properties:

simianarmy.janitor.rule.TagValueExclusionRule.tags=
simianarmy.janitor.rule.TagValueExclusionRule.values=

The first property specifies the tags that invoke the exclusion rules and he second property specifies the values. For example, to exclude any resource tagged with "expiration_time=never" use this configuration:

simianarmy.janitor.rule.TagValueExclusionRule.enabled=true
simianarmy.janitor.rule.TagValueExclusionRule.tags=expiration_time
simianarmy.janitor.rule.TagValueExclusionRule.values=never

Another example: to exclude any resource tagged with "expiration_time=never" or "optout=true" use this configuration

simianarmy.janitor.rule.TagValueExclusionRule.enabled=true
simianarmy.janitor.rule.TagValueExclusionRule.tags=expiration_time,optout
simianarmy.janitor.rule.TagValueExclusionRule.values=never,true

@ebukoski ebukoski merged commit a5fe562 into Netflix:master Aug 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant