Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39,511
    • Issues 39,511
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1,221
    • Merge requests 1,221
  • Requirements
    • Requirements
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #259669

Closed
Open
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