Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/tenancy/tenancy.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ func newAllowedRepositoriesPolicy(tenantName string, namespaces []string, allowe
Category: "weave.categories.tenancy",
Severity: "high",
Description: "Controls the allowed repositories to be used as sources",
Standards: []pacv2beta1.PolicyStandard{},
Targets: pacv2beta1.PolicyTargets{
Labels: []map[string]string{},
Kinds: policyRepoKinds,
Namespaces: namespaces,
},
Expand Down Expand Up @@ -361,7 +363,9 @@ func newAllowedClustersPolicy(tenantName string, namespaces []string, allowedClu
Category: "weave.categories.tenancy",
Severity: "high",
Description: "Controls the allowed clusters to be added",
Standards: []pacv2beta1.PolicyStandard{},
Targets: pacv2beta1.PolicyTargets{
Labels: []map[string]string{},
Kinds: []string{policyClustersKind, policyKustomizationKind},
Namespaces: namespaces,
},
Expand Down
8 changes: 4 additions & 4 deletions pkg/tenancy/testdata/example.yaml.golden
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ spec:
value:
- https://testorg.github.io/testrepo
severity: high
standards: null
standards: []
tags:
- tenancy
targets:
kinds:
- GitRepository
- Bucket
- HelmRepository
labels: null
labels: []
namespaces:
- bar-ns
- foobar-ns
Expand Down Expand Up @@ -245,14 +245,14 @@ spec:
- cluster-1-kubeconfig
- cluster-2-kubeconfig
severity: high
standards: null
standards: []
tags:
- tenancy
targets:
kinds:
- GitopsCluster
- Kustomization
labels: null
labels: []
namespaces:
- bar-ns
- foobar-ns
Expand Down