4 corev1 "k8s.io/api/core/v1"
\r
5 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
\r
6 "k8s.io/apimachinery/pkg/util/intstr"
\r
9 func GetServiceAccount() []*corev1.ServiceAccount {
\r
11 serviceAccount1 := &corev1.ServiceAccount{
\r
12 ObjectMeta: metav1.ObjectMeta{
\r
13 Name: "svcacct-ricplt-alarmmanager",
\r
14 Namespace: "ricplt",
\r
16 TypeMeta: metav1.TypeMeta{
\r
18 Kind: "ServiceAccount",
\r
22 serviceAccount2 := &corev1.ServiceAccount{
\r
23 ObjectMeta: metav1.ObjectMeta{
\r
24 Namespace: "ricplt",
\r
25 Name: "svcacct-ricplt-appmgr",
\r
27 TypeMeta: metav1.TypeMeta{
\r
29 Kind: "ServiceAccount",
\r
33 serviceAccount3 := &corev1.ServiceAccount{
\r
34 ObjectMeta: metav1.ObjectMeta{
\r
35 Labels: map[string]string{
\r
36 "app.kubernetes.io/instance": "release-name",
\r
37 "app.kubernetes.io/managed-by": "Helm",
\r
38 "app.kubernetes.io/name": "kong",
\r
39 "app.kubernetes.io/version": "1.4",
\r
40 "helm.sh/chart": "kong-0.36.6",
\r
42 Name: "release-name-kong",
\r
44 TypeMeta: metav1.TypeMeta{
\r
46 Kind: "ServiceAccount",
\r
50 serviceAccount4 := &corev1.ServiceAccount{
\r
51 ObjectMeta: metav1.ObjectMeta{
\r
52 Annotations: map[string]string{
\r
53 "helm.sh/hook": "pre-upgrade",
\r
54 "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded",
\r
56 Labels: map[string]string{
\r
57 "app.kubernetes.io/instance": "release-name",
\r
58 "app.kubernetes.io/managed-by": "Helm",
\r
59 "app.kubernetes.io/name": "kong",
\r
60 "app.kubernetes.io/version": "1.4",
\r
61 "helm.sh/chart": "kong-0.36.6",
\r
63 Name: "release-name-kong",
\r
65 TypeMeta: metav1.TypeMeta{
\r
67 Kind: "ServiceAccount",
\r
71 serviceAccount5 := &corev1.ServiceAccount{
\r
72 ObjectMeta: metav1.ObjectMeta{
\r
73 Name: "svcacct-tiller-ricxapp",
\r
74 Namespace: "ricinfra",
\r
76 TypeMeta: metav1.TypeMeta{
\r
78 Kind: "ServiceAccount",
\r
82 serviceAccount6 := &corev1.ServiceAccount{
\r
83 TypeMeta: metav1.TypeMeta{
\r
85 Kind: "ServiceAccount",
\r
87 ObjectMeta: metav1.ObjectMeta{
\r
88 Name: "tiller-secret-creator-xzhjjg",
\r
89 Namespace: "ricinfra",
\r
93 serviceAccount7 := &corev1.ServiceAccount{
\r
94 ObjectMeta: metav1.ObjectMeta{
\r
95 Labels: map[string]string{
\r
96 "app.kubernetes.io/instance": "release-name",
\r
97 "app.kubernetes.io/managed-by": "Helm",
\r
98 "app.kubernetes.io/name": "kong",
\r
99 "app.kubernetes.io/version": "1.4",
\r
100 "helm.sh/chart": "kong-0.36.6",
\r
102 Name: "release-name-kong",
\r
104 TypeMeta: metav1.TypeMeta{
\r
106 Kind: "ServiceAccount",
\r
110 serviceAccount8 := &corev1.ServiceAccount{
\r
111 TypeMeta: metav1.TypeMeta{
\r
113 Kind: "ServiceAccount",
\r
115 ObjectMeta: metav1.ObjectMeta{
\r
116 Annotations: map[string]string{
\r
117 "helm.sh/hook": "pre-upgrade",
\r
118 "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded",
\r
120 Labels: map[string]string{
\r
121 "app.kubernetes.io/instance": "release-name",
\r
122 "app.kubernetes.io/managed-by": "Helm",
\r
123 "app.kubernetes.io/name": "kong",
\r
124 "app.kubernetes.io/version": "1.4",
\r
125 "helm.sh/chart": "kong-0.36.6",
\r
127 Name: "release-name-kong",
\r
131 serviceAccount9 := &corev1.ServiceAccount{
\r
132 TypeMeta: metav1.TypeMeta{
\r
134 Kind: "ServiceAccount",
\r
136 ObjectMeta: metav1.ObjectMeta{
\r
137 Name: "svcacct-ricplt-o1mediator",
\r
138 Namespace: "ricplt",
\r
142 serviceAccount10 := &corev1.ServiceAccount{
\r
143 ObjectMeta: metav1.ObjectMeta{
\r
144 Name: "release-name-prometheus-alertmanager",
\r
145 Namespace: "ricplt",
\r
146 Labels: map[string]string{
\r
147 "component": "alertmanager",
\r
148 "heritage": "Helm",
\r
149 "release": "release-name",
\r
150 "app": "prometheus",
\r
151 "chart": "prometheus-11.3.0",
\r
154 TypeMeta: metav1.TypeMeta{
\r
156 Kind: "ServiceAccount",
\r
160 serviceAccount11 := &corev1.ServiceAccount{
\r
161 ObjectMeta: metav1.ObjectMeta{
\r
162 Labels: map[string]string{
\r
163 "app": "prometheus",
\r
164 "chart": "prometheus-11.3.0",
\r
165 "component": "server",
\r
166 "heritage": "Helm",
\r
167 "release": "release-name",
\r
169 Name: "release-name-prometheus-server",
\r
170 Namespace: "ricplt",
\r
172 TypeMeta: metav1.TypeMeta{
\r
173 Kind: "ServiceAccount",
\r
178 serviceAccount12 := &corev1.ServiceAccount{
\r
179 ObjectMeta: metav1.ObjectMeta{
\r
180 Name: "assigner-sa",
\r
182 TypeMeta: metav1.TypeMeta{
\r
184 Kind: "ServiceAccount",
\r
188 return []*corev1.ServiceAccount{serviceAccount1, serviceAccount2, serviceAccount3, serviceAccount4, serviceAccount5, serviceAccount6, serviceAccount7, serviceAccount8, serviceAccount9, serviceAccount10, serviceAccount11, serviceAccount12}
\r