-
Notifications
You must be signed in to change notification settings - Fork 163
/
legacy-types.libsonnet
27 lines (27 loc) · 1.04 KB
/
legacy-types.libsonnet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// legacy-types.libsonnet exposes hidden types from ksonnet-lib as first class citizens
// This list is likely to be incomplete.
{
core+: {
v1+: {
container:: $.apps.v1.deployment.mixin.spec.template.spec.containersType,
containerPort:: $.core.v1.container.portsType,
envVar:: $.core.v1.container.envType,
envFromSource:: $.core.v1.container.envFromType,
servicePort:: $.core.v1.service.mixin.spec.portsType,
toleration:: $.apps.v1.deployment.mixin.spec.template.spec.tolerationsType,
volume:: $.core.v1.pod.mixin.spec.volumesType,
volumeMount:: $.core.v1.container.volumeMountsType,
},
},
rbac+: {
v1+: {
policyRule:: $.rbac.v1.clusterRole.rulesType,
subject:: $.rbac.v1.clusterRoleBinding.subjectsType,
},
// TODO: the v1beta1 RBAC API has been removed in Kubernetes 1.22 and should get removed once 1.22 is the oldest supported version
v1beta1+: {
policyRule:: $.rbac.v1.clusterRole.rulesType,
subject:: $.rbac.v1.clusterRoleBinding.subjectsType,
},
},
}