blob: eab86dd54242670d170bf8e5257a87d6e3d40e26 [file] [log] [blame]
package controller
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
)
func GetServiceAccount() []*corev1.ServiceAccount {
serviceAccount1 := &corev1.ServiceAccount{
ObjectMeta: metav1.ObjectMeta{
Name: "svcacct-ricplt-alarmmanager",
Namespace: "ricplt",
},
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "ServiceAccount",
},
}
serviceAccount2 := &corev1.ServiceAccount{
ObjectMeta: metav1.ObjectMeta{
Namespace: "ricplt",
Name: "svcacct-ricplt-appmgr",
},
TypeMeta: metav1.TypeMeta{
APIVersion: "v1",
Kind: "ServiceAccount",
},
}
return []*corev1.ServiceAccount{serviceAccount1,serviceAccount2}
}