Adding service for App manager.
[ric-plt/ric-dep.git] / depRicKubernetesOperator / internal / controller / getServiceAccount.go
index 366405b..eab86dd 100644 (file)
@@ -18,5 +18,16 @@ func GetServiceAccount() []*corev1.ServiceAccount {
                        Kind:       "ServiceAccount",\r
                },\r
        }\r
-       return []*corev1.ServiceAccount{serviceAccount1}\r
+       serviceAccount2 := &corev1.ServiceAccount{\r
+               ObjectMeta: metav1.ObjectMeta{\r
+                       Namespace: "ricplt",\r
+                       Name:      "svcacct-ricplt-appmgr",\r
+               },\r
+               TypeMeta: metav1.TypeMeta{\r
+                       APIVersion: "v1",\r
+                       Kind:       "ServiceAccount",\r
+               },\r
+       }\r
+       \r
+       return []*corev1.ServiceAccount{serviceAccount1,serviceAccount2}\r
 }
\ No newline at end of file