Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 55.2k
    • Issues 55.2k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #259669
Closed
Open
Issue created Oct 01, 2020 by Viktor Nagy (GitLab)@nagyv-gitlab🕊Developer

Support deploying directories and sub-directories containing manifest files

Relese notes

Users of the GitLab Kubernetes Agent until now had to collect all their Kubernetes resources into a single manifest file. Starting with GitLab 13.6, the GitLab Kubernetes Agent can grab Kubernetes manifests recursively from specified directories in a project. This way platform engineers can use a single repository to manage different clusters from one place, and can describe large deployments easily to be deployed with a single Agent.

TODO: add docs link

Details

Currently GitLab Kubernetes Agent does not allow to specify which files or directories should be fetched from a manifest project. manifest.yaml in the root of the repository is the file that is used (was done so as part of POC to cut scope).

This issue is to allow to specify directories with files to be fetched, recursively or not. All *.yaml, *.yml and *.json files are fetched. Hidden directories (the one with a name starting with .) are ignored.

By default path scanning recurses into nested directories.

The agent configuration changes to:

gitops:
  manifest_projects:
  - id: "path-to/your-awesome-project"
    paths:
    - glob: "/environments/production/*.yaml"
Edited Nov 15, 2020 by Mikhail Mazurskiy
Assignee
Assign to
Time tracking