Skip to content

Commit 16dc195

Browse files
committed
cache update still needed
1 parent 338f66b commit 16dc195

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/handlers.py

+8
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ def on_field_data(
133133
logger.info(f'Re Syncing secret {name} in ns {ns}')
134134
sync_secret(logger, ns, body, v1)
135135

136+
# Updating the cache
137+
csecs_cache.set_cluster_secret(BaseClusterSecret(
138+
uid=uid,
139+
name=name,
140+
body=body,
141+
synced_namespace=syncedns,
142+
))
143+
136144

137145
@kopf.on.resume('clustersecret.io', 'v1', 'clustersecrets')
138146
@kopf.on.create('clustersecret.io', 'v1', 'clustersecrets')

0 commit comments

Comments
 (0)