Reduce harbor resources
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
suite: Auth ClusterRole
|
||||
templates:
|
||||
- auth/clusterrole.yaml
|
||||
tests:
|
||||
- it: creates a ClusterRole
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- it: adds operator permissions to ClusterRole
|
||||
values:
|
||||
- ../.lint/operator.yaml
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 1
|
||||
- isKind:
|
||||
of: ClusterRole
|
||||
- matchSnapshot: {}
|
||||
- it: sets extraLabels on ClusterRole
|
||||
set:
|
||||
extraLabels:
|
||||
clusterRole:
|
||||
foo: bar
|
||||
baz: override-me
|
||||
auth:
|
||||
extraLabels:
|
||||
clusterRole:
|
||||
baz: overridden
|
||||
asserts:
|
||||
- equal:
|
||||
path: metadata.labels.foo
|
||||
value: bar
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
Reference in New Issue
Block a user