Add gitreporestriction section in operator guide

This commit is contained in:
Mario Manno 2022-10-14 16:24:12 +02:00
parent f88eb9d722
commit 3246e9d797
1 changed files with 20 additions and 0 deletions

View File

@ -84,3 +84,23 @@ If the `BundleNamespaceMappings` `bundleSelector` field matches a `Bundles` labe
be evaluated against all clusters in all namespaces that match `namespaceSelector`. One can specify labels for the created
bundles from git by putting labels in the `fleet.yaml` file or on the `metadata.labels` field on the `GitRepo`.
## Restricting GitRepos
A namespace can contain multiple `GitRepoRestriction` resources. All `GitRepos`
created in that namespace will be checked against the list of restrictions.
If a `GitRepo` violates one of the constraints its `BundleDeployment` will be
in an error state and won't be deployed.
```
kind: GitRepoRestriction
apiVersion: fleet.cattle.io/v1alpha1
metadata:
name: restriction
namespace: typically-unique
spec:
defaultServiceAccount: ""
allowedServiceAccounts: []
allowedRepoPatterns: []
defaultClientSecretName: ""
allowedClientSecretNames: []
```