Skip to content

Commit

Permalink
build(helm): Namespace labeling for tenant owners
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Fedotov committed Sep 15, 2021
1 parent 8fd2076 commit 43de92d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions charts/capsule/crds/tenant-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,46 @@ spec:
format: int32
minimum: 1
type: integer
userAnnotations:
description: Specifies allowed annotations the Tenant owner can place on any Namespace resource in the Tenant. Optional.
properties:
allowedLabels:
properties:
allowed:
items:
type: string
type: array
allowedRegex:
type: string
type: object
protectedLabels:
properties:
protected:
items:
type: string
type: array
type: object
type: object
userLabels:
description: Specifies allowed labels the Tenant owner can place on any Namespace resource in the Tenant. Optional.
properties:
allowedLabels:
properties:
allowed:
items:
type: string
type: array
allowedRegex:
type: string
type: object
protectedLabels:
properties:
protected:
items:
type: string
type: array
type: object
type: object
type: object
networkPolicies:
description: Specifies the NetworkPolicies assigned to the Tenant. The assigned NetworkPolicies are inherited by any namespace created in the Tenant. Optional.
Expand Down
1 change: 1 addition & 0 deletions charts/capsule/templates/mutatingwebhookconfiguration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ webhooks:
- v1
operations:
- CREATE
- UPDATE
resources:
- namespaces
scope: '*'
Expand Down

0 comments on commit 43de92d

Please sign in to comment.