Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
413d78c6
Commit
413d78c6
authored
Nov 17, 2020
by
Nicholas Klick
Committed by
Amy Qualls
Nov 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support multiple manifest files, use the paths attribute
parent
39070f5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/user/clusters/agent/index.md
doc/user/clusters/agent/index.md
+19
-0
No files found.
doc/user/clusters/agent/index.md
View file @
413d78c6
...
...
@@ -160,6 +160,25 @@ gitops:
...
```
GitLab
[
versions 13.6 and later
](
https://gitlab.com/gitlab-org/gitlab/-/issues/259669
)
also
supports manifest projects containing multiple directories (or subdirectories)
of YAML files. To use multiple YAML files, specify a
`paths`
attribute:
```
yaml
gitops
:
manifest_projects
:
-
id
:
"
path-to/your-manifest-project-number1"
paths
:
# Read all .yaml files from team1/app1 directory.
# See https://github.com/bmatcuk/doublestar#about and
# https://pkg.go.dev/github.com/bmatcuk/doublestar/v2#Match for globbing rules.
-
glob
:
'
/team1/app1/*.yaml'
# Read all .yaml files from team2/apps and all subdirectories
-
glob
:
'
/team2/apps/**/*.yaml'
# If 'paths' is not specified or is an empty list, the configuration below is used
-
glob
:
'
/**/*.{yaml,yml,json}'
```
### Create an Agent record in GitLab
Next, create an GitLab Rails Agent record so the Agent can associate itself with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment