Skip to content

Commit

Permalink
Merge pull request #24 from OmegaVVeapon/fix-condition
Browse files Browse the repository at this point in the history
fix wrong condition name
  • Loading branch information
OmegaVVeapon authored Jul 2, 2021
2 parents 92b237d + 1ae8856 commit 5f9134e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/sidecar.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def startup_tasks(settings: kopf.OperatorSettings, logger, **_):
settings.posting.enabled = False

# Event types when not 'DELETED' can be 'ADDED', 'MODIFIED' and None. The latter being when the resource already existed when the operator started
@kopf.on.event('', 'v1', 'configmaps', when=kopf.all_([label_is_satisfied, resource_is_desired, resource_is_created]))
@kopf.on.event('', 'v1', 'secrets', when=kopf.all_([label_is_satisfied, resource_is_desired, resource_is_created]))
@kopf.on.event('', 'v1', 'configmaps', when=kopf.all_([label_is_satisfied, resource_is_desired, resource_is_cru]))
@kopf.on.event('', 'v1', 'secrets', when=kopf.all_([label_is_satisfied, resource_is_desired, resource_is_cru]))
def cru_fn(body, event, logger, **_):
write_file(event['type'], body, body['kind'], logger)

Expand Down

0 comments on commit 5f9134e

Please sign in to comment.