Can't delete a functions namespace - triggers

I've created a Functions namespace in order to test COS triggers, I've already delete all triggers and functions but when I try to delete the namespace I receive this message
"Namespace deletion not possible due to existing COS triggers. Delete the COS triggers of this namespace and try again.."
How can I delete de COS triggers?
Thanks in advance

Related

CreateIfNotExists function calling Kubernetes API gets error : the object has been modified

Observation
I am initializing 3 MySQL pods at the same time, and I decided to create mysql service account and do role binding after it. Since I am using client-go to do this, I assumed that I don't need to worry about concurrency problems. But that is not the case!
I got an error when calling RbacV1().ClusterRoleBindings().Update, the error is: Operation cannot be fulfilled on clusterrolebindings.rbac.authorization.k8s.io "mysql-clusterrolebinding": the object has been modified; please apply your changes to the latest version and try again
The problem is gone when I initialize these pods sequentially,
My Questions
Why Kubernetes can not take care of object has been modified problem? For example, blocking reads of an object when another thread is updating it so that there would not be version change problems.
Why client-go doesn't handle concurrency problems either?
Should my program implement some locking mechanism? Or probably I shouldn't have tried to write some function like CreateIfNotExists in the first place?

Softlayer deletion of manual snapshot

Good Morning,
Snapshot creation successful via cURL REST commands These take
anywhere between 1-5 minutes before they are visable via GUI or
getSnapshotsForVolume.
I do not see a reference to delete any snapshot (manual or automated) via the service, deletion of scheduled snapshots appears to be utilization based upon value defined for the schedule.
I know this function should exist, as option is available via the GUI.
http://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage_Iscsi
Thanks
yep it exists is the deleteObject method
http://sldn.softlayer.com/reference/services/softlayer_network_storage_iscsi/deleteobject
when you create a new manual snapshot it returns an softlayer_network_storage_iscsi object see:
http://sldn.softlayer.com/reference/services/softlayer_network_storage_iscsi/createsnapshot
you just need to make to sure to use the ID of that snapshot in the deleteObject method

Can I log the script that invokes DELETE query?

I have to investigate who or what caused tables rows to disappear.
So, I am thinking about creating "on before delete" trigger that logs the script that invokes the deletion. Is this possible? Can I get the db client name or event better - the script that invokes delete query and log it to another temporarly created log table?
I am open to other solutions, too.
Thanks in advance!
You can't get "the script" which issued the delete statement, but you can get various other information:
current_user will return the current Postgres user that initiated the delete statement
inet_client_addr() will return the IP address of the client's computer
current_query() will return the complete statement that caused the trigger to fire
More details about that kind of of functions are available in the manual:
http://www.postgresql.org/docs/current/static/functions-info.html
The Postgres Wiki contains two examples of such an audit trigger:
https://wiki.postgresql.org/wiki/Audit_trigger_91plus
https://wiki.postgresql.org/wiki/Audit_trigger (somewhat outdated)

How to run a trigger when updating a different object in SFDC?

I've created a new trigger(before insert, before update) for a custom object which is going to take the information from a Standard Object (Opportunity) this is the problem that i'm facing..
I'm pulling information from the the Opportunity object (lookup field to User) to the new record in the custom object to trigger email alerts when this custom record is created... (i can't use formulas here) with this method everything is going to work when the custom record is created after that all the information is populated on the Opportunity.. the Problem is that sometimes the fields that i'm getting from the Opportunity are not populated before the custom record is created... how can i run the trigger for the custom object when updating the Opportunity record ?? i'm fairly new to APEX so i will like to get some input on how to get this implemented.. ! Thanks
Could you tell us more about what your algorithm is supposed to do?
As long as I can give you one piece of advice on the use of triggers: if the trigger has to perform actions on the object to which it is assigned, then use these events - before insert, before update. But if the trigger has to perform actions on other objects, then use events - after insert, after update, after delete.
More about triggers:
Force.com Apex Code Developer's Guide
Apex Triggers the Definitive Guide

Delete rule for child entity in core data

I am a bit confused by this message sent by Xcode:
Setting the No Action Delete Rule on Passenger.taxi is an advanced setting [5]
These are the specifications
When I delete a Taxi instance, it should also delete all its Passenger instances. Current Delete Rule: Cascade
When I delete a Passenger instance, it should just delete that particular instance. Even if it is the last Passenger instance of a Taxi instance. A Taxi can exist without Passengers (1:mc). Current Delete Rule: No Action
What delete rule do I need here to meet the requirements?
Set the delete rule to nullify, which simply nils out the link. "No Action" is a bit weird in that you can think of it as leaving a pointer that does not really exist I'm not sure if that's what it would really do).