Skip to content

Ignoring processing of specified .yaml files #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kinseii opened this issue Jun 11, 2024 · 2 comments
Closed

Ignoring processing of specified .yaml files #259

kinseii opened this issue Jun 11, 2024 · 2 comments
Assignees
Labels
kind/feature New feature or request

Comments

@kinseii
Copy link

kinseii commented Jun 11, 2024

What would you like to add
Need option to ignore files with extension .yml and .yaml. Maybe do this via pointing to the .cdevignore file, as is done in .gitignore and .dockerignore.

Why is this needed
I added .gitlab-ci.yml and .pre-commit-config.yaml to the repository with .yaml files cluster.dev and cdev gives an error:

[FATAL] Fatal error: load project configuration: read objects: object must contain field 'kind'
@kinseii kinseii added the kind/feature New feature or request label Jun 11, 2024
@romanprog romanprog self-assigned this Jun 18, 2024
romanprog pushed a commit that referenced this issue Jun 19, 2024
@romanprog
Copy link
Contributor

@kinseii added .cdevignore
The .cdevignore file is used to specify files that you don't want to be read as project/stacktemplate configs. With this file in the project dir and in the stackTemplate dir, cdev will ignore the list of specified yaml/yml files as it configs. These files should be specified as a list of full names. Templates and patterns are not supported. Example of the .cdevignore file:

deployment.yaml
foo.yml
bar.yaml

https://github.com/shalb/cluster.dev/releases/tag/v0.9.4

@kinseii
Copy link
Author

kinseii commented Jun 22, 2024

Checked, it works!

@kinseii kinseii closed this as completed Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants