feat(k8s): Add folder detection to the k8s module. (#4157)

Have added configuration options to the k8s module to allow activating
the module only in directories that contains certain files or folders.
To ensure this is backwards compatible and because there are not really
any standard files or folders for Kubernetes I have set the defaults to
empty and will activate the module for all directories.
This commit is contained in:
Thomas O'Donnell
2022-07-10 11:14:54 +02:00
committed by GitHub
parent af15de93c4
commit 5c5969c50b
4 changed files with 195 additions and 9 deletions
+24
View File
@@ -767,6 +767,9 @@
"kubernetes": {
"default": {
"context_aliases": {},
"detect_extensions": [],
"detect_files": [],
"detect_folders": [],
"disabled": true,
"format": "[$symbol$context( \\($namespace\\))]($style) in ",
"style": "cyan bold",
@@ -3323,6 +3326,27 @@
"additionalProperties": {
"type": "string"
}
},
"detect_extensions": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"detect_files": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
},
"detect_folders": {
"default": [],
"type": "array",
"items": {
"type": "string"
}
}
}
},