test: Tenant or Namespace scope for resource quota budgets

This commit is contained in:
Dario Tranchitella
2021-07-22 18:03:45 +02:00
parent c52f7844db
commit 29ab5ca64a

View File

@@ -240,6 +240,7 @@ func generateTenantsSpecs() (Tenant, capsulev1beta1.Tenant) {
Items: limitRanges,
},
ResourceQuota: &capsulev1beta1.ResourceQuotaSpec{
Scope: capsulev1beta1.ResourceQuotaScopeNamespace,
Items: resourceQuotas,
},
AdditionalRoleBindings: []capsulev1beta1.AdditionalRoleBindingsSpec{
@@ -292,6 +293,7 @@ func generateTenantsSpecs() (Tenant, capsulev1beta1.Tenant) {
enableIngressClassUpdateAnnotation: "alice,bob",
enableIngressClassDeletionAnnotation: "alice,jack",
enablePriorityClassListingAnnotation: "jack",
resourceQuotaScopeAnnotation: "Namespace",
},
},
Spec: TenantSpec{