-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(regression): Support input path globbing in Go re-write (#23)
* fix/input-glob: Add test before fix. This test is failing, and will be passing when the fix is implemented * Check for filepath globbing and iterate over matches * add additional file to test * test matching by globbing for config*, which will match one test file * handle nil matches * clarify std lib glob behavior * re-write validateFilePaths to support globbing * finish loop and use model.Kind for map index * fix logging in Apply, was logging wrong resource type
- Loading branch information
Showing
4 changed files
with
144 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
apiVersion: bindplane.observiq.com/v1 | ||
kind: Configuration | ||
metadata: | ||
id: k8s-cluster2 | ||
name: k8s-cluster2 | ||
labels: | ||
platform: kubernetes-deployment | ||
spec: | ||
contentType: "" | ||
measurementInterval: "" | ||
sources: | ||
- id: 01HMS8GVNVFVD5TSWTKSJR1RY5 | ||
type: k8s_cluster | ||
parameters: | ||
- name: cluster_name | ||
value: minikube | ||
- name: node_conditions_to_report | ||
value: | ||
- Ready | ||
- DiskPressure | ||
- MemoryPressure | ||
- PIDPressure | ||
- NetworkUnavailable | ||
- name: allocatable_types_to_report | ||
value: | ||
- cpu | ||
- memory | ||
- ephemeral-storage | ||
- storage | ||
- name: collection_interval | ||
value: 60 | ||
- name: distribution | ||
value: kubernetes | ||
- id: 01HMS8GVNVFVD5TSWTKVNZS2JC | ||
displayName: Production events | ||
type: k8s_events | ||
parameters: | ||
- name: cluster_name | ||
value: minikube | ||
- name: namespaces | ||
value: | ||
- kube-system | ||
- production | ||
destinations: | ||
- id: 01HMS8GVNVFVD5TSWTKZZNHB8R | ||
name: bindplane-gateway-agent | ||
selector: | ||
matchLabels: | ||
configuration: k8s-cluster2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters