示例#1
0
def project_pre_save(sender, **kwargs):
    instance = kwargs['instance']
    # Set default owner
    if not instance.has_owner:
        ownership.set_default_owner(instance=instance)
示例#2
0
def artifacts_store_pre_save(sender, **kwargs):
    instance = kwargs['instance']
    if not instance.has_owner:
        ownership.set_default_owner(instance=instance, use_cluster_owner=True)
示例#3
0
def registry_access_pre_save(sender, **kwargs):
    instance = kwargs['instance']
    if not instance.has_owner:
        ownership.set_default_owner(instance=instance, use_cluster_owner=True)
示例#4
0
def k8s_config_map_pre_save(sender, **kwargs):
    instance = kwargs['instance']
    if not instance.has_owner:
        ownership.set_default_owner(instance=instance, use_cluster_owner=True)