Skip to content

Commit

Permalink
cache update still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyler-W committed Jan 2, 2025
1 parent 338f66b commit 16dc195
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ def on_field_data(
logger.info(f'Re Syncing secret {name} in ns {ns}')
sync_secret(logger, ns, body, v1)

# Updating the cache
csecs_cache.set_cluster_secret(BaseClusterSecret(
uid=uid,
name=name,
body=body,
synced_namespace=syncedns,
))


@kopf.on.resume('clustersecret.io', 'v1', 'clustersecrets')
@kopf.on.create('clustersecret.io', 'v1', 'clustersecrets')
Expand Down

0 comments on commit 16dc195

Please sign in to comment.