8 func (r *RicPlatformReconciler) DeleteAll() {
\r
10 namespaceProvided := "ricxapp"
\r
12 for _, resource := range GetConfigMap() {
\r
13 if resource.ObjectMeta.Namespace == "" {
\r
14 resource.ObjectMeta.Namespace = namespaceProvided
\r
16 err = r.Delete(context.TODO(), resource)
\r
18 fmt.Println("Erorr During Deleting resource of GetConfigMap()| Error --> |", err)
\r
22 for _, resource := range GetDeployment() {
\r
23 if resource.ObjectMeta.Namespace == "" {
\r
24 resource.ObjectMeta.Namespace = namespaceProvided
\r
26 err = r.Delete(context.TODO(), resource)
\r
28 fmt.Println("Erorr During Deleting resource of GetDeployment()| Error --> |", err)
\r
32 for _, resource := range GetService() {
\r
33 if resource.ObjectMeta.Namespace == "" {
\r
34 resource.ObjectMeta.Namespace = namespaceProvided
\r
36 err = r.Delete(context.TODO(), resource)
\r
38 fmt.Println("Erorr During Deleting resource of GetService()| Error --> |", err)
\r
42 for _, resource := range GetIngress() {
\r
43 if resource.GetNamespace() == "" {
\r
44 resource.SetNamespace(namespaceProvided)
\r
46 err = r.Delete(context.TODO(), resource)
\r
48 fmt.Println("Erorr During Deleting resource of GetIngress()| Error --> |", err)
\r