in nuvolaris/user_handlers.py [0:0]
def whisk_user_resume(spec, name, namespace,annotations, **kwargs):
logging.info(f"*** detected an update of wsku/{name} under namespace {namespace}")
ucfg = get_ucfg(spec)
user_metadata = UserMetadata(ucfg)
state = {}
if(cfg.get('components.redis') and ucfg.get('redis.enabled')):
read_only_mode = False
if annotations and REDIS_DB_QUOTA_ANNOTATION in annotations:
read_only_mode = annotations[REDIS_DB_QUOTA_ANNOTATION] in ["true"]
res = redis.create_db_user(ucfg,user_metadata,read_only_mode)
logging.info(f"Redis setup for {ucfg.get('namespace')} resumed = {res}")
state['redis']= res
if(cfg.get('components.minio') and ucfg.get('object-storage.route.enabled') and cfg.get('components.static')):
state['static']= True
if(cfg.get('components.mongodb') and ucfg.get('mongodb.enabled')):
state['mongodb']= True
if(cfg.get('components.milvus') and ucfg.get('milvus.enabled')):
state['milvus']= True
if(cfg.get('components.postgres') and ucfg.get('postgres.enabled')):
state['postgres']= True