def project_pre_save(sender, **kwargs): instance = kwargs['instance'] # Set default owner if not instance.has_owner: ownership.set_default_owner(instance=instance)
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)
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)
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)