diff --git a/config/services/notes.miloapis.com/quota/grant-policies/default-user-grant-policy.yaml b/config/services/notes.miloapis.com/quota/grant-policies/default-user-grant-policy.yaml deleted file mode 100644 index d8e7e4d..0000000 --- a/config/services/notes.miloapis.com/quota/grant-policies/default-user-grant-policy.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: quota.miloapis.com/v1alpha1 -kind: GrantCreationPolicy -metadata: - name: default-user-notes-quota-policy - labels: - app.kubernetes.io/name: datum - app.kubernetes.io/component: quota-system -spec: - trigger: - resource: - apiVersion: iam.miloapis.com/v1alpha1 - kind: User - target: - # No parentContext: notes on contacts, users and organizations are created - # in the core control plane, where Users live, so the grant belongs there - # too. Creating locally also owns the grant to the User, so it is cleaned - # up when the user is deleted. - resourceGrantTemplate: - metadata: - name: "default-user-notes-quota-{{ trigger.metadata.name }}" - namespace: milo-system - annotations: - kubernetes.io/description: "Notes quota allocation for user" - spec: - consumerRef: - apiGroup: iam.miloapis.com - kind: User - name: "{{ trigger.metadata.name }}" - allowances: - - resourceType: notes.miloapis.com/user-notes - buckets: - - amount: 1000 diff --git a/config/services/notes.miloapis.com/quota/grant-policies/kustomization.yaml b/config/services/notes.miloapis.com/quota/grant-policies/kustomization.yaml index c991dcc..fd54fc4 100644 --- a/config/services/notes.miloapis.com/quota/grant-policies/kustomization.yaml +++ b/config/services/notes.miloapis.com/quota/grant-policies/kustomization.yaml @@ -6,4 +6,3 @@ sortOptions: resources: - default-project-grant-policy.yaml - - default-user-grant-policy.yaml