forked from opendatahub-io/models-as-a-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlabels.go
More file actions
20 lines (18 loc) · 645 Bytes
/
labels.go
File metadata and controls
20 lines (18 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package token
func namespaceLabels(instance, tier string) map[string]string {
return map[string]string{
"app.kubernetes.io/component": "token-issuer",
"app.kubernetes.io/part-of": "maas-api",
"maas.opendatahub.io/instance": instance,
"maas.opendatahub.io/tier": tier,
"maas.opendatahub.io/tier-namespace": "true",
}
}
func serviceAccountLabels(instance, tier string) map[string]string {
return map[string]string{
"app.kubernetes.io/component": "token-issuer",
"app.kubernetes.io/part-of": "maas-api",
"maas.opendatahub.io/instance": instance,
"maas.opendatahub.io/tier": tier,
}
}